gabotorr / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

Typo error in jquery.dataTables.editable.js #128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've been extending jEditable plugin for sole purpose to display multiple 
checkboxes.

When testing edition, Firebug threw me this error : "ReferenceError: 
sNewCellDisplayValue is not defined"

I've checked your plugin jquery.dataTables.editable.js.

At line 140, the variable "sNewCellDislayValue" is initialized.

It's not used later in the code but I've found several occurences of a variable 
"sNewCellDisplayValue" that was never initialized.

I guessed there was a typo error so I fixed line 140 and the error was gone.

Original issue reported on code.google.com by johnny.c...@gmail.com on 29 Aug 2012 at 1:26

GoogleCodeExporter commented 9 years ago
On line 190 is where it gets initialized and the variable name was mis-typed. 

        //var sOldValue, sNewCellValue, sNewCellDislayValue;
        var sOldValue, sNewCellValue, sNewCellDisplayValue;

Dislay is missing the "p". This is in version 2.3.3

Original comment by mike.be...@gmail.com on 22 Apr 2015 at 3:00