In the bind() method, checking if the event returned false
Hi,
In the following bind() method, how do I check if the event has returned false:
- .find( 'button.save' )
- .bind( 'click', function( event ) {
- if (?? != false) {
- self.save( self.element, event );
- self.change( self.element, event );
- }
- return false;
- })
- .end()
Here's the event code:
- $('.doc_editable').inlineEdit({
- save: function( event, hash ) {
- var loadUrl = "phpparts/document.php";
- var messageDiv = "#doc_message";
- if (!updateValue(loadUrl, hash.value, this.id, messageDiv)) {
- return false;
- }
- }
- });
Appreciated..