0
我要瘋了jEditable ......看來,回調是在我的情況被稱爲兩次,在那裏我有我的表內的fnUpdate:如何解決 - jEditable被調用backback 2x?
oTable.$("td.my_class").editable(function(value, settings) {
if (ifItsNumeber(value)) {
console.log("It's a number.");
var aPos = oTable.fnGetPosition(this);
console.log("aPos: "+aPos);
oTable.fnUpdate(qnttSL, aPos[0], aPos[1]));
return(value);
} else {
console.log("It's not a NUMBER");
return(null);
}
}, {
width: '100%',
onblur : 'submit'
});
我在做什麼錯?