Merge pull request !73 from Brownsugar/js_fix

This commit is contained in:
Brownsugar 2017-03-27 17:16:33 +08:00 committed by Discuz!
commit c7059e4fb6
1 changed files with 2 additions and 1 deletions

View File

@ -1245,7 +1245,8 @@ function _createPalette(colorid, id, func) {
$('append_parent').appendChild(dom); $('append_parent').appendChild(dom);
} }
func = !func ? '' : '|' + func; 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}); showMenu({'ctrlid':'c'+colorid});
var iframeid = "c"+colorid+"_menu"; var iframeid = "c"+colorid+"_menu";
_attachEvent(window, 'scroll', function(){hideMenu(iframeid);}); _attachEvent(window, 'scroll', function(){hideMenu(iframeid);});