Merge pull request !73 from Brownsugar/js_fix
This commit is contained in:
commit
c7059e4fb6
|
@ -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);});
|
||||||
|
|
Loading…
Reference in New Issue