Skip to content

Instantly share code, notes, and snippets.

@fivetwentysix
Created January 12, 2011 03:51
Show Gist options
  • Select an option

  • Save fivetwentysix/775667 to your computer and use it in GitHub Desktop.

Select an option

Save fivetwentysix/775667 to your computer and use it in GitHub Desktop.
initializeFormSubmit: function() {
this.formEl.addEvent('submit', function(e) {
e.stop();
fixTiny({instance:'excerpt'});
fixTiny({instance:'body'});
this.formEl.set('send', {
onComplete : this.clearFields()
});
this.formEl.send();
}.bind(this));
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment