diff --git a/examples/widgetapp/widget.js b/examples/widgetapp/widget.js
index 40324b2e..fe7bd97b 100644
--- a/examples/widgetapp/widget.js
+++ b/examples/widgetapp/widget.js
@@ -773,7 +773,7 @@ show_alert = function(action) {
start_modal = function(action) {
var modal;
- modal = $("
");
+ modal = $("
");
modal.appendTo('body');
modal.modal('show');
modal.on('hidden.bs.modal', function() {
diff --git a/library/server/wsf_js_widget/webcontrol/wsf_control.e b/library/server/wsf_js_widget/webcontrol/wsf_control.e
index e749e872..761e0207 100644
--- a/library/server/wsf_js_widget/webcontrol/wsf_control.e
+++ b/library/server/wsf_js_widget/webcontrol/wsf_control.e
@@ -37,7 +37,7 @@ feature {NONE} -- Initialization
feature -- Actions
- start_modal(url:STRING)
+ start_modal(url:STRING; title:STRING)
--Start a modal window containg an other or the same page
local
modal:JSON_OBJECT
@@ -45,6 +45,7 @@ feature -- Actions
create modal.make
modal.put (create {JSON_STRING}.make_json("start_modal"), "type")
modal.put (create {JSON_STRING}.make_json(url), "url")
+ modal.put (create {JSON_STRING}.make_json(title), "title")
actions.add (modal)
end