From 15c74d328de5eb31a8b484a158ca60758957079e Mon Sep 17 00:00:00 2001 From: Brownsugar Date: Mon, 20 Mar 2017 00:38:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20common=5Fextra.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/static/js/common_extra.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upload/static/js/common_extra.js b/upload/static/js/common_extra.js index f177bad..cb566e5 100644 --- a/upload/static/js/common_extra.js +++ b/upload/static/js/common_extra.js @@ -1245,7 +1245,8 @@ function _createPalette(colorid, id, func) { $('append_parent').appendChild(dom); } func = !func ? '' : '|' + func; - window.frames["c"+colorid+"_frame"].location.href = SITEURL+STATICURL+"image/admincp/getcolor.htm?c"+colorid+"|"+id+func; + var url = /(?:https?:)?\/\//.test(STATICURL) ? STATICURL : SITEURL+STATICURL; + window.frames["c"+colorid+"_frame"].location.href = url+"image/admincp/getcolor.htm?c"+colorid+"|"+id+func; showMenu({'ctrlid':'c'+colorid}); var iframeid = "c"+colorid+"_menu"; _attachEvent(window, 'scroll', function(){hideMenu(iframeid);});