Showing
1 changed file
with
1 additions
and
12 deletions
@@ -128,7 +128,7 @@ $(document).on("click", ".add2", function() { | @@ -128,7 +128,7 @@ $(document).on("click", ".add2", function() { | ||
128 | /** | 128 | /** |
129 | * 预发布版本 | 129 | * 预发布版本 |
130 | */ | 130 | */ |
131 | -/*$(document).on("click", ".delbtn", function() { | 131 | +$(document).on("click", ".delbtn", function() { |
132 | var item = g.rows[$(this).data("index")]; | 132 | var item = g.rows[$(this).data("index")]; |
133 | common.dialog.confirm("警告", "是否确认删除?",function() { | 133 | common.dialog.confirm("警告", "是否确认删除?",function() { |
134 | common.util.__ajax({ | 134 | common.util.__ajax({ |
@@ -138,15 +138,4 @@ $(document).on("click", ".add2", function() { | @@ -138,15 +138,4 @@ $(document).on("click", ".add2", function() { | ||
138 | g.reload(); | 138 | g.reload(); |
139 | }); | 139 | }); |
140 | }); | 140 | }); |
141 | - });*/ | ||
142 | -$(document).on("click", ".delbtn", function () { | ||
143 | - var item = g.rows[$(this).data("index")]; | ||
144 | - common.dialog.confirm("警告", "是否确认删除?", function () { | ||
145 | - common.util.__ajax({ | ||
146 | - url: "/resources/deleteResourceById", | ||
147 | - data: {id: item.id} | ||
148 | - }, function () { | ||
149 | - g.reload(); | ||
150 | - }); | ||
151 | }); | 141 | }); |
152 | -}); |
-
Please register or login to post a comment