Add a button to close the Filters modal

Closes #13306
This commit is contained in:
José Antonio Díaz Miralles
2026-02-04 11:39:34 +01:00
parent ac57101f77
commit 4f1eb55810
+10 -2
View File
@@ -553,11 +553,19 @@
this.search_form.fields.push([field.string, entry, input]);
}
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');