diff --git a/README.md b/README.md index fdde685..feb77a3 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ▲ 开发商:生蚝科技 -▲ 代码版本信息:***Build 00338 (2018-03-31 13:17)*** +▲ 代码版本信息:***Build 00363 (2018-04-01 15:44)*** ▲ 系统版本信息:***V1.0 Build*** diff --git a/application/views/admin/notice/edit.php b/application/views/admin/notice/edit.php index a15a4d0..80aa9fd 100644 --- a/application/views/admin/notice/edit.php +++ b/application/views/admin/notice/edit.php @@ -3,7 +3,7 @@ * @name V-编辑通知 * @author SmallOysyer * @since 2018-03-31 - * @version V1.0 2018-03-31 + * @version V1.0 2018-04-01 */ ?> @@ -64,16 +64,21 @@ editor.create(); editor.txt.html(""); +$(function(){ + $('#tipsModal').on('hidden.bs.modal',function (){ + $("#wangEditor_div").removeAttr("style"); + }); +}); + function edit(){ lockScreen(); id=$("#noticeID").val(); title=$("#title").val(); content=editor.txt.html(); - editor.$textElem.attr('contenteditable', false); - + $("#wangEditor_div").attr("style","display:none;"); + if(title==""){ unlockScreen(); - editor.$textElem.attr('contenteditable', true) $("#tips").html("请输入通知标题!"); $("#tipsModal").modal('show'); return false; @@ -87,7 +92,6 @@ function edit(){ } if(title.length<1 || title.length>50){ unlockScreen(); - editor.$textElem.attr('contenteditable', true) $("#tips").html("请输入 1-50字 的通知标题!"); $("#tipsModal").modal('show'); return false; @@ -101,8 +105,7 @@ function edit(){ error:function(e){ console.log(JSON.stringify(e)); unlockScreen(); - editor.$textElem.attr('contenteditable', true) - $("#tips").html("服务器错误!
请联系技术支持并提交以下错误码:
"+e.responseText+""); + $("#tips").html("服务器错误!
请联系技术支持并提交以下错误码:
"+e.status+""); $("#tipsModal").modal('show'); return false; }, @@ -114,17 +117,14 @@ function edit(){ history.go(-1); return true; }else if(ret.message=="updateFailed"){ - editor.$textElem.attr('contenteditable', true) $("#tips").html("编辑失败!!!"); $("#tipsModal").modal('show'); return false; }else if(ret.code=="403"){ - editor.$textElem.attr('contenteditable', true) $("#tips").html("Token无效!
Tips:请勿在提交前打开另一页面哦~"); $("#tipsModal").modal('show'); return false; }else{ - editor.$textElem.attr('contenteditable', true) $("#tips").html("系统错误!
请联系技术支持并提交以下错误码:
"+ret.code+""); $("#tipsModal").modal('show'); return false; diff --git a/application/views/admin/notice/list.php b/application/views/admin/notice/list.php index e99f8ae..55e3513 100644 --- a/application/views/admin/notice/list.php +++ b/application/views/admin/notice/list.php @@ -3,7 +3,7 @@ * @name V-通知管理 * @author SmallOysyer * @since 2018-03-28 - * @version V1.0 2018-03-31 + * @version V1.0 2018-04-01 */ ?> @@ -48,8 +48,8 @@ - + 详细 编辑 @@ -70,7 +70,12 @@