dever 6 anni fa
parent
commit
31dc48cbd1
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8 2
      assets/lib/manage/main.js

+ 8 - 2
assets/lib/manage/main.js

@@ -1747,9 +1747,14 @@ function showAlert(msg, func, title, index)
 	}
 
 	if (func) {
-		config.yes = function()
+		config.yes = function(index)
 		{
-			func();
+			func(index);
+		};
+	} else {
+		config.yes = function(index)
+		{
+			layer.close(index);
 		};
 	}
 	var index = layer.open(config);
@@ -1779,6 +1784,7 @@ function fastEdit(e, url, title, col, index)
 			}
 		} else {
 			html = t;
+			func = false;
 		}
 
 		if (index == 1) {