]> wagnertech.de Git - mfinanz.git/blobdiff - js/kivi.File.js
WebshopApi: SL/DB/File.pm - POD Einrückungen
[mfinanz.git] / js / kivi.File.js
index b02d7d0ff6a177e19e60b9c9025929943b886eb2..11adf7646d3f434ed3bdf2a7b3e51320fbe1ff22 100644 (file)
@@ -27,7 +27,6 @@ namespace('kivi.File', function(ns) {
                                , height: 200
                                , modal:  true
                                , close: function() {
-                                 console.log("Closing, moving to original parent " + parent_id);
                                  $dlg.remove().appendTo('#' + parent_id);
                                }
                               } });
@@ -171,6 +170,12 @@ namespace('kivi.File', function(ns) {
     return false;
   }
 
+  ns.delete_file = function(id,controller_action) {
+    $.post('controller.pl', { action: controller_action, id: id }, function(data) {
+      kivi.eval_json_result(data);
+    });
+  };
+
   ns.unimport = function(id,type,file_type,checkbox_class) {
     var checkboxes = $('.'+checkbox_class).filter(function () { return  $(this).prop('checked'); });
 
@@ -216,12 +221,12 @@ namespace('kivi.File', function(ns) {
                       });
     return true;
   }
-    
+
   ns.importclose = function() {
     $("#import_dialog").dialog('close');
     return false;
   }
-  
+
   ns.importaction = function(id,type,file_type,fromwhere,frompath,checkbox_class) {
     var checkboxes = $('.'+checkbox_class).filter(function () { return  $(this).prop('checked'); });