bacsa / jquery-datatables-editable

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

why only addding class "last-added-row" when bServerSide is false #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set bServerSide : true
2. Add a new row in the sAddNewRowForm,and click "Ok".

What is the expected output? What do you see instead?
The new added row should have a cssclass named "last-added-row",
it have not.

What version of the product are you using? On what operating system?
The version is 2.3.1. I use it in IE.

I read the code in jquery-datatables-editable.js,and find the reason,
but i don't know why only addding class when bServerSide is false.

if (!oSettings.oFeatures.bServerSide) { 
                    /*...*/
                    $("tr.last-added-row", oTable).removeClass("last-added-row");
                    $(oTRAdded).addClass("last-added-row");
                }

Original issue reported on code.google.com by hongdand...@gmail.com on 23 Apr 2012 at 8:49