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
- $('td:eq(1), td:eq(4)', oTable.fnGetNodes()).editable( 'update.php', {
- "callback": function( sValue, y ) {
- var aPos = oTable.fnGetPosition( this );
- oTable.fnUpdate( sValue, aPos[0], aPos[1] );
- },
- "submitdata": function ( value, settings ) {
- var aPos2 = oTable.fnGetPosition( this );
- var aoColumns2 = oTable.fnSettings().aoColumns;
- var hValue2 = aoColumns2[aPos2[1]].sTitle;
- var id2 = oTable.fnGetData( aPos2[0] );
-
- return {
- "row_id": this.parentNode.getAttribute('id'),
- "column": oTable.fnGetPosition( this )[2],
- "value2": hValue2,
- "id2": id2[5],
- "id": 'NOTA_ID' ,
- "tab": 'NOTA_FISCAL'
- };
- },
- "height": "20px"
-
- } );
thank you!