diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/reorder-rows/jquery.tablednd.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/reorder-rows/jquery.tablednd.js index 7f9f04c6d..08f9a1288 100644 --- a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/reorder-rows/jquery.tablednd.js +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/reorder-rows/jquery.tablednd.js @@ -152,11 +152,16 @@ jQuery.tableDnD = { config.dragHandle // We only need to add the event to the specified cells && $(config.dragHandle, table).each(function() { - // The cell is bound to "this" - $(this).bind(startEvent, function(e) { - $.tableDnD.initialiseDrag($(this).parents('tr')[0], table, this, e, config); - return false; - }); + if (! $(this).hasClass("nodrag")) { + // The cell is bound to "this" + $(this).bind(startEvent, function(e) { + if (e.target.tagName === "TD" && event.target.className !== "nodrag") { + $.tableDnD.initialiseDrag($(this).parents('tr')[0], table, this, e, config); + return false; + } + return true; + }); + } }) // For backwards compatibility, we add the event to the whole row // get all the rows as a wrapped set