dever 6 vuotta sitten
vanhempi
commit
1b7f4dd123
1 muutettua tiedostoa jossa 20 lisäystä ja 1 poistoa
  1. 20 1
      assets/lib/manage/main.js

+ 20 - 1
assets/lib/manage/main.js

@@ -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;