vendor/assets/javascripts/bhf/classes/AjaxEdit.js in bhf-0.5.13 vs vendor/assets/javascripts/bhf/classes/AjaxEdit.js in bhf-0.6.0

- old
+ new

@@ -7,12 +7,18 @@ Implements: [Options, Events], holder: new Element('div.quick_edit_holder'), - initialize: function(_options) { + setup: function(_options) { this.setOptions(_options); - this.holder.addEvents({ + this.holder + .removeEvents('click:relay(.open)') + .removeEvents('click:relay(.cancel)') + .removeEvents('click:relay(.save_and_next)') + .removeEvents('click:relay(.save)') + .removeEvents('submit:relay(form)') + .addEvents({ 'click:relay(.open)': function(e){ e.preventDefault(); location.href = (this.wrapElement.getElement('a') || this.wrapElement).get('href'); }.bind(this), 'click:relay(.cancel)': function(e){ \ No newline at end of file