backend theater for ie fixed
This commit is contained in:
parent
8c3fb43bf5
commit
1357124f6f
|
@ -11,6 +11,19 @@ var galleryAPI = function(){
|
|||
this.loadArea = null;
|
||||
this.tagList = $("ul#gallery_tag_list");
|
||||
this.initialize = function(callbackFn){
|
||||
if(g.loadArea == "theater"){
|
||||
if(rcom.getInternetExplorerVersion()!=-1){
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
$(document).ready(function(){
|
||||
bindHandlers();
|
||||
})
|
||||
|
@ -437,19 +450,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.find(".bt-back").attr("href","../albums/"+albumid);
|
||||
|
|
|
@ -106,8 +106,8 @@
|
|||
<script type="text/javascript">
|
||||
galleryAPI.prototype.locale = "<%= I18n.locale %>";
|
||||
var gallery = new galleryAPI();
|
||||
gallery.loadArea = "theater";
|
||||
gallery.initialize();
|
||||
gallery.loadArea = "theater";
|
||||
gallery.loadTheater("<%= params[:id] %>");
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue