Authored by wangwei

update

... ... @@ -508,7 +508,7 @@ for(var i = 0; i < resources.length; i++) {
Bll.__render("#add-content", "template_content", {modules: Bll.contentDatas[currIndex]});
/*第四部 操作按钮 添加 删除 修改*/
var Button_content = [];
var Button_content = originButton;
$(document).on("click", ".add_btn", function () {
var item = Button_content[$(this).data("index")];
Bll.module = {};
... ... @@ -1143,7 +1143,13 @@ $(document).on("click", "#copyTab", function() {
url: "/resources/copyResContent",
data: {rId:resources[currIndex].resource.id}
}, function (res) {
window.location.href = window.location.href;
if(window.location.href.indexOf("#")!=-1){
var url = window.location.href;
console.log("location.href===",url);
window.location.href = url.substring(0,url.length-1);
}else{
window.location.href = window.location.href;
}
});
});
//保存时间
... ... @@ -1180,7 +1186,13 @@ $(document).on("click", "#saveTime", function() {
time:times[currIndex].time
}
}, function (res) {
window.location.href = window.location.href;
if(window.location.href.indexOf("#")!=-1){
var url = window.location.href;
console.log("location.href===",url);
window.location.href = url.substring(0,url.length-1);
}else{
window.location.href = window.location.href;
}
});
});
new common.edit2("#times-list").init();
... ... @@ -1217,7 +1229,14 @@ $(document).on("click", "#delTab", function() {
id: resources[currIndex].resource.id
}
}, function (res) {
window.location.href = window.location.href;
if(window.location.href.indexOf("#")!=-1){
var url = window.location.href;
console.log("location.href===",url);
window.location.href = url.substring(0,url.length-1);
}else{
window.location.href = window.location.href;
}
});
});
... ... @@ -1314,7 +1333,13 @@ $(document).on("click", "#sub_btn", function () {
url: "/resources/addResContent",
data: data
}, function (res) {
window.location.href = window.location.href;
if(window.location.href.indexOf("#")!=-1){
var url = window.location.href;
console.log("location.href===",url);
window.location.href = url.substring(0,url.length-1);
}else{
window.location.href = window.location.href;
}
});
});
... ...