changeset 6cb60fd17033 in sao:5.8
details: https://hg.tryton.org/sao?cmd=changeset&node=6cb60fd17033
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 31f65549d242 -r 6cb60fd17033 src/view/form.js
--- a/src/view/form.js Wed Mar 03 18:17:02 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) {