fixed frontend

This commit is contained in:
Harry Bomrah 2013-07-23 18:32:24 +08:00
parent 26a8be2f0f
commit 2c24e788b0
1 changed files with 11 additions and 9 deletions

View File

@ -15,17 +15,19 @@ var galleryAPI = function(){
if(g.loadArea == "theater"){
if(rcom.getInternetExplorerVersion()!=-1){
var photo_id = window.location.hash.replace("#","");
var params = rcom.getUrlVars();
var url = window.location.href.split("?")[0];
params["id"] = photo_id;
for(i=0;i<params.length;i++){
if(i == 0)
url+="?"+params[i]+"="+params[params[i]];
else
url+="&"+params[i]+"="+params[params[i]];
if(photo_id){
var params = rcom.getUrlVars();
var url = window.location.href.split("?")[0];
params["id"] = photo_id;
for(i=0;i<params.length;i++){
if(i == 0)
url+="?"+params[i]+"="+params[params[i]];
else
url+="&"+params[i]+"="+params[params[i]];
}
}
window.location.href = url;
}
}
}
}