From 0777138addb7800dcd07197ea9e4a4e3321cfadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 13 Mar 2015 18:43:24 +0100 Subject: [PATCH] Missing submit callback on Window.Search --- src/window.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/window.js b/src/window.js index 3d13a678ac..1c5bc20df6 100644 --- a/src/window.js +++ b/src/window.js @@ -362,7 +362,7 @@ 'class': 'modal fade', role: 'dialog' }); - var content = jQuery('
', { + var content = jQuery('
', { 'class': 'modal-content' }).appendTo(jQuery('
', { 'class': 'modal-dialog modal-lg' @@ -403,6 +403,10 @@ 'class': 'btn btn-primary', 'type': 'submit' }).append('OK').appendTo(footer); + content.submit(function(e) { + this.response('RESPONSE_OK'); + e.preventDefault(); + }.bind(this)); this.screen = new Sao.Screen(model, { mode: ['tree'],