some unmerged code i pushd 3 months back not update by chris
This commit is contained in:
parent
789e02e313
commit
3595c59810
|
@ -244,18 +244,17 @@ var galleryAPI = function(){
|
|||
bindHandlers();
|
||||
})
|
||||
}
|
||||
|
||||
if(rcom.getInternetExplorerVersion()!=-1){
|
||||
var url_constructor = window.location.href.split("/");
|
||||
var url = "";
|
||||
for(x=0;x<=url_constructor.length-1;x++){
|
||||
if(x == url_constructor.length-1){
|
||||
url+="#!/"+url_constructor[x];
|
||||
}else{
|
||||
url+=url_constructor[x]+"/";
|
||||
}
|
||||
}
|
||||
|
||||
window.location.href = url;
|
||||
var photo_id = window.location.hash.replace("#","");
|
||||
if(photo_id){
|
||||
var url = window.location.href;
|
||||
var params = url.split("/");
|
||||
// params[params.length-1] = photo_id;
|
||||
url = url.replace(params[params.length-1],photo_id);
|
||||
|
||||
window.location.href = url;
|
||||
}
|
||||
}
|
||||
|
||||
var albumid = $("#main_pic").attr("data-content");
|
||||
|
|
|
@ -13,12 +13,32 @@ var galleryAPI = function(){
|
|||
this.loading = $("#loading");
|
||||
// this.authenticated = false;
|
||||
this.initialize = function(callbackFn){
|
||||
if(g.loadArea == "theater"){
|
||||
if(rcom.getInternetExplorerVersion()!=-1){
|
||||
var photo_id = window.location.hash.replace("#","");
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
//bindHandlers();
|
||||
})
|
||||
var bindHandlers = function(){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.loadAlbums = function(id){
|
||||
|
@ -262,19 +282,19 @@ var galleryAPI = function(){
|
|||
bindHandlers();
|
||||
})
|
||||
}
|
||||
if(rcom.getInternetExplorerVersion()!=-1){
|
||||
var url_constructor = window.location.href.split("/");
|
||||
var url = "";
|
||||
for(x=0;x<=url_constructor.length-1;x++){
|
||||
if(x == url_constructor.length-1){
|
||||
url+="#!/"+url_constructor[x];
|
||||
}else{
|
||||
url+=url_constructor[x]+"/";
|
||||
}
|
||||
}
|
||||
// if(rcom.getInternetExplorerVersion()!=-1){
|
||||
// var url_constructor = window.location.href.split("/");
|
||||
// var url = "";
|
||||
// for(x=0;x<=url_constructor.length-1;x++){
|
||||
// if(x == url_constructor.length-1){
|
||||
// url+="#!/"+url_constructor[x];
|
||||
// }else{
|
||||
// url+=url_constructor[x]+"/";
|
||||
// }
|
||||
// }
|
||||
|
||||
window.location.href = url;
|
||||
}
|
||||
// window.location.href = url;
|
||||
// }
|
||||
|
||||
var albumid = $("#main_pic").attr("data-content");
|
||||
g.albumArea.css("margin-bottom","0");
|
||||
|
|
Loading…
Reference in New Issue