michoel
07/17/2018, 11:45 PM$('.custom_price', table_custom.fnGetNodes()).editable( "{{ base_url("admin_ajax/custom") }}", {
height: "22px",
onblur: 'submit',
submitdata: function ( value, settings ) {
return {
method : "EDIT",
custom_id : "{{ custom_list_id}}",
product_id : this.parentNode.getAttribute('data-product-id'),
old_value : this.parentNode.getAttribute('data-old-value')
};
},
callback: function( value, settings ) {
var new_price = $.parseJSON(value).value;
var pos = table_custom.fnGetPosition( this );
table_custom.fnUpdate(new_price, pos[0], pos[1] );
}
});