Showing
1 changed file
with
11 additions
and
22 deletions
@@ -128,25 +128,14 @@ $(document).on("click", ".add2", function() { | @@ -128,25 +128,14 @@ $(document).on("click", ".add2", function() { | ||
128 | /** | 128 | /** |
129 | * 预发布版本 | 129 | * 预发布版本 |
130 | */ | 130 | */ |
131 | -/*$(document).on("click", ".delbtn", function() { | ||
132 | - var item = g.rows[$(this).data("index")]; | ||
133 | - common.dialog.confirm("警告", "是否确认删除?",function() { | ||
134 | - common.util.__ajax({ | ||
135 | - url: "/resources/deleteAllResourceByCode", | ||
136 | - data: {code: item.code} | ||
137 | - }, function () { | ||
138 | - g.reload(); | ||
139 | - }); | ||
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 | - }); | ||
152 | -}); | ||
131 | +$(document).on("click", ".delbtn", function() { | ||
132 | + var item = g.rows[$(this).data("index")]; | ||
133 | + common.dialog.confirm("警告", "是否确认删除?",function() { | ||
134 | + common.util.__ajax({ | ||
135 | + url: "/resources/deleteAllResourceByCode", | ||
136 | + data: {code: item.code} | ||
137 | + }, function () { | ||
138 | + g.reload(); | ||
139 | + }); | ||
140 | + }); | ||
141 | + }); |
-
Please register or login to post a comment