mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-11 01:33:24 +01:00
update accept button
This commit is contained in:
parent
1416ff2d11
commit
ff9cd9466e
@ -30,7 +30,9 @@ var BootstrapDialog = new Class({
|
|||||||
footer = $('<div class="modal-footer">');
|
footer = $('<div class="modal-footer">');
|
||||||
}
|
}
|
||||||
if (this.options.acceptButton) { //falta agregar $msg('ACCEPT')
|
if (this.options.acceptButton) { //falta agregar $msg('ACCEPT')
|
||||||
footer.append('<input type="submit" id="acceptBtn" class="btn btn-primary" value="Accept"/>');
|
this.acceptButton = $('<button type="button" class="btn btn-primary" id="acceptBtn" data-dismiss="modal">'+ $msg('ACCEPT') + '</button>');
|
||||||
|
footer.append(this.acceptButton);
|
||||||
|
this.acceptButton.on('click', this.onAcceptClick)
|
||||||
}
|
}
|
||||||
if (this.options.cancelButton) {
|
if (this.options.cancelButton) {
|
||||||
footer.append('<button type="button" class="btn btn-secondary" data-dismiss="modal">'+ $msg('CANCEL') +'</button>');
|
footer.append('<button type="button" class="btn btn-secondary" data-dismiss="modal">'+ $msg('CANCEL') +'</button>');
|
||||||
@ -54,6 +56,9 @@ var BootstrapDialog = new Class({
|
|||||||
return header;
|
return header;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onAcceptClick: function(event) {
|
||||||
|
//this method should be abstract
|
||||||
|
},
|
||||||
|
|
||||||
show: function () {
|
show: function () {
|
||||||
this._native.modal();
|
this._native.modal();
|
||||||
|
Loading…
Reference in New Issue
Block a user