mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-11 01:33:24 +01:00
update bootstrapDialog
This commit is contained in:
parent
7ecee63edd
commit
31671d1c5e
@ -1,14 +1,15 @@
|
|||||||
var BootstrapDialog = new Class({
|
var BootstrapDialog = new Class({
|
||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.content = $('<div></div>');
|
this._native = $('<div></div>');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
show: function (title) {
|
show: function (title) {
|
||||||
$assert(title, "message can not be null");
|
$assert(title, "message can not be null");
|
||||||
|
|
||||||
var modalDialog = $('<div class="modal fade">' +
|
var modalDialog = $(
|
||||||
|
'<div class="modal fade">' +
|
||||||
'<div class="modal-dialog">' +
|
'<div class="modal-dialog">' +
|
||||||
'<div class="modal-content">' +
|
'<div class="modal-content">' +
|
||||||
'<div class="modal-header">' +
|
'<div class="modal-header">' +
|
||||||
@ -16,16 +17,15 @@ var BootstrapDialog = new Class({
|
|||||||
'<h3 class="modal-title">' + title + '</h3>' +
|
'<h3 class="modal-title">' + title + '</h3>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="modal-body">' +
|
'<div class="modal-body">' +
|
||||||
this.content.html() +
|
this._native.html() +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>');
|
'</div>');
|
||||||
|
|
||||||
modalDialog.modal();
|
modalDialog.modal();
|
||||||
},
|
},
|
||||||
|
|
||||||
appendToContent:function (content){
|
setContent:function (content){
|
||||||
this.content.append(content);
|
this._native.append(content);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user