ff7bcaa5d7a4d6648d943a464d0b603f251daf0c chmalee Wed Aug 21 14:50:27 2024 -0700 Fix some broken track ui pages from jquery upgrade, and try to clean up jquery-ui styles diff --git src/hg/js/utils.js src/hg/js/utils.js index 6400488..c1ba2e0 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -3427,32 +3427,32 @@ return ( movedX > minPixels || movedX < (minPixels * -1) || movedY > minPixels || movedY < (minPixels * -1)); } }; /////////////////////////// //// Drag Reorder Code //// /////////////////////////// var dragReorder = { originalHeights: {}, // trackName: startHeight setOrder: function (table) { // Sets the 'order' value for the image table after a drag reorder var varsToUpdate = {}; $("tr.imgOrd").each(function (i) { - if ($(this).attr('abbr') !== $(this).attr('rowIndex').toString()) { - $(this).attr('abbr',$(this).attr('rowIndex').toString()); + if ($(this).prop('abbr') !== $(this).prop('rowIndex').toString()) { + $(this).attr('abbr', $(this).prop('rowIndex').toString()); var name = this.id.substring('tr_'.length) + '_imgOrd'; varsToUpdate[name] = $(this).attr('abbr'); } }); if (objNotEmpty(varsToUpdate)) { cart.setVarsObj(varsToUpdate); imageV2.markAsDirtyPage(); } }, sort: function (table) { // Sets the table row order to match the order of the abbr attribute. // This is needed for back-button, and for visBox changes combined with refresh. var tbody = $(table).find('tbody')[0]; if (!tbody)