Authored by wangwei

资源位关闭内容编辑页,自动解除锁定

... ... @@ -33,7 +33,6 @@ if(lock_type==1){
}, true);
}
/*配置模块*/
var edit = new common.edit2(".modal-body", {
bucket: "yhb-img01"
... ... @@ -454,6 +453,16 @@ $(document).on("change", ".observe", function () {
});
});
window.onbeforeunload = function(){
if(lock_type==1){
common.util.__ajax({
url: "/resources/updateLock",
data: {id: param,
status:0}
}, function () {
});
}
}
/*删除*/
$(document).on("click", ".del", function () {//删除
if(!checkLockStatus()){
... ... @@ -1603,4 +1612,4 @@ function validateRollingOverContent(data) {
}
return errArr;
}
\ No newline at end of file
}
... ...
... ... @@ -59,7 +59,7 @@ var g = new common.grid({
{display: "操作", name: "",render: function(item) {
var arr = [];
arr.push('<a target="_blank" class="btn btn-xs btn-info contentManage" data-index="' + item.__index + '" href="/resource/content/index/0/' + item.id + '">内容查看</a>');
arr.push('<a target="_blank" class="btn btn-xs btn-primary add2" data-index="' + item.__index + '" href="/resource/content/index/1/' + item.id + '">内容编辑</a>');
arr.push('<a target="_blank" class="btn btn-xs btn-primary add" data-index="' + item.__index + '" href="/resource/content/index/1/' + item.id + '">内容编辑</a>');
arr.push('<a class="btn btn-xs btn-primary add2" data-index="' + item.__index + '">编辑</a>');
arr.push('<a class="btn btn-xs btn-danger delbtn" data-index="' + item.__index + '">删除</a>');
if(item.lockPersonName !=''){
... ...