Authored by 陶雨

Merge branch 'release/1.6' of http://git.dev.yoho.cn/platform/yohobuy-portal-fe into release/1.6

Conflicts:
	client/js/sourceManage/resourceManage.js
@@ -125,15 +125,26 @@ $(document).on("click", ".add2", function() { @@ -125,15 +125,26 @@ $(document).on("click", ".add2", function() {
125 item.resPlatforms = resPlatforms; 125 item.resPlatforms = resPlatforms;
126 Bll.toast("/resources/saveResource", item, "编辑资源"); 126 Bll.toast("/resources/saveResource", item, "编辑资源");
127 }); 127 });
128 -  
129 -$(document).on("click", ".delbtn", function() { 128 +/**
  129 + * 预发布版本
  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 () {
130 var item = g.rows[$(this).data("index")]; 143 var item = g.rows[$(this).data("index")];
131 - common.dialog.confirm("警告", "是否确认删除?",function() { 144 + common.dialog.confirm("警告", "是否确认删除?", function () {
132 common.util.__ajax({ 145 common.util.__ajax({
133 url: "/resources/deleteResourceById", 146 url: "/resources/deleteResourceById",
134 - //url: "/resources/deleteAllResourceByCode",  
135 - //data: {code: item.code},  
136 - data: {id: item.id}, 147 + data: {id: item.id}
137 }, function () { 148 }, function () {
138 g.reload(); 149 g.reload();
139 }); 150 });