正在显示
1 个修改的文件
包含
59 行增加
和
1 行删除
@@ -90,6 +90,64 @@ | @@ -90,6 +90,64 @@ | ||
90 | </form> | 90 | </form> |
91 | <ul class="pagination">{$page|default=''}</ul> | 91 | <ul class="pagination">{$page|default=''}</ul> |
92 | </div> | 92 | </div> |
93 | -<script src="__STATIC__/js/admin.js"></script> | 93 | +<script src="__STATIC__/js/admin.js"> |
94 | + $(function () { | ||
95 | + setCookie("refersh_time", 0); | ||
96 | + Wind.use('ajaxForm', 'artDialog', 'iframeTools', function () { | ||
97 | + //批量复制 | ||
98 | + $('.js-articles-copy').click(function (e) { | ||
99 | + var ids = []; | ||
100 | + $("input[name='ids[]']").each(function () { | ||
101 | + if ($(this).is(':checked')) { | ||
102 | + ids.push($(this).val()); | ||
103 | + } | ||
104 | + }); | ||
105 | + | ||
106 | + if (ids.length == 0) { | ||
107 | + art.dialog.through({ | ||
108 | + id: 'error', | ||
109 | + icon: 'error', | ||
110 | + content: '您没有勾选信息,无法进行操作!', | ||
111 | + cancelVal: '关闭', | ||
112 | + cancel: true | ||
113 | + }); | ||
114 | + return false; | ||
115 | + } | ||
116 | + | ||
117 | + ids = ids.join(','); | ||
118 | + art.dialog.open("__ROOT__/index.php?g=portal&m=AdminArticle&a=copy&ids=" + ids, { | ||
119 | + title: "批量复制", | ||
120 | + width: "300px" | ||
121 | + }); | ||
122 | + }); | ||
123 | + //批量移动 | ||
124 | + $('.js-articles-move').click(function (e) { | ||
125 | + var ids = []; | ||
126 | + $("input[name='ids[]']").each(function () { | ||
127 | + if ($(this).is(':checked')) { | ||
128 | + ids.push($(this).val()); | ||
129 | + } | ||
130 | + }); | ||
131 | + | ||
132 | + if (ids.length == 0) { | ||
133 | + art.dialog.through({ | ||
134 | + id: 'error', | ||
135 | + icon: 'error', | ||
136 | + content: '您没有勾选信息,无法进行操作!', | ||
137 | + cancelVal: '关闭', | ||
138 | + cancel: true | ||
139 | + }); | ||
140 | + return false; | ||
141 | + } | ||
142 | + | ||
143 | + ids = ids.join(','); | ||
144 | + art.dialog.open("__ROOT__/index.php?g=portal&m=AdminArticle&a=move&old_term_id={$term.term_id|default=0}&ids=" + ids, { | ||
145 | + title: "批量移动", | ||
146 | + width: "300px" | ||
147 | + }); | ||
148 | + }); | ||
149 | + }); | ||
150 | + }); | ||
151 | +</script> | ||
94 | </body> | 152 | </body> |
95 | </html> | 153 | </html> |
-
请 注册 或 登录 后发表评论