Add table title
This commit is contained in:
@@ -90,7 +90,7 @@ feature
|
||||
|
||||
handle_click2
|
||||
do
|
||||
start_modal ("/")
|
||||
start_modal ("/","My first modal")
|
||||
end
|
||||
|
||||
handle_click
|
||||
|
||||
@@ -441,7 +441,7 @@ start_modal = (action)->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title">Modal title</h4>
|
||||
<h4 class="modal-title">#{action.title}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
|
||||
@@ -773,7 +773,7 @@ show_alert = function(action) {
|
||||
|
||||
start_modal = function(action) {
|
||||
var modal;
|
||||
modal = $("<div class=\"modal fade\">\n<div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n <h4 class=\"modal-title\">Modal title</h4>\n </div>\n <div class=\"modal-body\">\n \n </div>\n </div>\n</div>\n</div>");
|
||||
modal = $("<div class=\"modal fade\">\n<div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n <h4 class=\"modal-title\">" + action.title + "</h4>\n </div>\n <div class=\"modal-body\">\n \n </div>\n </div>\n</div>\n</div>");
|
||||
modal.appendTo('body');
|
||||
modal.modal('show');
|
||||
modal.on('hidden.bs.modal', function() {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user