From: Martin Helmling martin.helmling@octosoft.eu Date: Thu, 28 Sep 2017 05:41:29 +0000 (+0200) Subject: Dateimanagement: Stammdaten: DOM-Elemente bei multiples Tab-Aufrufen nicht dupliziere... X-Git-Tag: release-3.5.4~713 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c60cb1f08f;p=kivitendo-erp.git Dateimanagement: Stammdaten: DOM-Elemente bei multiples Tab-Aufrufen nicht duplizieren(2): weitere Stelle siehe 69e526ee5 --- diff --git a/js/kivi.File.js b/js/kivi.File.js index 11adf7646..b509422eb 100644 --- a/js/kivi.File.js +++ b/js/kivi.File.js @@ -29,7 +29,8 @@ namespace('kivi.File', function(ns) { , close: function() { $dlg.remove().appendTo('#' + parent_id); } - } }); + } + }); return true; } @@ -59,14 +60,20 @@ namespace('kivi.File', function(ns) { $('#next_ids_id').val(next_ids); $('#sessionfile_id').val(sessionfile); $('#rename_extra_text').html(kivi.t8("The uploaded filename still exists.
If you not modify the name this is a new version of the file")); + var $dlg = $('#rename_dialog'); + var parent_id = $dlg.parent("div.ui-tabs-panel").attr('id'); kivi.popup_dialog( { id: 'rename_dialog', dialog: { title: kivi.t8("Rename attachment") , width: 400 , height: 200 - , modal: true } - }); + , modal: true + , close: function() { + $dlg.remove().appendTo('#' + parent_id); + } } + } + ); } ns.upload = function(id,type,filetype,upload_title,gl) {