Using more html5 data attributes

This commit is contained in:
Mark McDowall
2012-09-30 15:39:08 -07:00
parent 27d9592b41
commit a197316640
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -194,7 +194,7 @@
],
"aaSorting": [[1, 'asc']],
"fnCreatedRow": function( nRow, aData, iDataIndex ) {
$(nRow).addClass(aData["SeriesId"].toString());
$(nRow).attr('data-series-id', aData["SeriesId"].toString());
},
"fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
var element = $(nRow).find('.progressBar');
@@ -214,7 +214,7 @@
//After we delete a series do this...
function afterDelete(seriesId) {
var row = $('.' + seriesId);
var row = $('[data-series-id="' + seriesId + '"]');
if ($(row).hasClass('details-opened')) {
var nextRow = $(row).next('tr');