X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/69e526ee5cfc3d153f738083b397a000c00c4468..c06a8ef75d041488b73813d3c9c70409940b148b:/js/kivi.File.js?ds=sidebyside diff --git a/js/kivi.File.js b/js/kivi.File.js index b02d7d0ff..11adf7646 100644 --- a/js/kivi.File.js +++ b/js/kivi.File.js @@ -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'); });