diff --git a/src/admin/js/album.js b/src/admin/js/album.js
index 13ab8da3..9f7ff58d 100644
--- a/src/admin/js/album.js
+++ b/src/admin/js/album.js
@@ -7,8 +7,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
-
-
function checkSubmitAlb() {
if (document.form1.title.value == '') {
ShowMsg("档案标题不能为空");
@@ -19,9 +17,8 @@ function checkSubmitAlb() {
return false;
}
document.form1.imagebody.value = $Obj('copyhtml').innerHTML;
-
if ($("#thumbnails .albCt").length > 0) {
- // 这里从thumbnails中取出图片元素信息
+ //这里从thumbnails中取出图片元素信息
$("#thumbnails .albCt").each(function () {
albums.push({
"img": $(this).find("img").attr("src"),
@@ -29,16 +26,12 @@ function checkSubmitAlb() {
})
})
}
-
$("#albums").val(JSON.stringify(albums));
-
return true;
}
-
function testGet() {
LoadTestDiv();
}
-
function checkMuList(psid, cmid) {
if ($Obj('pagestyle3').checked) {
$Obj('cfgmulist').style.display = 'block';
@@ -51,21 +44,16 @@ function checkMuList(psid, cmid) {
$Obj('spagelist').style.display = 'none';
}
}
-
//图集,显示与隐藏zip文件选项
function showZipField(formitem, zipid, upid) {
if (formitem.checked) {
$Obj(zipid).style.display = 'block';
$Obj(upid).style.display = 'none';
- //$Obj('handfield').style.display = 'none';
- // $Obj('formhtml').checked = false;
$Obj('copyhtml').innerHTML = '';
} else {
$Obj(zipid).style.display = 'none';
- //$Obj('handfield').style.display = 'block';
}
}
-
//图集,显示与隐藏Html编辑框
function showHtmlField(formitem, htmlid, upid) {
if ($Nav() != "IE") {
@@ -75,15 +63,12 @@ function showHtmlField(formitem, htmlid, upid) {
if (formitem.checked) {
$Obj(htmlid).style.display = 'block';
$Obj(upid).style.display = 'none';
- //$Obj('handfield').style.display = 'none';
$Obj('formzip').checked = false;
} else {
$Obj(htmlid).style.display = 'none';
- //$Obj('handfield').style.display = 'block';
$Obj('copyhtml').innerHTML = '';
}
}
-
function seePicNewAlb(f, imgdid, frname, hpos, acname) {
var newobj = null;
if (f.value == '') return;
@@ -98,7 +83,6 @@ function seePicNewAlb(f, imgdid, frname, hpos, acname) {
nForm.target = frname;
nForm.dopost.value = 'uploadLitpic';
nForm.submit();
-
picnameObj.value = '';
newobj = $Obj('uploadwait');
if (!newobj) {
@@ -119,11 +103,7 @@ function seePicNewAlb(f, imgdid, frname, hpos, acname) {
nForm.dopost.value = 'save';
nForm.target = '';
nForm.litpic.disabled = true;
- //nForm.litpic = null;
- //if(nForm.attachEvent) nForm.attachEvent("onsubmit", checkSubmit);
- //else nForm.addEventListener("submit", checkSubmit, true);
}
-
//删除已经上传的图片
function delAlbPic(pid) {
var tgobj = $Obj('albCtok' + pid);
@@ -132,8 +112,7 @@ function delAlbPic(pid) {
$Obj('thumbnails').removeChild(tgobj);
});
}
-
-//删除已经上传的图片(编辑时用)
+//删除已经上传的图片,编辑时用
function delAlbPicOld(picfile, pid) {
var tgobj = $Obj('albold' + pid);
fetch('swfupload.php?dopost=delold&picfile=' + picfile).then(resp=>resp.text()).then((d)=>{
diff --git a/src/admin/js/base.js b/src/admin/js/base.js
index 99f1c05e..38ee19bd 100644
--- a/src/admin/js/base.js
+++ b/src/admin/js/base.js
@@ -9,7 +9,6 @@
}).blur(function(){
$(this).removeClass("txt_s");
});
-
//表格折叠
$(".tform").find("tbody tr th[_show]").each(function(i){
//加入折叠提示
@@ -33,14 +32,12 @@
$(this).removeClass("mouseon");
}).click();
});
-
//列表行高亮
$("table[_dlist*='light']").children("tbody").children("tr").mouseover(function(){
if($(this).attr("_nolight")!="yes")$(this).addClass("t_on");
}).mouseout(function(){
$(this).removeClass("t_on");
});
-
//列表行整行选择
$("table[_dlist*='check']").each(function(){
//处理行点击
@@ -57,7 +54,6 @@
}
});
-
//处理checkbox点击
$(this).find("td input[type='checkbox']").click(function(){
tr = $(this).parent("td").parent("tr");
@@ -69,7 +65,6 @@
tr.addClass("t_sl");
}
});
-
//排除链接及按钮点击
$(this).find("tbody tr td a,tbody tr td button,tbody tr td table").click(function(){
tr = $(this).parent("td").parent("tr");
@@ -84,19 +79,14 @@
});
});
-
-
-
//高亮初始化
setChecklight();
-
//全选按钮
$("button[_click='allSelect']").click(function(){
ckbox = $(this).parent("td").parent("tr").parent("tbody").find("td input[type='checkbox']");
ckbox.attr("checked","checked");
setChecklight();
});
-
//反选按钮
$("button[_click='unSelect']").click(function(){
ckbox = $(this).parent("td").parent("tr").parent("tbody").find("td input[type='checkbox']");
@@ -106,7 +96,6 @@
setChecklight();
});
-
//自定义提交
$("button[_submit]").click(function(){
url = $(this).attr("_submit");
@@ -117,11 +106,8 @@
}
$(this).parents("form").attr("action",url).submit();
});
-
-
});
-
- /*高亮初始化*/
+ //高亮初始化
function setChecklight(){
$(".tlist[_dlist*='check']").find("tbody tr td input[type='checkbox']").each(function(i){
tr = $(this).parent("td").parent("tr");
@@ -132,8 +118,7 @@
}
});
}
-
- /*栏目跳转*/
+ //栏目跳转
function AC(mid){
f = $(window.parent.document);
mlink = f.find("a[id='"+mid+"']");
@@ -155,5 +140,4 @@
}
}
- }
-
+ }
\ No newline at end of file
diff --git a/src/admin/js/blank.js b/src/admin/js/blank.js
index 3c5b3d1e..8feb3d4d 100644
--- a/src/admin/js/blank.js
+++ b/src/admin/js/blank.js
@@ -1,3 +1,3 @@
function CheckSubmit(){
return true;
-}
+}
\ No newline at end of file
diff --git a/src/admin/js/context_menu.js b/src/admin/js/context_menu.js
index 46217b55..f8daa338 100644
--- a/src/admin/js/context_menu.js
+++ b/src/admin/js/context_menu.js
@@ -6,17 +6,14 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
-
var MenuWidth = 120;
var ItemHeight = 16;
var ItemNumber = 0;
-
function curNav() {
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE';
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF';
else return 'OT';
}
-
function insertHtm(op, code, isStart) {
if (curNav() == 'IE') {
op.insertAdjacentHTML(isStart ? "beforeEnd" : "afterEnd", code);
@@ -28,49 +25,34 @@ function insertHtm(op, code, isStart) {
else op.appendChild(fragment);
}
}
-
ContextMenu.WebFX_PopUp = null;
ContextMenu.WbFX_PopUpcss = null;
-
ContextMenu.intializeContextMenu = function () {
insertHtm(document.body, '', true);
-
if (curNav() == 'IE') WebFX_PopUp = document.frames['WebFX_PopUp'];
else WebFX_PopUp = document.getElementById('WebFX_PopUp');
-
WebFX_PopUpcss = document.getElementById('WebFX_PopUp');
-
WebFX_PopUpcss.onfocus = function () { WebFX_PopUpcss.style.display = "inline" };
WebFX_PopUpcss.onblur = function () { WebFX_PopUpcss.style.display = "none" };
-
if (curNav() == 'IE') document.body.attachEvent("onmousedown", function () { WebFX_PopUpcss.style.display = "none" });
else document.addEventListener("onblur", function () { WebFX_PopUpcss.style.display = "none" }, false);
-
if (curNav() == 'IE') document.attachEvent("onblur", function () { WebFX_PopUpcss.style.display = "none" });
else document.addEventListener("onblur", function () { WebFX_PopUpcss.style.display = "none" }, false);
}
-
-
function ContextSeperator() { }
-
function ContextMenu() { }
-
ContextMenu.showPopup = function (x, y) {
WebFX_PopUpcss.style.display = "block"
}
-
ContextMenu.display = function (evt, popupoptions) {
var eobj, x, y;
-
eobj = evt ? evt : (window.event ? window.event : null);
-
if (curNav() == 'IE') {
x = eobj.x; y = eobj.y
} else {
x = eobj.pageX; y = eobj.pageY;
}
-
ContextMenu.populatePopup(popupoptions, window)
ContextMenu.showPopup(x, y);
ContextMenu.fixSize();
@@ -78,57 +60,32 @@ ContextMenu.display = function (evt, popupoptions) {
eobj.cancelBubble = true;
eobj.returnValue = false;
}
-
//TODO
ContextMenu.getScrollTop = function () {
return document.body.scrollTop;
- //window.pageXOffset and window.pageYOffset for moz
}
-
ContextMenu.getScrollLeft = function () {
return document.body.scrollLeft;
}
-
-
ContextMenu.fixPos = function (x, y) {
- /*var docheight,docwidth,dh,dw;
- if(!x) { x=0; y=0; }
- docheight = document.body.clientHeight;
- docwidth = document.body.clientWidth;
- dh = (WebFX_PopUpcss.offsetHeight+y) - docheight;
- dw = (WebFX_PopUpcss.offsetWidth+x) - docwidth;
- if(dw>0){
- WebFX_PopUpcss.style.left = (x - dw) + ContextMenu.getScrollLeft() + "px";
- }else {
- WebFX_PopUpcss.style.left = x + ContextMenu.getScrollLeft();
- } if(dh>0) {
- WebFX_PopUpcss.style.top = (y - dh) + ContextMenu.getScrollTop() + "px"
- }else{
- WebFX_PopUpcss.style.top = y + ContextMenu.getScrollTop(); }*/
WebFX_PopUpcss.style.top = y + "px";
WebFX_PopUpcss.style.left = x + "px";
}
-
ContextMenu.fixSize = function () {
WebFX_PopUpcss.style.height = (ItemHeight * ItemNember + 20) + "px";
WebFX_PopUpcss.style.width = MenuWidth + "px";
ItemNember = 0;
}
-
ContextMenu.populatePopup = function (arr, win) {
var alen, i, tmpobj, doc, height, htmstr;
alen = arr.length;
ItemNember = alen;
-
if (curNav() == 'IE') doc = WebFX_PopUp.document;
else doc = WebFX_PopUp.contentWindow.document;
-
doc.body.innerHTML = '';
- //if (doc.getElementsByTagName("LINK").length == 0){
doc.open();
doc.write('
');
doc.close();
- //}
for (i = 0; i < alen; i++) {
if (arr[i].constructor == ContextItem) {
tmpobj = doc.createElement("DIV");
@@ -149,7 +106,6 @@ ContextMenu.populatePopup = function (arr, win) {
if (typeof (f) == "function") { f(); }
};
})(arr[i].action);
-
tmpobj.onmouseover = function () { this.className = "WebFX-ContextMenu-Over" }
tmpobj.onmouseout = function () { this.className = "WebFX-ContextMenu-Item" }
}
@@ -161,7 +117,6 @@ ContextMenu.populatePopup = function (arr, win) {
doc.body.className = "WebFX-ContextMenu-Body";
doc.body.onselectstart = function () { return false; }
}
-
function ContextItem(str, fnc, disabled) {
this.text = str;
this.action = fnc;
diff --git a/src/admin/js/contextmenu.css b/src/admin/js/contextmenu.css
index 3d24359a..acba1628 100644
--- a/src/admin/js/contextmenu.css
+++ b/src/admin/js/contextmenu.css
@@ -1,62 +1 @@
-.WebFX-ContextMenu {
- border:0;
- width:10px
-}
-.WebFX-ContextMenu-Body {
- background-color:#EEFFEC;
- background-image:url(../../static/web/img/mmenubg.gif);
- margin:0;
- padding:1px;
- border:1px solid #E0E7C9
-}
-.WebFX-ContextMenu-Separator {
- font-size:0pt;
- border:1px dotted #E0E7C9;
- height:1px;
- overflow:hidden;
- margin:3px 1px 3px 1px
-}
-.WebFX-ContextMenu-Item {
- cursor:default;
- font:menu;
- font-size:12px;
- color:black !important;
- width:100%;
- padding:2px 20px 2px 16px
-}
-.WebFX-ContextMenu-Over {
- cursor:default;
- background-color:highlight;
- font:menu;
- font-size:12px;
- width:100%;
- padding:2px 20px 2px 16px;
- color:highlighttext
-}
-.WebFX-ContextMenu-Disabled {
- cursor:default;
- font:menu;
- width:100%;
- padding:2px 20px 2px 16px;
- color:graytext
-}
-.WebFX-ContextMenu-Disabled-Over {
- cursor:default;
- background-color:highlight;
- font:menu;
- width:100%;
- padding:2px 20px 2px 16px;
- color:graytext
-}
-.WebFX-ContextMenu-Disabled-Over .WebFX-ContextMenu-DisabledContainer {
- display:block;
- width:100%;
- vertical-align:center
-}
-.WebFX-ContextMenu-Disabled .WebFX-ContextMenu-DisabledContainer {
- display:block;
- background:GrayText;
- filter:chroma(color=#010101) dropshadow(color=ButtonHighlight,offx=1,offy=1);
- width:100%;
- vertical-align:center
-}
\ No newline at end of file
+.WebFX-ContextMenu{border:0;width:10px}.WebFX-ContextMenu-Body{background-color:#EEFFEC;background-image:url(../../static/web/img/mmenubg.gif);margin:0;padding:1px;border:1px solid #E0E7C9}.WebFX-ContextMenu-Separator{font-size:0pt;border:1px dotted #E0E7C9;height:1px;overflow:hidden;margin:3px 1px 3px 1px}.WebFX-ContextMenu-Item{cursor:default;font:menu;font-size:12px;color:black !important;width:100%;padding:2px 20px 2px 16px}.WebFX-ContextMenu-Over{cursor:default;background-color:highlight;font:menu;font-size:12px;width:100%;padding:2px 20px 2px 16px;color:highlighttext}.WebFX-ContextMenu-Disabled{cursor:default;font:menu;width:100%;padding:2px 20px 2px 16px;color:graytext}.WebFX-ContextMenu-Disabled-Over{cursor:default;background-color:highlight;font:menu;width:100%;padding:2px 20px 2px 16px;color:graytext}.WebFX-ContextMenu-Disabled-Over .WebFX-ContextMenu-DisabledContainer{display:block;width:100%;vertical-align:center}.WebFX-ContextMenu-Disabled .WebFX-ContextMenu-DisabledContainer{display:block;background:GrayText;filter:chroma(color=#010101) dropshadow(color=ButtonHighlight,offx=1,offy=1);width:100%;vertical-align:center}
\ No newline at end of file
diff --git a/src/admin/js/dialog.js b/src/admin/js/dialog.js
index f530fee4..9da8a07a 100644
--- a/src/admin/js/dialog.js
+++ b/src/admin/js/dialog.js
@@ -49,8 +49,6 @@ function AlertMsg(title, id) {
var msgObj = document.createElement("div")
msgObj.setAttribute("id", "msgdiv");
msgObj.style.position = "absolute";
- //msgObj.style.top = (screen.availHeight - msgh) / 4 + "px";
- //msgObj.style.left = (screen.availWidth - msgw) / 2 + "px";
msgObj.style.top = "100px";
msgObj.style.left = "100px";
msgObj.style.width = msgw + "px";
diff --git a/src/admin/js/diy.js b/src/admin/js/diy.js
index 2d6b2d15..dd4f0f7a 100644
--- a/src/admin/js/diy.js
+++ b/src/admin/js/diy.js
@@ -6,8 +6,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
-
-
function showHide2(objname) {
var obj = $Obj(objname);
if (obj.style.display != 'block') { obj.style.display = 'block' }
diff --git a/src/admin/js/float.js b/src/admin/js/float.js
index 0fdf2ba6..f4b54fe3 100644
--- a/src/admin/js/float.js
+++ b/src/admin/js/float.js
@@ -32,7 +32,6 @@ function heartBeat() {
}
}
-
function checkFocus(x, y) {
stalkerx = document.floater.pageX;
stalkery = document.floater.pageY;
@@ -41,7 +40,6 @@ function checkFocus(x, y) {
if ((x > stalkerx && x < (stalkerx + stalkerwidth)) && (y > stalkery && y < (stalkery + stalkerheight))) return true;
else return false;
}
-
function grabIt(e) {
if (IE) {
whichIt = event.srcElement;
@@ -62,9 +60,7 @@ function grabIt(e) {
}
} return true;
}
-
function moveIt(e) {
-
if (whichIt == null) { return false; }
if (IE) {
newX = (event.clientX + document.body.scrollLeft);
@@ -88,7 +84,6 @@ function moveIt(e) {
}
return false;
}
-
function dropIt() {
whichIt = null;
if (NS) window.releaseEvents(Event.MOUSEMOVE);
diff --git a/src/admin/js/frame.js b/src/admin/js/frame.js
index 195139db..1f013320 100644
--- a/src/admin/js/frame.js
+++ b/src/admin/js/frame.js
@@ -3,29 +3,20 @@ var thespeed = 5;
var navIE = document.all && navigator.userAgent.indexOf("Firefox") == -1;
var myspeed = 0;
$(function () {
-
//左侧菜单开关
LeftMenuToggle();
-
//全部功能开关
AllMenuToggle();
-
//取消菜单链接虚线
$(".head").find("a").click(function () { $(this).blur() });
$(".menu").find("a").click(function () { $(this).blur() });
-
-
}).keydown(function (event) {//快捷键
if (event.keyCode == 116) {
- //url = $("#main").attr("src");
- //main.location.href = url;
- //return false;
}
if (event.keyCode == 27) {
$("#qucikmenu").slideToggle("fast")
}
});
-
function LeftMenuToggle() {//左侧菜单开关
$("#togglemenu").click(function () {
if ($("body").attr("class") == "showmenu") {
@@ -37,19 +28,14 @@ function LeftMenuToggle() {//左侧菜单开关
}
});
}
-
-
function AllMenuToggle() {//全部功能开关
mask = $(".pagemask,.iframemask,.allmenu");
$("#allmenu").click(function () {
mask.show();
});
- //mask.mousedown(function(){alert("123");});
mask.click(function () { mask.hide(); });
}
-
function AC(act) {
- //alert(act);
mlink = $("a[id='" + act + "']");
if (mlink.size() > 0) {
box = mlink.parents("div[id^='menu_']");
@@ -69,59 +55,14 @@ function AC(act) {
}
}
}
-
/*********************
* 滚动按钮设置
*********************/
-
function scrollwindow() {
parent.frames['menu'].scrollBy(0, myspeed);
}
-
function initializeIT() {
if (myspeed != 0) {
scrollwindow();
}
-}
-
-
-//滚动插件
-/*
-(function($){
- $.fn.extend({
- Scroll:function(opt,callback){
- //参数初始化
- if(!opt) var opt={};
- var _this=this.eq(0).find("ul:first");
- var lineH=_this.find("li:first").height(), //获取行高
- line=opt.line?parseInt(opt.line,10):parseInt(this.height()/lineH,10), //每次滚动的行数,默认为一屏,即父容器高度
- speed=opt.speed?parseInt(opt.speed,10):500, //卷动速度,数值越大,速度越慢(毫秒)
- timer=opt.timer?parseInt(opt.timer,10):3000; //滚动的时间间隔(毫秒)
- if(line==0) line=1;
- var upHeight=0-line*lineH;
- //滚动函数
- scrollUp=function(){
- _this.animate({
- marginTop:upHeight
- },speed,function(){
- for(i=1;i<=line;i++){
- _this.find("li:first").appendTo(_this);
- }
- _this.css({marginTop:0});
- });
- }
- //鼠标事件绑定
- var timerID;
- timerID=setInterval("scrollUp()",timer);
- _this.mouseover(function(){
- clearInterval(timerID);
- }).mouseout(function(){
- timerID=setInterval("scrollUp()",timer);
- });
- }
- })
-})(jQuery);
-*/
-
-
-
+}
\ No newline at end of file
diff --git a/src/admin/js/global.js b/src/admin/js/global.js
index 78844fcc..86768ef9 100644
--- a/src/admin/js/global.js
+++ b/src/admin/js/global.js
@@ -20,4 +20,4 @@ function browserVersion(types) {
eval('BROWSER.' + i + '= ver');
}
BROWSER.other = other;
-}
+}
\ No newline at end of file
diff --git a/src/admin/js/ieemu.js b/src/admin/js/ieemu.js
index 7c616d01..6e26144d 100644
--- a/src/admin/js/ieemu.js
+++ b/src/admin/js/ieemu.js
@@ -6,10 +6,8 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
-
var ie = document.all != null;
var moz = !ie && document.getElementById != null && document.layers == null;
-
/*
* Extends the event object with srcElement, cancelBubble, returnValue,
* fromElement and toElement
@@ -18,17 +16,14 @@ function extendEventObject() {
Event.prototype.__defineSetter__("returnValue", function (b) {
if (!b) this.preventDefault();
});
-
Event.prototype.__defineSetter__("cancelBubble", function (b) {
if (b) this.stopPropagation();
});
-
Event.prototype.__defineGetter__("srcElement", function () {
var node = this.target;
while (node.nodeType != 1) node = node.parentNode;
return node;
});
-
Event.prototype.__defineGetter__("fromElement", function () {
var node;
if (this.type == "mouseover")
@@ -39,7 +34,6 @@ function extendEventObject() {
while (node.nodeType != 1) node = node.parentNode;
return node;
});
-
Event.prototype.__defineGetter__("toElement", function () {
var node;
if (this.type == "mouseout")
@@ -50,7 +44,6 @@ function extendEventObject() {
while (node.nodeType != 1) node = node.parentNode;
return node;
});
-
Event.prototype.__defineGetter__("offsetX", function () {
return this.layerX;
});
@@ -58,7 +51,6 @@ function extendEventObject() {
return this.layerY;
});
}
-
/*
* Emulates element.attachEvent as well as detachEvent
*/
@@ -72,7 +64,6 @@ function emulateAttachEvent() {
};
this.addEventListener(shortTypeName, fHandler._ieEmuEventHandler, false);
};
-
HTMLDocument.prototype.detachEvent =
HTMLElement.prototype.detachEvent = function (sType, fHandler) {
var shortTypeName = sType.replace(/on/, "");
@@ -82,7 +73,6 @@ function emulateAttachEvent() {
this.removeEventListener(shortTypeName, fHandler, true);
};
}
-
/*
* This function binds the event object passed along in an
* event to window.event
@@ -94,12 +84,10 @@ function emulateEventHandlers(eventNames) {
}, true); // using capture
}
}
-
/*
* Simple emulation of document.all
* this one is far from complete. Be cautious
*/
-
function emulateAllModel() {
var allGetter = function () {
var a = this.getElementsByTagName("*");
@@ -112,13 +100,11 @@ function emulateAllModel() {
HTMLDocument.prototype.__defineGetter__("all", allGetter);
HTMLElement.prototype.__defineGetter__("all", allGetter);
}
-
function extendElementModel() {
HTMLElement.prototype.__defineGetter__("parentElement", function () {
if (this.parentNode == this.ownerDocument) return null;
return this.parentNode;
});
-
HTMLElement.prototype.__defineGetter__("children", function () {
var tmp = [];
var j = 0;
@@ -138,28 +124,20 @@ function extendElementModel() {
}
return tmp;
});
-
HTMLElement.prototype.contains = function (oEl) {
if (oEl == this) return true;
if (oEl == null) return false;
return this.contains(oEl.parentNode);
};
}
-
/*
-
document.defaultView.getComputedStyle(el1,
null).getPropertyValue('top');
-
*/
function emulateCurrentStyle(properties) {
HTMLElement.prototype.__defineGetter__("currentStyle", function () {
var cs = {};
var el = this;
for (var i = 0; i < properties.length; i++) {
- //cs.__defineGetter__(properties[i], function () {
- // window.status = "i: " + i ;
- // return document.defaultView.getComputedStyle(el, null).getPropertyValue(properties[i]);
- //});
cs.__defineGetter__(properties[i], encapsulateObjects(el, properties[i]));
}
return cs;
@@ -171,9 +149,7 @@ function encapsulateObjects(el, sProperty) {
return document.defaultView.getComputedStyle(el, null).getPropertyValue(sProperty);
};
}
-
function emulateHTMLModel() {
-
// This function is used to generate a html string for the text properties/methods
// It replaces '\n' with "
as well as fixes consecutive white spaces
// It also repalaces some special characters
@@ -183,32 +159,27 @@ function emulateHTMLModel() {
s = s.replace(/\s\s/, " ");
return s.replace(/\s/g, " ");
}
-
HTMLElement.prototype.insertAdjacentHTML = function (sWhere, sHTML) {
var df; // : DocumentFragment
var r = this.ownerDocument.createRange();
-
switch (String(sWhere).toLowerCase()) {
case "beforebegin":
r.setStartBefore(this);
df = r.createContextualFragment(sHTML);
this.parentNode.insertBefore(df, this);
break;
-
case "afterbegin":
r.selectNodeContents(this);
r.collapse(true);
df = r.createContextualFragment(sHTML);
this.insertBefore(df, this.firstChild);
break;
-
case "beforeend":
r.selectNodeContents(this);
r.collapse(false);
df = r.createContextualFragment(sHTML);
this.appendChild(df);
break;
-
case "afterend":
r.setStartAfter(this);
df = r.createContextualFragment(sHTML);
@@ -216,7 +187,6 @@ function emulateHTMLModel() {
break;
}
};
-
HTMLElement.prototype.__defineSetter__("outerHTML", function (sHTML) {
var r = this.ownerDocument.createRange();
r.setStartBefore(this);
@@ -225,7 +195,6 @@ function emulateHTMLModel() {
return sHTML;
});
-
HTMLElement.prototype.__defineGetter__("canHaveChildren", function () {
switch (this.tagName) {
case "AREA":
@@ -245,7 +214,6 @@ function emulateHTMLModel() {
}
return true;
});
-
HTMLElement.prototype.__defineGetter__("outerHTML", function () {
var attr, attrs = this.attributes;
var str = "<" + this.tagName;
@@ -259,28 +227,22 @@ function emulateHTMLModel() {
return str + ">" + this.innerHTML + "" + this.tagName + ">";
});
-
-
HTMLElement.prototype.__defineSetter__("innerText", function (sText) {
this.innerHTML = convertTextToHTML(sText);
return sText;
});
-
var tmpGet;
HTMLElement.prototype.__defineGetter__("innerText", tmpGet = function () {
var r = this.ownerDocument.createRange();
r.selectNodeContents(this);
return r.toString();
});
-
HTMLElement.prototype.__defineSetter__("outerText", function (sText) {
this.outerHTML = convertTextToHTML(sText);
return sText;
});
HTMLElement.prototype.__defineGetter__("outerText", tmpGet);
-
HTMLElement.prototype.insertAdjacentText = function (sWhere, sText) {
this.insertAdjacentHTML(sWhere, convertTextToHTML(sText));
};
-
}
\ No newline at end of file
diff --git a/src/admin/js/key.js b/src/admin/js/key.js
index 63db3479..2e21f19e 100644
--- a/src/admin/js/key.js
+++ b/src/admin/js/key.js
@@ -7,7 +7,6 @@ function selAll()
else celements[i].checked = false;
}
}
-
function noselAll()
{
var celements = document.getElementsByName('aids[]');
@@ -19,58 +18,52 @@ function noselAll()
}
}
}
-
function delkey()
+{
+ if(window.confirm("您确实要删除选定的关键字吗"))
{
- if(window.confirm("您确实要删除选定的关键字么?"))
- {
- document.form3.dopost.value = 'del';
- document.form3.submit();
- }
+ document.form3.dopost.value = 'del';
+ document.form3.submit();
}
-
+}
function diskey()
+{
+ if(window.confirm("您确实要禁用选定的关键字吗"))
{
- if(window.confirm("您确实要禁用选定的关键字么?"))
- {
- document.form3.dopost.value = 'dis';
- document.form3.submit();
- }
+ document.form3.dopost.value = 'dis';
+ document.form3.submit();
}
-
+}
function enakey()
+{
+ if(window.confirm("您确实要启用选定的关键字吗"))
{
- if(window.confirm("您确实要启用选定的关键字么?"))
- {
- document.form3.dopost.value = 'ena';
- document.form3.submit();
- }
+ document.form3.dopost.value = 'ena';
+ document.form3.submit();
}
-
+}
function urlkey()
+{
+ if(window.confirm("您确实要更新选定的关键字的网址吗"))
{
- if(window.confirm("您确实要更新选定的关键字的网址么?"))
- {
- document.form3.dopost.value = 'url';
- document.form3.submit();
- }
+ document.form3.dopost.value = 'url';
+ document.form3.submit();
}
-
+}
function rankey()
+{
+ if(window.confirm("您确实要改变选定的关键字的频率吗"))
{
- if(window.confirm("您确实要改变选定的关键字的频率么?"))
- {
- document.form3.dopost.value = 'ran';
- document.form3.submit();
- }
+ document.form3.dopost.value = 'ran';
+ document.form3.submit();
}
-// 批量删除搜多关键字
+}
+//批量删除搜多关键字
function delall()
+{
+ if(window.confirm("您确实要删除选定的关键字吗"))
{
- if(window.confirm("您确实要删除选定的关键字么?"))
- {
- document.form3.dopost.value = 'delall';
- document.form3.submit();
- }
+ document.form3.dopost.value = 'delall';
+ document.form3.submit();
}
-
+}
\ No newline at end of file
diff --git a/src/admin/js/leftmenu.js b/src/admin/js/leftmenu.js
index cc2c7196..5d6d381e 100644
--- a/src/admin/js/leftmenu.js
+++ b/src/admin/js/leftmenu.js
@@ -1,4 +1,3 @@
-
function showHide(objname)
{
//只对主菜单设置cookie
@@ -12,7 +11,7 @@ function showHide(objname)
obj.style.display = 'block';
return true;
}
- //正常设置cookie
+ //正常设置cookie
var ckstr = getCookie('menuitems');
var ckstrs = null;
var okstr ='';
@@ -75,14 +74,9 @@ function setCookie(c_name,value,expiredays)
var totalitem = 12;
function CheckOpenMenu()
{
- //setCookie('menuitems','');
var ckstr = getCookie('menuitems');
var curitem = '';
var curobj = null;
-
- //cross_obj = document.getElementById("staticbuttons");
- //setInterval("initializeIT()",20);
-
if(ckstr==null)
{
ckstr='1_1,2_1,3_1';
@@ -103,7 +97,6 @@ function CheckOpenMenu()
}
}
}
-
var curitem = 1;
function ShowMainMenu(n)
{
@@ -132,6 +125,4 @@ function ShowMainMenu(n)
}
});
}
- // bindClick();
-}
-
+}
\ No newline at end of file
diff --git a/src/admin/js/list.js b/src/admin/js/list.js
index 5bf75a0f..7270a6f7 100644
--- a/src/admin/js/list.js
+++ b/src/admin/js/list.js
@@ -113,7 +113,6 @@ function getCheckboxItem()
}
return allSel;
}
-
//获得选中其中一个的id
function getOneItem()
{
@@ -129,7 +128,6 @@ function getOneItem()
}
return allSel;
}
-
function selAll()
{
if (typeof document.form2.arcID.length === "undefined") {
diff --git a/src/admin/js/main.js b/src/admin/js/main.js
index 9d664f9c..e69dfb04 100644
--- a/src/admin/js/main.js
+++ b/src/admin/js/main.js
@@ -6,90 +6,65 @@ var nForm = null;
var nFrame = null;
var picnameObj = null;
var vImg = null;
-
function $Nav() {
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE';
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF';
else return "OT";
}
-
function $Obj(objname) {
return document.getElementById(objname);
}
-
-//旧的颜色选择框(已经过期)
-/*
-function ShowColor()
-{
- var fcolor=showModalDialog("../../static/web/img/color.htm?ok",false,"dialogWidth:106px;dialogHeight:110px;status:0;dialogTop:"+(+120)+";dialogLeft:"+(+120));
- if(fcolor!=null && fcolor!="undefined") document.form1.color.value = fcolor;
-}
-*/
-
function ColorSel(c, oname) {
var tobj = $Obj(oname);
if (!tobj) tobj = eval('document.form1.' + oname);
if (!tobj) {
$Obj('colordlg').style.display = 'none';
return false;
- }
- else {
+ } else {
tobj.value = c;
$Obj('colordlg').style.display = 'none';
return true;
}
}
-
function ShowColor(e, o) {
LoadNewDiv(e, '../../static/web/img/colornew.htm', 'colordlg');
}
-
function ShowHide(objname) {
var obj = $Obj(objname);
if (obj.style.display != "none") obj.style.display = "none";
else obj.style.display = "inline-block";
}
-
function ShowHideT(objname) {
var obj = $Obj(objname);
if (obj.style.display != "none") obj.style.display = "none";
else obj.style.display = ($Nav() == "IE" ? "inline-block" : "table");
}
-
function ShowObj(objname) {
var obj = $Obj(objname);
if (obj == null) return false;
obj.style.display = ($Nav() == "IE" ? "inline-block" : "table");
}
-
function ShowObjRow(objname) {
var obj = $Obj(objname);
obj.style.display = ($Nav() == "IE" ? "inline-block" : "table-row");
}
-
function AddTypeid2() {
ShowObjRow('typeid2tr');
- //$Obj('typeid2ct').innerHTML = $Obj('typeidct').innerHTML.replace('typeid','typeid2');
}
-
function HideObj(objname) {
var obj = $Obj(objname);
if (obj == null) return false;
obj.style.display = "none";
}
-
function ShowItem1() {
ShowObj('needset'); ShowObj('head1'); HideObj('head2'); HideObj('adset'); ShowObj('votehead');
}
-
function ShowItem2() {
ShowObj('head2'); ShowObj('adset'); HideObj('voteset'); HideObj('head1'); HideObj('needset'); HideObj('votehead');
}
-
function SeePic(img, f) {
if (f.value != '') img.src = f.value;
}
-
function SeePicNew(f, imgdid, frname, hpos, acname) {
var newobj = null;
if (f.value == '') return;
@@ -104,7 +79,6 @@ function SeePicNew(f, imgdid, frname, hpos, acname) {
nForm.target = frname;
nForm.dopost.value = 'uploadLitpic';
nForm.submit();
-
picnameObj.value = '';
newobj = $Obj('uploadwait');
if (!newobj) {
@@ -126,29 +100,22 @@ function SeePicNew(f, imgdid, frname, hpos, acname) {
nForm.dopost.value = 'save';
nForm.target = '';
nForm.litpic.disabled = true;
- //nForm.litpic = null;
- //if(nForm.attachEvent) nForm.attachEvent("onsubmit", checkSubmit);
- //else nForm.addEventListener("submit", checkSubmit, true);
}
-
function SelectFlash() {
if ($Nav() == 'IE') { var posLeft = window.event.clientX - 300; var posTop = window.event.clientY; }
else { var posLeft = 100; var posTop = 100; }
window.open("./dialog/select_media.php?f=form1.flashurl", "popUpFlashWin", "scrollbars=yes,resizable=yes,statebar=no,width=500,height=350,left=" + posLeft + ", top=" + posTop);
}
-
function SelectMedia(fname) {
if ($Nav() == 'IE') { var posLeft = window.event.clientX - 200; var posTop = window.event.clientY; }
else { var posLeft = 100; var posTop = 100; }
window.open("./dialog/select_media.php?f=" + fname, "popUpFlashWin", "scrollbars=yes,resizable=yes,statebar=no,width=500,height=350,left=" + posLeft + ", top=" + posTop);
}
-
function SelectSoft(fname) {
if ($Nav() == 'IE') { var posLeft = window.event.clientX - 200; var posTop = window.event.clientY - 50; }
else { var posLeft = 100; var posTop = 100; }
window.open("./dialog/select_soft.php?f=" + fname, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left=" + posLeft + ", top=" + posTop);
}
-
function SelectImage(fname, stype, imgsel) {
if ($Nav() == 'IE') { var posLeft = window.event.clientX - 100; var posTop = window.event.clientY; }
else { var posLeft = 100; var posTop = 100; }
@@ -157,7 +124,6 @@ function SelectImage(fname, stype, imgsel) {
if (!stype) stype = '';
window.open("./dialog/select_images.php?f=" + fname + "&noeditor=yes&imgstick=" + stype + imgsel, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=650,height=400,left=" + posLeft + ", top=" + posTop);
}
-
function imageCut(fname) {
if ($Nav() == 'IE') { var posLeft = window.event.clientX - 100; var posTop = window.event.clientY; }
else { var posLeft = 100; var posTop = 100; }
@@ -169,7 +135,6 @@ function imageCut(fname) {
}
window.open("imagecut.php?f=" + fname + "&file=" + file, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + posLeft + ", top=" + posTop);
}
-
function SelectImageN(fname, stype, vname) {
if ($Nav() == 'IE') { var posLeft = window.event.clientX - 100; var posTop = window.event.clientY; }
else { var posLeft = 100; var posTop = 100; }
@@ -177,13 +142,11 @@ function SelectImageN(fname, stype, vname) {
if (!stype) stype = '';
window.open("./dialog/select_images.php?f=" + fname + "&imgstick=" + stype + "&v=" + vname, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left=" + posLeft + ", top=" + posTop);
}
-
function SelectKeywords(f) {
if ($Nav() == 'IE') { var posLeft = window.event.clientX - 350; var posTop = window.event.clientY - 200; }
else { var posLeft = 100; var posTop = 100; }
window.open("article_keywords_select.php?f=" + f, "popUpkwWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=450,left=" + posLeft + ", top=" + posTop);
}
-
function InitPage() {
var selsource = $Obj('selsource');
var selwriter = $Obj('selwriter');
@@ -193,30 +156,25 @@ function InitPage() {
if (selwriter) { selwriter.onmousedown = function (e) { SelectWriter(e); } }
if (titlechange) { titlechange.onchange = function (e) { TestHasTitle(e); } }
}
-
function OpenMyWin(surl) {
window.open(surl, "popUpMyWin", "scrollbars=yes,resizable=yes,statebar=no,width=500,height=350,left=200, top=100");
}
-
function OpenMyWinCoOne(surl) {
window.open(surl, "popUpMyWin2", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=450,left=100,top=50");
}
-
function PutSource(str) {
var osource = $Obj('source');
if (osource) osource.value = str;
$Obj('mysource').style.display = 'none';
ChangeFullDiv('hide');
}
-
function PutWriter(str) {
var owriter = $Obj('writer');
if (owriter) owriter.value = str;
$Obj('mywriter').style.display = 'none';
ChangeFullDiv('hide');
}
-
-// 增加选择投票内容
+//增加选择投票内容
function PutVote(str) {
var ovote = $Obj('voteid');
if (ovote) {
@@ -228,14 +186,12 @@ function PutVote(str) {
}
}
-
function ClearDivCt(objname) {
if (!$Obj(objname)) return;
$Obj(objname).innerHTML = '';
$Obj(objname).style.display = 'none';
ChangeFullDiv("hide");
}
-
function ChangeFullDiv(showhide, screenheigt) {
var newobj = $Obj('fullpagediv');
if (showhide == 'show') {
@@ -246,26 +202,19 @@ function ChangeFullDiv(showhide, screenheigt) {
newobj.className = 'fullpagediv';
newobj.style.height = document.body.clientHeight + 50 + 'px';
document.body.appendChild(newobj);
- }
- else {
+ } else {
newobj.style.display = 'block';
}
- }
- else {
+ } else {
if (newobj) newobj.style.display = 'none';
}
}
-
function SelectSource(e) {
LoadNewDiv(e, 'article_select_sw.php?t=source&k=8&rnd=' + Math.random(), 'mysource');
- //ChangeFullDiv('show');
}
-
function SelectWriter(e) {
LoadNewDiv(e, 'article_select_sw.php?t=writer&k=8&rnd=' + Math.random(), 'mywriter');
- //ChangeFullDiv('show');
}
-
function LoadNewDiv(e, surl, oname) {
var pxStr = '';
if ($Nav() == 'IE') {
@@ -275,9 +224,7 @@ function LoadNewDiv(e, surl, oname) {
var scrollTop = document.documentElement.scrollTop || window.pageYOffset;
if (typeof (scrollTop) == 'undefined') scrollTop = document.body.scrollTop;
posTop += scrollTop;
-
- }
- else {
+ } else {
var posLeft = e.pageX - 20;
var posTop = e.pageY - 30;
pxStr = 'px';
@@ -293,19 +240,16 @@ function LoadNewDiv(e, surl, oname) {
newobj.style.top = posTop + pxStr;
newobj.style.left = posLeft + pxStr;
document.body.appendChild(newobj);
- }
- else {
+ } else {
newobj.style.display = "block";
}
if (newobj.innerHTML.length < 10) {
fetch(surl).then(resp=>resp.text()).then((d)=>{newobj.innerHTML = d});
}
}
-
function TestHasTitle(e) {
LoadNewDiv2(e, 'article_test_title.php?t=' + $Obj('title').value, 'mytitle', "dlgTesttitle");
}
-
function LoadNewDiv2(e, surl, oname, dlgcls) {
var posLeft = 300;
var posTop = 50;
@@ -329,7 +273,6 @@ function LoadNewDiv2(e, surl, oname, dlgcls) {
jQuery(newobj).css('top', '50px').css('left', '300px');
DedeXHTTP = null;
}
-
function ShowUrlTr() {
var jumpTest = $Obj('flagsj');
var jtr = $Obj('redirecturltr');
@@ -340,31 +283,26 @@ function ShowUrlTr() {
jtr.style.display = "none";
}
}
-
function ShowUrlTrEdit() {
ShowUrlTr();
var jumpTest = $Obj('isjump');
var rurl = $Obj('redirecturl');
if (!jumpTest.checked) rurl.value = "";
}
-
function CkRemote() {
document.getElementById('picname').value = '';
}
-
//载入指定宽高的AJAX窗体
function LoadQuickDiv(e, surl, oname, w, h) {
if ($Nav() == 'IE') {
if (window.event) {
var posLeft = window.event.clientX - 20;
var posTop = window.event.clientY - 30;
- }
- else {
+ } else {
var posLeft = e.clientX - 20;
var posTop = e.clientY + 30;
}
- }
- else {
+ } else {
var posLeft = e.pageX - 20;
var posTop = e.pageY - 30;
}
@@ -396,11 +334,9 @@ function LoadQuickDiv(e, surl, oname, w, h) {
});
fixupPos = false;
}
-
function MyGetScrollTop() {
return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
}
-
//通用事件获取接口
function getEvent() {
if ($Nav() == 'IE') return window.event;
@@ -417,7 +353,6 @@ function getEvent() {
}
return null;
}
-
//模拟ondrop事件相关代码
/*----------------------------
leftLeaning = 300;
@@ -429,11 +364,9 @@ newobj.onmousedown = DropStop;
function DropStart() {
this.style.cursor = 'move';
}
-
function DropStop() {
this.style.cursor = 'default';
}
-
function DropMove() {
if (this.style.cursor != 'move') return;
var event = getEvent();
@@ -441,15 +374,13 @@ function DropMove() {
var posLeft = event.clientX - 20;
var posTop = event.clientY - 30;
posTop += document.body.scrollTop;
- }
- else {
+ } else {
var posLeft = event.pageX - 20;
var posTop = event.pageY - 30;
}
this.style.top = posTop;
this.style.left = posLeft - leftLeaning;
}
-
//对指定的元素绑定move事件
/*-----------------------------
onmousemove="DropMoveHand('divname', 225);"
@@ -471,15 +402,13 @@ function DropMoveHand(objid, mleftLeaning) {
var posLeft = event.clientX - 20;
var posTop = event.clientY - 20;
posTop += window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
- }
- else {
+ } else {
var posLeft = event.pageX - 20;
var posTop = event.pageY - 20;
}
obj.style.top = posTop + "px";
obj.style.left = posLeft - mleftLeaning + "px";
}
-
//复制内容到剪切板
function copyToClipboard(txt) {
if (txt == null || txt == '') {
@@ -489,11 +418,9 @@ function copyToClipboard(txt) {
if (window.clipboardData) {
window.clipboardData.clearData();
window.clipboardData.setData("Text", txt);
- }
- else if (navigator.userAgent.indexOf('Opera') != -1) {
+ } else if (navigator.userAgent.indexOf('Opera') != -1) {
window.location = txt;
- }
- else {
+ } else {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
} catch (e) {
@@ -501,10 +428,8 @@ function copyToClipboard(txt) {
}
var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
if (!clip) return;
-
var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
if (!trans) return;
-
trans.addDataFlavor('text/unicode');
var str = new Object();
var len = new Object();
@@ -517,7 +442,6 @@ function copyToClipboard(txt) {
clip.setData(trans, null, clipid.kGlobalClipboard);
}
}
-
function getSelTxt() {
var g, r;
if (document.all) {
@@ -527,14 +451,12 @@ function getSelTxt() {
}
return g;
}
-
//显示栏目Map地图
function ShowCatMap(e, obj, cid, targetId, oldvalue) {
fixupPos = true;
LoadQuickDiv(e, 'archives_do.php?dopost=getCatMap&targetid=' + targetId + '&channelid=' + cid + '&oldvalue=' + oldvalue + '&rnd=' + Math.random(), 'getCatMap', '700px', '500px');
ChangeFullDiv('show');
}
-
function getSelCat(targetId) {
var selBox = document.quicksel.seltypeid;
var targetObj = $Obj(targetId);
@@ -572,53 +494,34 @@ function getSelCat(targetId) {
HideObj("getCatMap");
ChangeFullDiv("hide");
}
-
function getElementLeft(element) {
var actualLeft = element.offsetLeft;
var current = element.offsetParent;
-
while (current !== null) {
actualLeft += current.offsetLeft;
current = current.offsetParent;
}
-
return actualLeft;
}
-
function getElementTop(element) {
var actualTop = element.offsetTop;
var current = element.offsetParent;
-
while (current !== null) {
actualTop += current.offsetTop;
current = current.offsetParent;
}
-
return actualTop;
}
-
-// Copyright 2020 The MuEMS Authors. All rights reserved.
-// license that can be found in the LICENSE file.
-
-// -----msgbox-------------------------------------
-
-// 生成一个随机ID
+//Copyright 2020 The MuEMS Authors. All rights reserved.
+//license that can be found in the LICENSE file.
+//-----msgbox-------------------------------------
+//生成一个随机ID
function guid() {
function S4() {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
}
return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
}
-
-// 显示对话框,动态创建modal并显示,退出自动销毁窗体
-// args是以下结构体
-/*
-args = {
- title : "", // 标题,默认是MuEMS
- footer : "", // 底部按钮,可以自定义按钮
- noClose : false, // 是否显示右上角关闭按钮,默认显示
-}
-*/
// 函数会返回一个modalID,通过这个ID可自已定义一些方法
// 这里用到了一个展开语法
// https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax
@@ -628,7 +531,6 @@ function ShowMsg(content, ...args) {
modalID = guid();
var footer = ``;
var noClose = false;
-
if (args.length == 1) {
// 存在args参数
if (typeof args[0].title !== 'undefined' && args[0].title != "") {
@@ -641,10 +543,8 @@ function ShowMsg(content, ...args) {
noClose = true;
}
}
-
footer = footer.replaceAll("~modalID~", modalID);
content = content.replaceAll("~modalID~", modalID);
-
var modal = `