update submit functionality on link editor
This commit is contained in:
@@ -41,7 +41,7 @@ var BootstrapDialog = new Class({
|
||||
if (this.options.acceptButton) {
|
||||
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)
|
||||
this.acceptButton.unbind('click').click(this.onAcceptClick)
|
||||
}
|
||||
if (this.options.removeButton) {
|
||||
this.removeButton = $('<button type="button" class="btn btn-secondary" id="removeBtn" data-dismiss="modal">'+ $msg('REMOVE') +'</button>');
|
||||
@@ -103,6 +103,10 @@ var BootstrapDialog = new Class({
|
||||
this._native.find('.alert-danger').show();
|
||||
},
|
||||
|
||||
cleanError: function(){
|
||||
this._native.find('.alert-danger').hide();
|
||||
},
|
||||
|
||||
showRemoveButton: function(){
|
||||
this.removeButton.show();
|
||||
}
|
||||
|
Reference in New Issue
Block a user