dever 3 gadi atpakaļ
vecāks
revīzija
d5abc8a2b7
1 mainītis faili ar 12 papildinājumiem un 1 dzēšanām
  1. 12 1
      assets/lib/manage/main.js

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

@@ -2892,7 +2892,12 @@ function showYes(msg)
 				$('#update_button').show();
 				layer.closeAll();
 			} else {
-				location.reload()
+				if(msg.data.indexOf('http') != -1) {
+					location.href = msg.data;
+				} else {
+					location.reload()
+				}
+				
 			}
 		});
 	}
@@ -2938,3 +2943,9 @@ function setDate(e, d)
 	$('.manage_sdate').eq(1).val(nowDate + ' 23:59:59');
 }
 
+function showVideo(video)
+{
+	var html = '<meta name="referrer" content="no-referrer"><video width="400" height="300" controls autoplay="autoplay"><source src="'+video+'" type="video/mp4">您的浏览器不支持Video标签。</video>';
+	showAlert(html);
+}
+