mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-09-12 07:10:07 +02:00
update bootstrapDialog
This commit is contained in:
parent
a355b7d2a2
commit
5ce15f6ca5
@ -1,31 +1,31 @@
|
|||||||
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-dialog">' +
|
'<div class="modal fade">' +
|
||||||
'<div class="modal-content">' +
|
'<div class="modal-dialog">' +
|
||||||
'<div class="modal-header">' +
|
'<div class="modal-content">' +
|
||||||
'<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>' +
|
'<div class="modal-header">' +
|
||||||
'<h3 class="modal-title">' + title + '</h3>' +
|
'<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>' +
|
||||||
'</div>' +
|
'<h3 class="modal-title">' + title + '</h3>' +
|
||||||
'<div class="modal-body">' +
|
'</div>' +
|
||||||
this.content.html() +
|
'<div class="modal-body">' +
|
||||||
'</div>' +
|
this._native.html() +
|
||||||
'</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