mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +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">');
|
||||
}
|
||||
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) {
|
||||
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;
|
||||
},
|
||||
|
||||
onAcceptClick: function(event) {
|
||||
//this method should be abstract
|
||||
},
|
||||
|
||||
show: function () {
|
||||
this._native.modal();
|
||||
|
Loading…
Reference in New Issue
Block a user