更新 common_extra.js

This commit is contained in:
Brownsugar 2017-03-20 00:38:58 +08:00
parent 91d2d8320f
commit 15c74d328d
1 changed files with 2 additions and 1 deletions

View File

@ -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);});