|
@@ -395,7 +395,7 @@ function loadEditorParam(e)
|
|
|
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
|
|
|
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
|
|
|
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
|
|
|
- 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage' ,'media','table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
|
|
|
+ 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage','table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
|
|
|
'anchor', 'link', 'unlink'
|
|
|
]
|
|
|
//media
|
|
@@ -658,7 +658,7 @@ function update(e, id, project, table, notice)
|
|
|
var t = eval('('+t+')');
|
|
|
if (t.status == 1) {
|
|
|
e.attr('data-old', value);
|
|
|
- notify('操作已成功!您的操作已修改当前选项!');
|
|
|
+ notify('操作已成功!您的操作已修改当前选项!', e);
|
|
|
preview();
|
|
|
} else {
|
|
|
msg(t);
|
|
@@ -680,8 +680,17 @@ function update(e, id, project, table, notice)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-function notify(msg)
|
|
|
+function notify(msg, e)
|
|
|
{
|
|
|
+ if (!e) {
|
|
|
+ layer.msg(msg);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ layer.tips(msg, e, {
|
|
|
+ tips: [1, '#3595CC']
|
|
|
+ });
|
|
|
+
|
|
|
+ /*
|
|
|
var notice = new PNotify({
|
|
|
title: '提示信息',
|
|
|
text: msg,
|
|
@@ -693,6 +702,7 @@ function notify(msg)
|
|
|
notice.get().click(function() {
|
|
|
notice.remove();
|
|
|
});
|
|
|
+ */
|
|
|
}
|
|
|
|
|
|
//模板选择
|
|
@@ -1436,7 +1446,7 @@ function edit()
|
|
|
|
|
|
$.post(url, {project:project,table:table,value:value,where_id:id,col:col}, function(t)
|
|
|
{
|
|
|
- notify('修改成功');
|
|
|
+ notify('修改成功', self);
|
|
|
|
|
|
preview();
|
|
|
/*
|
|
@@ -2305,6 +2315,10 @@ var dever_update =
|
|
|
{
|
|
|
self.index[key] = 0;
|
|
|
}
|
|
|
+
|
|
|
+ if (isNaN(self.index[key])) {
|
|
|
+ self.index[key] = 0;
|
|
|
+ }
|
|
|
|
|
|
if(self.index[key] <= 0)
|
|
|
{
|