// attributes positions and groups attributes positions are now working fine with new tab
This commit is contained in:
@@ -99,6 +99,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
this.dataMaped = true;
|
this.dataMaped = true;
|
||||||
this.opened = false;
|
this.opened = false;
|
||||||
|
initTableDnD('.details_{$id} table.tableDnD');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-4
@@ -25,11 +25,17 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('table.tableDnD').tableDnD({
|
initTableDnD();
|
||||||
|
})
|
||||||
|
|
||||||
|
function initTableDnD(table)
|
||||||
|
{
|
||||||
|
if (typeof(table) == 'undefined')
|
||||||
|
table = 'table.tableDnD';
|
||||||
|
$(table).tableDnD({
|
||||||
onDragStart: function(table, row) {
|
onDragStart: function(table, row) {
|
||||||
originalOrder = $.tableDnD.serialize();
|
originalOrder = $.tableDnD.serialize();
|
||||||
reOrder = ':even';
|
reOrder = ':even';console.log(table.tBodies[0].rows[1]);
|
||||||
if (table.tBodies[0].rows[1] && $('#' + table.tBodies[0].rows[1].id).hasClass('alt_row'))
|
if (table.tBodies[0].rows[1] && $('#' + table.tBodies[0].rows[1].id).hasClass('alt_row'))
|
||||||
reOrder = ':odd';
|
reOrder = ':odd';
|
||||||
$('#'+table.id+ '#' + row.id).parent('tr').addClass('myDragClass');
|
$('#'+table.id+ '#' + row.id).parent('tr').addClass('myDragClass');
|
||||||
@@ -203,4 +209,4 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
}
|
||||||
Reference in New Issue
Block a user