BUG 10595 Can't change skins in 2.0.46 SOLVED
- redirect incorrect with top.location to change skin. - change top -> parent.
This commit is contained in:
@@ -90,7 +90,7 @@
|
||||
|
||||
#images-view .x-view-selected {
|
||||
border : 1px solid #99bbe8;
|
||||
background : #eff5fb url(/images/selected.gif) no-repeat right bottom;
|
||||
background : #eff5fb url(/images/select-icon.png) no-repeat right bottom;
|
||||
opacity : 0.5;
|
||||
padding : 5px;
|
||||
}
|
||||
|
||||
@@ -801,7 +801,7 @@ function changeSkin(newSkin,currentSkin){
|
||||
success: function(r, o){
|
||||
var response = Ext.util.JSON.decode(r.responseText);
|
||||
if (response.success) {
|
||||
currentLocation = top.location.href;
|
||||
currentLocation = parent.parent.location.href;
|
||||
createCookie ('workspaceSkin', newSkin, '1');
|
||||
if (currentSkin.substring(0,2) != 'ux') {
|
||||
if (newSkin.substring(0,2) == 'ux') {
|
||||
@@ -820,9 +820,8 @@ function changeSkin(newSkin,currentSkin){
|
||||
if (point == -1) {
|
||||
newLocation = newLocation +"?s=SKINS";
|
||||
}
|
||||
top.location.href = newLocation;
|
||||
}
|
||||
else {
|
||||
parent.parent.location = newLocation;
|
||||
} else {
|
||||
viewport.getEl().unmask();
|
||||
PMExt.error(_('ID_SKINS'), response.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user