WebshopApi: Übersetzungen
[kivitendo-erp.git] / js / kivi.File.js
index b02d7d0..11adf76 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'); });