details:   https://code.tryton.org/tryton/commit/6e750011af7c
branch:    default
user:      José Antonio Díaz Miralles <[email protected]>
date:      Wed Feb 04 11:39:34 2026 +0100
description:
        Add a button to close the Filters modal

        Closes #13306
diffstat:

 sao/src/screen.js |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 025bb00c1175 -r 6e750011af7c sao/src/screen.js
--- a/sao/src/screen.js Tue Feb 03 14:39:49 2026 +0100
+++ b/sao/src/screen.js Wed Feb 04 11:39:34 2026 +0100
@@ -554,10 +554,18 @@
                 }
 
                 jQuery('<button/>', {
+                    'class': 'close',
+                    'type': 'button',
+                    'data-dismiss': 'modal',
+                    'aria-label': Sao.i18n.gettext("Close"),
+                }).append(jQuery('<span/>', {
+                    'aria-hidden': true,
+                }).append('&times;')).prependTo(dialog.header);
+                jQuery('<button/>', {
                     'class': 'btn btn-primary',
-                    type: 'submit',
+                    'type': 'submit',
                     'title': Sao.i18n.gettext("Find"),
-                }).text(Sao.i18n.gettext('Find'))
+                }).text(Sao.i18n.gettext("Find"))
                 .appendTo(dialog.footer);
             }
             this.search_modal.modal('show');

Reply via email to