diff --git a/admin/js/link.js b/admin/js/link.js index ef2353f..9662ddd 100644 --- a/admin/js/link.js +++ b/admin/js/link.js @@ -15,7 +15,7 @@ function listTable(query){ $("#listTable").html(data); $("#link").dragsort({ dragBetween: true, - dragSelector: "tr", + dragSelector: "td.lylme", dragEnd: showbutton, placeHolderTemplate: "", }); @@ -316,4 +316,10 @@ function edit_group(mv_group) { // return false; // } // }); -// } \ No newline at end of file +// } +$(document).on('click', '.tips', function(){ + $.alert({ + title: '提示', + content: '在电脑端可以拖拽链接的名称排序,拖拽完成后点击“保存排序”即可', +}); +}); \ No newline at end of file diff --git a/admin/table_link.php b/admin/table_link.php index 88e07aa..46d6b81 100644 --- a/admin/table_link.php +++ b/admin/table_link.php @@ -7,7 +7,8 @@ if(isset($islogin)==1) { $groups = $DB->query("SELECT * FROM `lylme_groups` ORDER BY `group_order` ASC"); //获取分组 $rs = $DB->query("SELECT * FROM `lylme_links` WHERE `group_id` = ".$page." ORDER BY `lylme_links`.`id` ASC"); //获取链接 $grouprows=$DB->num_rows($rs); - echo '
系统收录: ' . $linksrows . ' 个链接 / 当前分组: '.$grouprows.'个链接 + echo '
系统收录: ' . $linksrows . ' 个链接 / 当前分组: '.$grouprows.'个链接 +