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'],