diff --git a/src/admin/js/album.js b/src/admin/js/album.js
index 0d54b2d5..9e6f6f7f 100644
--- a/src/admin/js/album.js
+++ b/src/admin/js/album.js
@@ -1,6 +1,17 @@
+function checkMuList(psid, cmid) {
+ if ($Obj("pagestyle3").checked) {
+ $Obj("cfgmulist").style.display = "table-row";
+ $Obj("spagelist").style.display = "none";
+ } else if ($Obj("pagestyle1").checked) {
+ $Obj("cfgmulist").style.display = "none";
+ $Obj("spagelist").style.display = "table-row";
+ } else {
+ $Obj("cfgmulist").style.display = "none";
+ $Obj("spagelist").style.display = "none";
+ }
+}
function checkSubmitAlb() {
if ($("#gallery .atlas").length > 0) {
- //这里从gallery中取出图片元素信息
$("#gallery .atlas").each(function() {
albums.push({
"img": $(this).find("img").attr("src"),
@@ -11,55 +22,40 @@ function checkSubmitAlb() {
$("#albums").val(JSON.stringify(albums));
return true;
}
-function checkMuList(psid, cmid) {
- if ($Obj('pagestyle3').checked) {
- $Obj('cfgmulist').style.display = 'table-row';
- $Obj('spagelist').style.display = 'none';
- } else if ($Obj('pagestyle1').checked) {
- $Obj('cfgmulist').style.display = 'none';
- $Obj('spagelist').style.display = 'table-row';
- } else {
- $Obj('cfgmulist').style.display = 'none';
- $Obj('spagelist').style.display = 'none';
- }
-}
-//删除已经上传的图片
function delAlbPic(pid) {
- var tgobj = $Obj('atlasok' + pid);
- fetch('swfupload.php?dopost=del&id=' + pid).then(resp => resp.text()).then((d) => {
+ var tgobj = $Obj("atlasok" + pid);
+ fetch("swfupload.php?dopost=del&id=" + pid).then(resp => resp.text()).then((d) => {
tgobj.innerHTML = d;
- $Obj('gallery').removeChild(tgobj);
+ $Obj("gallery").removeChild(tgobj);
});
}
-//删除已经上传的图片修改时用
function delAlbPicOld(picfile, pid) {
- var tgobj = $Obj('albold' + pid);
- fetch('swfupload.php?dopost=delold&picfile=' + picfile).then(resp => resp.text()).then((d) => {
+ var tgobj = $Obj("albold" + pid);
+ fetch("swfupload.php?dopost=delold&picfile=" + picfile).then(resp => resp.text()).then((d) => {
tgobj.innerHTML = d;
- $Obj('galleryedit').removeChild(tgobj);
+ $Obj("galleryedit").removeChild(tgobj);
});
}
function seePicNewAlb(f, imgdid, frname, hpos, acname) {
var newobj = null;
if (f.value == '') return;
vImg = $Obj(imgdid);
- picnameObj = document.getElementById('picname');
- nFrame = $Nav() == 'IE' ? eval('document.frames.' + frname) : $Obj(frname);
+ picnameObj = document.getElementById("picname");
+ nFrame = $Nav() == $Obj(frname);
nForm = f.form;
- //修改form的action等参数
if (nForm.detachEvent) nForm.detachEvent("onsubmit", checkSubmitAlb);
else nForm.removeEventListener("submit", checkSubmitAlb, false);
- nForm.action = 'archives_do.php';
+ nForm.action = "archives_do.php";
nForm.target = frname;
- nForm.dopost.value = 'uploadLitpic';
+ nForm.dopost.value = "uploadLitpic";
nForm.submit();
picnameObj.value = '';
- newobj = $Obj('uploadwait');
+ newobj = $Obj("uploadwait");
if (!newobj) {
newobj = document.createElement("div");
- newobj.id = 'uploadwait';
- newobj.style.position = 'absolute';
- newobj.className = 'uploadwait';
+ newobj.id = "uploadwait";
+ newobj.style.position = "absolute";
+ newobj.className = "uploadwait";
newobj.style.width = 120;
newobj.style.height = 20;
newobj.style.top = hpos;
@@ -67,10 +63,31 @@ function seePicNewAlb(f, imgdid, frname, hpos, acname) {
document.body.appendChild(newobj);
newobj.innerHTML = '
';
}
- newobj.style.display = 'block';
- //提交后还原form的action等参数
+ newobj.style.display = "block";
nForm.action = acname;
- nForm.dopost.value = 'save';
+ nForm.dopost.value = "save";
nForm.target = '';
nForm.litpic.disabled = true;
+}
+var atlasimg = 0;
+function addImage(src, pid) {
+ var newImgDiv = document.createElement("div");
+ var delstr = '';
+ atlasimg++;
+ if (pid != 0) {
+ atlasimg = 'ok' + pid;
+ delstr = '
删除';
+ } else {
+ atlasimg = 'err' + atlasimg;
+ }
+ newImgDiv.className = 'atlas';
+ newImgDiv.id = 'atlas' + atlasimg;
+ document.getElementById("gallery").appendChild(newImgDiv);
+ newImgDiv.innerHTML = '
' + delstr;
+ if (typeof arctype != 'undefined' && arctype == 'article') {
+ if (pid != 0) {
+ newImgDiv.innerHTML = '

' + delstr;
+ }
+ }
+ newImgDiv.innerHTML += '';
}
\ No newline at end of file
diff --git a/src/admin/js/catalog.js b/src/admin/js/catalog.js
new file mode 100644
index 00000000..e4eead79
--- /dev/null
+++ b/src/admin/js/catalog.js
@@ -0,0 +1,24 @@
+var BROWSER = {};
+var USERAGENT = navigator.userAgent.toLowerCase();
+if (BROWSER.safari) {
+ BROWSER.firefox = true;
+}
+function LoadSuns(ctid, tid) {
+ if ($DE(ctid).innerHTML.length < 10) {
+ $DE('icon' + tid).className = 'fa fa-minus-square';
+ fetch('catalog_do.php?dopost=GetSunLists&cid=' + tid).then(resp => resp.text()).then((d) => {
+ $DE(ctid).innerHTML = d;
+ });
+ } else {
+ showHide(ctid, tid);
+ }
+}
+function showHide(objname, tid) {
+ if ($DE(objname).style.display == "none") {
+ $DE('icon' + tid).className = 'fa fa-minus-square';
+ $DE(objname).style.display = BROWSER.firefox ? "" : "block";
+ } else {
+ $DE('icon' + tid).className = 'fa fa-plus-square';
+ $DE(objname).style.display = "none";
+ }
+}
\ No newline at end of file
diff --git a/src/admin/js/global.js b/src/admin/js/global.js
deleted file mode 100644
index b58e7557..00000000
--- a/src/admin/js/global.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var BROWSER = {};
-var USERAGENT = navigator.userAgent.toLowerCase();
-browserVersion({'firefox':'','chrome':'','opera':'','safari':'','maxthon':'','mozilla':'','webkit':''});
-if (BROWSER.safari) {
- BROWSER.firefox = true;
-}
-BROWSER.opera = BROWSER.opera ? opera.version() : 0;
-function browserVersion(types) {
- var other = 1;
- for (i in types) {
- var v = types[i] ? types[i] : i;
- if (USERAGENT.indexOf(v) != -1) {
- var re = new RegExp(v + '(\\/|\\s)([\\d\\.]+)', 'ig');
- var matches = re.exec(USERAGENT);
- var ver = matches != null ? matches[2] : 0;
- other = ver !== 0 ? 0 : other;
- } else {
- var ver = 0;
- }
- eval('BROWSER.' + i + '= ver');
- }
- BROWSER.other = other;
-}
-function LoadSuns(ctid, tid) {
- if ($DE(ctid).innerHTML.length < 10) {
- $DE('img' + tid).className = 'fa fa-minus-square';
- fetch('catalog_do.php?dopost=GetSunLists&cid=' + tid).then(resp => resp.text()).then((d) => {
- $DE(ctid).innerHTML = d;
- });
- } else {
- showHide(ctid, tid);
- }
-}
-function showHide(objname, tid) {
- if ($DE(objname).style.display == "none") {
- $DE('img' + tid).className = 'fa fa-minus-square';
- $DE(objname).style.display = BROWSER.firefox ? "" : "block";
- } else {
- $DE('img' + tid).className = 'fa fa-plus-square';
- $DE(objname).style.display = "none";
- }
-}
\ No newline at end of file
diff --git a/src/admin/js/handlers.js b/src/admin/js/handlers.js
deleted file mode 100644
index ab6d2463..00000000
--- a/src/admin/js/handlers.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var atlasimg = 0;
-function addImage(src, pid) {
- var newImgDiv = document.createElement("div");
- var delstr = '';
- atlasimg++;
- if (pid != 0) {
- atlasimg = 'ok' + pid;
- delstr = '
删除';
- } else {
- atlasimg = 'err' + atlasimg;
- }
- newImgDiv.className = 'atlas';
- newImgDiv.id = 'atlas' + atlasimg;
- document.getElementById("gallery").appendChild(newImgDiv);
- newImgDiv.innerHTML = '
' + delstr;
- if (typeof arctype != 'undefined' && arctype == 'article') {
- if (pid != 0) {
- newImgDiv.innerHTML = '

' + delstr;
- }
- }
- newImgDiv.innerHTML += '';
-}
\ No newline at end of file
diff --git a/src/admin/js/list.js b/src/admin/js/list.js
index 9c718e1b..c59d6c95 100644
--- a/src/admin/js/list.js
+++ b/src/admin/js/list.js
@@ -1,82 +1,82 @@
function viewArc(aid) {
- if (aid==0) aid = getOneItem();
- window.open("archives_do.php?aid="+aid+"&dopost=viewArchives");
+ if (aid == 0) aid = getOneItem();
+ window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives");
}
function kwArc(aid) {
- var qstr=getCheckboxItem();
- if (aid==0) aid = getOneItem();
- if (qstr=='') {
+ var qstr = getCheckboxItem();
+ if (aid == 0) aid = getOneItem();
+ if (qstr == '') {
ShowMsg('请选择一个或多个文档');
return;
}
- location="archives_do.php?aid="+aid+"&dopost=makekw&qstr="+qstr;
+ location="archives_do.php?aid=" + aid + "&dopost=makekw&qstr=" + qstr;
}
function editArc(aid) {
- if (aid==0) aid = getOneItem();
- location="archives_do.php?aid="+aid+"&dopost=editArchives";
+ if (aid == 0) aid = getOneItem();
+ location="archives_do.php?aid=" + aid + "&dopost=editArchives";
}
function updateArc(aid) {
- var qstr=getCheckboxItem();
- if (aid==0) aid = getOneItem();
- location="archives_do.php?aid="+aid+"&dopost=makeArchives&qstr="+qstr;
+ var qstr = getCheckboxItem();
+ if (aid == 0) aid = getOneItem();
+ location = "archives_do.php?aid=" + aid + "&dopost=makeArchives&qstr=" + qstr;
}
function checkArc(aid) {
- var qstr=getCheckboxItem();
- if (aid==0) aid = getOneItem();
- location="archives_do.php?aid="+aid+"&dopost=checkArchives&qstr="+qstr;
+ var qstr = getCheckboxItem();
+ if (aid == 0) aid = getOneItem();
+ location = "archives_do.php?aid=" + aid + "&dopost=checkArchives&qstr=" + qstr;
}
function moveArc(e, obj, cid){
- var qstr=getCheckboxItem();
- if (qstr=='') {
+ var qstr = getCheckboxItem();
+ if (qstr == '') {
ShowMsg('请选择一个或多个文档');
return;
}
- LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr='+qstr+'&channelid='+cid+'&rnd='+Math.random(), 'moveArchives', 'auto', '180px');
+ LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr=' + qstr + '&channelid=' + cid + '&rnd=' + Math.random(), 'moveArchives', 'auto', '180px');
ChangeFullDiv('show');
}
function adArc(aid) {
- var qstr=getCheckboxItem();
- if (aid==0) aid = getOneItem();
- location="archives_do.php?aid="+aid+"&dopost=commendArchives&qstr="+qstr;
+ var qstr = getCheckboxItem();
+ if (aid == 0) aid = getOneItem();
+ location = "archives_do.php?aid=" + aid + "&dopost=commendArchives&qstr=" + qstr;
}
function cAtts(jname, e, obj) {
- var qstr=getCheckboxItem();
+ var qstr = getCheckboxItem();
var screeheight = document.body.clientHeight + 20;
- if (qstr=='') {
+ if (qstr == '') {
ShowMsg('请选择一个或多个文档');
return;
}
- LoadQuickDiv(e, 'archives_do.php?dopost=attsDlg&qstr='+qstr+'&dojob='+jname+'&rnd='+Math.random(), 'attsDlg', 'auto', '180px');
+ LoadQuickDiv(e, 'archives_do.php?dopost=attsDlg&qstr=' + qstr + '&dojob=' + jname + '&rnd=' + Math.random(), 'attsDlg', 'auto', '180px');
ChangeFullDiv('show', screeheight);
}
function delArc(aid) {
- var qstr=getCheckboxItem();
- if (aid==0) aid = getOneItem();
- location="archives_do.php?qstr="+qstr+"&aid="+aid+"&dopost=delArchives";
+ var qstr = getCheckboxItem();
+ if (aid == 0) aid = getOneItem();
+ location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives";
}
function QuickEdit(aid, e, obj) {
- LoadQuickDiv(e, 'archives_do.php?dopost=quickEdit&aid='+aid+'&rnd='+Math.random(), 'quickEdit', 'auto', '300px');
+ LoadQuickDiv(e, 'archives_do.php?dopost=quickEdit&aid=' + aid + '&rnd=' + Math.random(), 'quickEdit', 'auto', '300px');
ChangeFullDiv('show');
}
//获得选中文件的文件名
function getCheckboxItem() {
- var allSel="";
+ var allSel = "";
if (document.form2.arcID.value) return document.form2.arcID.value;
- for (i=0;i
= 1) return 'FF';
+ if (window.navigator.userAgent.indexOf("Firefox") >= 1) return "FF";
else return "OT";
}
function $Obj(objname) {
@@ -93,18 +99,18 @@ function $Obj(objname) {
}
function ColorSel(c, oname) {
var tobj = $Obj(oname);
- if (!tobj) tobj = eval('document.form1.' + oname);
+ if (!tobj) tobj = eval("document.form1." + oname);
if (!tobj) {
- $Obj('colordlg').style.display = 'none';
+ $Obj("colordlg").style.display = "none";
return false;
} else {
tobj.value = c;
- $Obj('colordlg').style.display = 'none';
+ $Obj("colordlg").style.display = "none";
return true;
}
}
function ShowColor(e, o) {
- LoadNewDiv(e, '../../static/web/img/colornew.htm', 'colordlg');
+ LoadNewDiv(e, "../../static/web/img/colornew.htm", "colordlg");
}
function ShowHide(objname) {
var obj = $Obj(objname);
@@ -121,7 +127,7 @@ function ShowObjRow(objname) {
obj.style.display = "table-row";
}
function AddTypeid2() {
- ShowObjRow('typeid2tr');
+ ShowObjRow("typeid2tr");
}
function HideObj(objname) {
var obj = $Obj(objname);
@@ -132,7 +138,7 @@ function SeePic(img, f) {
if (f.value != '') img.src = f.value;
}
function PutSource(str) {
- var osource = $Obj('source');
+ var osource = $Obj("source");
if (osource) osource.value = str;
$Obj("mysource").style.display = "none";
ChangeFullDiv("hide");
@@ -145,7 +151,7 @@ function PutWriter(str) {
}
function ClearDivCt(objname) {
if (!$Obj(objname)) return;
- $Obj(objname).innerHTML = "";
+ $Obj(objname).innerHTML = '';
$Obj(objname).style.display = "none";
ChangeFullDiv("hide");
}
@@ -167,10 +173,10 @@ function ChangeFullDiv(showhide, screenheigt) {
}
}
function SelectSource(e) {
- LoadNewDiv(e, 'article_select_sw.php?t=source&k=8&rnd=' + Math.random(), 'mysource');
+ LoadNewDiv(e, "article_select_sw.php?t=source&k=8&rnd=" + Math.random(), "mysource");
}
function SelectWriter(e) {
- LoadNewDiv(e, 'article_select_sw.php?t=writer&k=8&rnd=' + Math.random(), 'mywriter');
+ LoadNewDiv(e, "article_select_sw.php?t=writer&k=8&rnd=" + Math.random(), "mywriter");
}
function LoadNewDiv(e, surl, oname) {
var pxStr = '';
@@ -199,26 +205,26 @@ function LoadNewDiv2(e, surl, oname, dlgcls) {
if (!newobj) {
newobj = document.createElement("div");
newobj.id = oname;
- newobj.style.position = 'absolute';
+ newobj.style.position = "absolute";
newobj.className = dlgcls;
newobj.style.top = posTop;
newobj.style.left = posLeft;
- newobj.style.display = 'none';
+ newobj.style.display = "none";
document.body.appendChild(newobj);
}
newobj.innerHTML = '';
fetch(surl).then(resp => resp.text()).then((d) => {
newobj.innerHTML = d;
});
- if (newobj.innerHTML == '') newobj.style.display = 'none';
- else newobj.style.display = 'block';
- jQuery(newobj).css('top', '50px').css('left', '300px');
+ if (newobj.innerHTML == '') newobj.style.display = "none";
+ else newobj.style.display = "block";
+ jQuery(newobj).css("top", "50px").css("left", "300px");
DedeXHTTP = null;
}
function ShowUrlTr() {
- var jumpTest = $Obj('flagsj');
- var jtr = $Obj('redirecturltr');
- var jf = $Obj('redirecturl');
+ var jumpTest = $Obj("flagsj");
+ var jtr = $Obj("redirecturltr");
+ var jf = $Obj("redirecturl");
if (jumpTest.checked) jtr.style.display = "block";
else {
jf.value = '';
@@ -227,8 +233,8 @@ function ShowUrlTr() {
}
function ShowUrlTrEdit() {
ShowUrlTr();
- var jumpTest = $Obj('isjump');
- var rurl = $Obj('redirecturl');
+ var jumpTest = $Obj("isjump");
+ var rurl = $Obj("redirecturl");
if (!jumpTest.checked) rurl.value = "";
}
function LoadQuickDiv(e, surl, oname, w, h) {
@@ -236,15 +242,15 @@ function LoadQuickDiv(e, surl, oname, w, h) {
if (!newobj) {
newobj = document.createElement("div");
newobj.id = oname;
- newobj.style.position = 'fixed';
- newobj.className = 'pubdlg';
+ newobj.style.position = "fixed";
+ newobj.className = "pubdlg";
newobj.style.width = w;
newobj.style.height = h + 30;
document.body.appendChild(newobj);
}
newobj.style.top = "50%";
newobj.style.left = "50%";
- newobj.style.display = 'block';
+ newobj.style.display = "block";
newobj.style.transform = "translate(-50%, -201px)";
newobj.innerHTML = '
';
fetch(surl).then(resp => resp.text()).then((d) => {
@@ -252,8 +258,8 @@ function LoadQuickDiv(e, surl, oname, w, h) {
});
}
function ShowCatMap(e, obj, cid, targetId, oldvalue) {
- LoadQuickDiv(e, 'archives_do.php?dopost=getCatMap&targetid=' + targetId + '&channelid=' + cid + '&oldvalue=' + oldvalue + '&rnd=' + Math.random(), 'getCatMap', '700px', '500px');
- ChangeFullDiv('show');
+ 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;
@@ -276,7 +282,7 @@ function getSelCat(targetId) {
}
}
if (selvalue == '') {
- alert('您没有选中任何栏目');
+ alert("您没有选中任何栏目");
return;
}
if (targetObj) {
@@ -411,22 +417,22 @@ var cropperAspectRatio = {
function setAspectRatio(ar) {
var opts = optCropper;
opts.aspectRatio = cropperAspectRatio[ar];
- $("#cropImg" + mdlCropperID).cropper('destroy').cropper(opts);
+ $("#cropImg" + mdlCropperID).cropper("destroy").cropper(opts);
}
function okImage(modalID) {
uploadImage(litpicImg);
$("#litPic").attr("src", litpicImg);
- CloseModal('GKModal' + modalID);
+ CloseModal("GKModal" + modalID);
}
function useDefault(modalID) {
uploadImage(litpicImgSrc);
$("#litPic").attr("src", litpicImgSrc);
- CloseModal('GKModal' + modalID);
+ CloseModal("GKModal" + modalID);
}
function uploadImage(litpicImgSrc) {
const formData = new FormData()
- formData.append('litpic_b64', litpicImgSrc);
- fetch('archives_do.php?dopost=upload_base64_image', {
+ formData.append("litpic_b64", litpicImgSrc);
+ fetch("archives_do.php?dopost=upload_base64_image", {
method: 'POST',
body: formData
})
@@ -470,28 +476,32 @@ $(document).ready(function() {
var menu = function(el, multiple) {
this.el = el || {};
this.multiple = multiple || false;
- var links = this.el.find('.link');
- links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown)
+ var links = this.el.find(".link");
+ links.on("click", {
+ el: this.el,
+ multiple: this.multiple,
+ },
+ this.dropdown);
}
menu.prototype.dropdown = function(e) {
var $el = e.data.el;
- $this = $(this),
- $next = $this.next();
- $next.slideToggle();
- $this.parent().toggleClass('open');
+ $this = $(this),
+ $next = $this.next();
+ $next.slideToggle();
+ $this.parent().toggleClass("open");
if (!e.data.multiple) {
- $el.find('.submenu').not($next).slideUp().parent().removeClass('open');
- };
- }
+ $el.find(".submenu").not($next).slideUp().parent().removeClass("open");
+ }
+ }
var menu = new menu($('#menu'), false);
$(".submenu li a").click(function(e) {
- $(".submenu li").removeClass('active');
- $(this).parent().addClass('active');
- })
+ $(".submenu li").removeClass("active");
+ $(this).parent().addClass("active");
+ });
});
$("#btnClearAll").click(function(event) {
- litpicImgSrc = "";
- litpicImg = "";
+ litpicImgSrc = '';
+ litpicImg = '';
$("#picname").val(litpicImg);
$("#litPic").attr("src", "/static/web/img/thumbnail.jpg");
})
@@ -518,7 +528,7 @@ $(document).ready(function() {
$("#iptAddImages").val("");
});
if ($.fn.daterangepicker) {
- $('.datepicker').daterangepicker({
+ $(".datepicker").daterangepicker({
"singleDatePicker": true,
"autoApply": true,
"showDropdowns": true,
@@ -545,11 +555,11 @@ $(document).ready(function() {
}, function(start) {
$(this).val(start.format("YYYY-MM-DD HH:mm:ss"));
});
- $('.datepicker').on('show.daterangepicker', function(ev, picker) {
+ $(".datepicker").on("show.daterangepicker", function(ev, picker) {
if (picker.element.offset().top - $(window).scrollTop() + picker.container.outerHeight() > $(window).height()) {
- picker.drops = 'up';
+ picker.drops = "up";
} else {
- picker.drops = 'down';
+ picker.drops = "down";
}
picker.move();
});
diff --git a/src/admin/js/key.js b/src/admin/js/search.js
similarity index 78%
rename from src/admin/js/key.js
rename to src/admin/js/search.js
index 70cf0fff..fe552ea1 100644
--- a/src/admin/js/key.js
+++ b/src/admin/js/search.js
@@ -13,12 +13,12 @@ function noselAll() {
}
}
}
-//批量删除搜多关键字
+//批量删除搜多关键词
function delall() {
- DedeConfirm("您确定要删除选定的关键字吗").then((v)=>{
+ DedeConfirm("您确定要删除选定关键词吗").then((v) => {
document.form3.dopost.value = 'delall';
document.form3.submit();
- }).catch((e)=>{
- console.log(e)
+ }).catch((e) => {
+ console.log(e);
});
}
\ No newline at end of file
diff --git a/src/admin/js/update.js b/src/admin/js/update.js
index f02e84cf..886afca1 100644
--- a/src/admin/js/update.js
+++ b/src/admin/js/update.js
@@ -29,7 +29,7 @@ function update() {
showStepArea(currentStep);
}
}
- })
+ });
}
function hasNewVersion() {
$.get("api.php?action=has_new_version", function(rs) {
@@ -47,9 +47,9 @@ function hasNewVersion() {
showStepArea(0);
}
} catch (error) {
- console.log("获取软件信息失败")
+ console.log("获取软件信息失败");
}
- })
+ });
}
$(document).ready(function() {
hasNewVersion();
@@ -66,16 +66,16 @@ $(document).ready(function() {
alertMsg = dedeAlter(`成功备份差异文件,目录:${rs.data.backupdir}`, 'success');
$("#_msgInfo").html(alertMsg);
}
- })
- })
+ });
+ });
$("#systemUpdate").click(function() {
if (hasNewVer === false) {
currentStep = 5;
showStepArea(currentStep);
- $('#mdlUpdate').modal('show');
+ $("#mdlUpdate").modal("show");
return;
}
- $('#mdlUpdate').modal('show');
+ $("#mdlUpdate").modal("show");
showStepArea(currentStep);
currentStep++;
$.get("api.php?action=get_changed_files", function(rs) {
@@ -92,8 +92,8 @@ $(document).ready(function() {
} else {
showStepArea(0);
}
- })
- })
+ });
+ });
$('#mdlUpdate').on('hidden.bs.modal', function(event) {
currentStep = 1;
$("#_msgInfo").html('');
@@ -117,8 +117,8 @@ $(document).ready(function() {
} else {
showStepArea(0);
}
- })
- })
+ });
+ });
$("#btnGoStep4").click(function() {
currentStep++
$("#_msgInfo").html('');
@@ -128,5 +128,5 @@ $(document).ready(function() {
})
$("#btnOK").click(function() {
hasNewVersion();
- })
-})
\ No newline at end of file
+ });
+});
\ No newline at end of file
diff --git a/src/admin/js/user.js b/src/admin/js/user.js
index 84830ef2..2306e6de 100644
--- a/src/admin/js/user.js
+++ b/src/admin/js/user.js
@@ -39,7 +39,7 @@ function selAll() {
}
for (i=0;i
+
-
-