Remove supersizeme class as appropriate.

This commit is contained in:
Samantha Doherty 2011-03-16 03:09:06 -04:00
parent d51625ab3d
commit 665dd1de78

View File

@ -55,9 +55,8 @@ SN_EXTENDED.addRow = function() {
var cls = div.attr('class'); var cls = div.attr('class');
var index = id.match(/\d+/); var index = id.match(/\d+/);
var newIndex = parseInt(index) + 1; var newIndex = parseInt(index) + 1;
var newtr = $(div).closest('tr').clone(); var newtr = $(div).closest('tr').removeClass('supersizeme').clone();
SN_EXTENDED.replaceIndex(newtr, index, newIndex); SN_EXTENDED.replaceIndex(newtr, index, newIndex);
$(newtr).removeClass('supersizeme');
SN_EXTENDED.resetRow(newtr); SN_EXTENDED.resetRow(newtr);
$(div).closest('tr').after(newtr); $(div).closest('tr').after(newtr);
SN_EXTENDED.reorder(cls); SN_EXTENDED.reorder(cls);