|
@@ -60,6 +60,7 @@ function init(ew)
|
|
|
initDate();
|
|
|
initLayui();
|
|
|
initColor();
|
|
|
+ initUpdate();
|
|
|
|
|
|
//更新页面一些功能,上边的一些功能等找时间再优化吧
|
|
|
dever_update.init();
|
|
@@ -69,6 +70,24 @@ function init(ew)
|
|
|
table();
|
|
|
}
|
|
|
|
|
|
+function initUpdate()
|
|
|
+{
|
|
|
+ if ($('.update_show_editor').length) {
|
|
|
+ $('.update_show_editor').each(function() {
|
|
|
+ $(this).bind('click', function()
|
|
|
+ {
|
|
|
+ var url = $(this).attr('key');
|
|
|
+ var title = $(this).attr('value');
|
|
|
+ $.get(url, {}, function(t)
|
|
|
+ {
|
|
|
+ showAlert(t, false, title);
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
function initLayui()
|
|
|
{
|
|
|
layui.use('layer', function() {
|
|
@@ -1805,7 +1824,7 @@ function updateMsg(id)
|
|
|
function showAlert(msg, func, title, index)
|
|
|
{
|
|
|
if (!title) {
|
|
|
- title = $("#dever-name").html() + '提醒您';
|
|
|
+ title = '提醒您';
|
|
|
}
|
|
|
|
|
|
var type = 0;
|