Canceling jeditable when clicking a link

Canceling jeditable when clicking a link

Hello, 

im trying to figure out a way to cancel jeditable actions when im clicking on a link inside a cell.. 

i will post screenshots so that you can better understand it..

when i click on a cell OR the link, the cell will be editable, but i want that will only do that if i click on the cell (not the link)



is there a jquery function that cancels out other ones? or maybe it is possible on the jeditable function to do something to prevent this...

this is the jeditable code

  1. $('td:eq(1), td:eq(4)', oTable.fnGetNodes()).editable( 'update.php', {
  2. "callback": function( sValue, y ) {
  3. var aPos = oTable.fnGetPosition( this );
  4. oTable.fnUpdate( sValue, aPos[0], aPos[1] );  
  5. },
  6. "submitdata": function ( value, settings ) {
  7. var aPos2 = oTable.fnGetPosition( this );
  8. var aoColumns2 = oTable.fnSettings().aoColumns;
  9. var hValue2 = aoColumns2[aPos2[1]].sTitle;
  10. var id2 = oTable.fnGetData( aPos2[0] );    
  11. return {
  12. "row_id": this.parentNode.getAttribute('id'),
  13. "column": oTable.fnGetPosition( this )[2],
  14. "value2": hValue2,
  15. "id2": id2[5],
  16. "id": 'NOTA_ID' ,
  17. "tab": 'NOTA_FISCAL'
  18. };
  19. },
  20. "height": "20px"
  21. } );


thank you!