changeset 7872a94c2b46 in sao:5.6
details: https://hg.tryton.org/sao?cmd=changeset&node=7872a94c2b46
description:
Always remove translation dialog when hidding it's modal
issue10109
review341411002
(grafted from 01d578eb6782a2e5b25e196ce419475041828291)
diffstat:
src/view/form.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (18 lines):
diff -r 61ec58d29ff5 -r 7872a94c2b46 src/view/form.js
--- a/src/view/form.js Wed Mar 03 18:18:21 2021 +0100
+++ b/src/view/form.js Fri Feb 19 09:27:39 2021 +0100
@@ -1233,11 +1233,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) {