changeset 01d578eb6782 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=01d578eb6782
description:
        Always remove translation dialog when hidding it's modal

        issue10109
        review341411002
diffstat:

 src/view/form.js |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (18 lines):

diff -r 350a36f19c77 -r 01d578eb6782 src/view/form.js
--- a/src/view/form.js  Thu Feb 18 09:26:28 2021 +0100
+++ b/src/view/form.js  Fri Feb 19 09:27:39 2021 +0100
@@ -1235,11 +1235,11 @@
                 dialog.modal.find('input,select')
                     .filter(':visible').first().focus();
             });
+            dialog.modal.on('hide.bs.modal', function(){
+                jQuery(this).remove();
+            });
         },
         close: function(dialog) {
-            dialog.modal.on('hidden.bs.modal', function(event) {
-                jQuery(this).remove();
-            });
             dialog.modal.modal('hide');
         },
         read: function(widget, dialog) {

Reply via email to