update bootstrapDialog

This commit is contained in:
Mariela Michalek 2014-04-10 19:33:48 -03:00
parent 66bf71fbc7
commit cb6d691ee2

View File

@ -29,11 +29,11 @@ var BootstrapDialog = new Class({
if (this.options.acceptButton || this.options.cancelButton) {
footer = $('<div class="modal-footer">');
}
if (this.options.acceptButton) {
footer.append('<button type="button" class="btn btn-primary">'+ $msg('ACCEPT') +'</button>')
if (this.options.acceptButton) { //falta agregar $msg('ACCEPT')
footer.append('<input type="submit" id="acceptBtn" class="btn btn-primary" value="Accept"/>');
}
if (this.options.cancelButton) {
footer.append('<button type="button" class="btn btn-default" data-dismiss="modal">'+ $msg('CANCEL') +'</button>');
footer.append('<button type="button" class="btn btn-secondary" data-dismiss="modal">'+ $msg('CANCEL') +'</button>');
}
return footer;
},