Switch to map tab on IITC_MOBILE
When a bookmark is clicked switch from the info screen to the map tab.
This commit is contained in:
parent
6df39749f5
commit
6fbc3fad7d
@ -11,7 +11,7 @@
|
|||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
}
|
}
|
||||||
#bookmarksBox{
|
#bookmarksBox{
|
||||||
margin-top:-100%;
|
margin-top:-200%;
|
||||||
position:absolute !important;
|
position:absolute !important;
|
||||||
z-index:4001;
|
z-index:4001;
|
||||||
top:100px;
|
top:100px;
|
||||||
|
@ -353,9 +353,9 @@ if(typeof window.plugin !== 'function') window.plugin = function(){};
|
|||||||
|
|
||||||
//SWICTH VISIBILITY PROPERTY OF THE BOX
|
//SWICTH VISIBILITY PROPERTY OF THE BOX
|
||||||
$('#bookmarksMin').click(function(){
|
$('#bookmarksMin').click(function(){
|
||||||
$('#bookmarksBox').animate({marginTop:'-100%'}, {duration:400, queue:false}); $('#bookmarksShow').animate({marginTop:-36}, {duration:400, queue:false}); localStorage[window.plugin.bookmarks['LOCAL_STORAGE_status_box']] = 0;
|
$('#bookmarksBox').animate({marginTop:'-200%'}, {duration:600, queue:false}); $('#bookmarksShow').animate({marginTop:-36}, {duration:400, queue:false}); localStorage[window.plugin.bookmarks['LOCAL_STORAGE_status_box']] = 0;
|
||||||
});
|
});
|
||||||
$('#bookmarksShow').click(function(){ $('#bookmarksBox').animate({marginTop:0}, {duration:400, queue:false}); $('#bookmarksShow').animate({marginTop:-100}, {duration:400, queue:false}); localStorage[window.plugin.bookmarks['LOCAL_STORAGE_status_box']]= 1; });
|
$('#bookmarksShow').click(function(){ $('#bookmarksBox').animate({marginTop:0}, {duration:600, queue:false}); $('#bookmarksShow').animate({marginTop:-100}, {duration:400, queue:false}); localStorage[window.plugin.bookmarks['LOCAL_STORAGE_status_box']]= 1; });
|
||||||
if(localStorage[window.plugin.bookmarks['LOCAL_STORAGE_status_box']] == 1){ $('#bookmarksShow').trigger('click'); }else{ $('#bookmarksMin').trigger('click'); }
|
if(localStorage[window.plugin.bookmarks['LOCAL_STORAGE_status_box']] == 1){ $('#bookmarksShow').trigger('click'); }else{ $('#bookmarksMin').trigger('click'); }
|
||||||
|
|
||||||
//SWITCH LIST (MAPS/PORTALS)
|
//SWITCH LIST (MAPS/PORTALS)
|
||||||
@ -406,12 +406,6 @@ if(typeof window.plugin !== 'function') window.plugin = function(){};
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(window.isSmartphone()){
|
|
||||||
// The clone not working in mobile mode (to be corrected)---------------
|
|
||||||
$(".bookmarkList > ul").sortable("option", "helper", "original");
|
|
||||||
$(".bookmarkList ul li ul").sortable("option", "helper", "original");
|
|
||||||
};
|
|
||||||
|
|
||||||
//ADD BOOKMARK/FOLDER
|
//ADD BOOKMARK/FOLDER
|
||||||
$('#bookmarksBox .addForm a').click(function(e){
|
$('#bookmarksBox .addForm a').click(function(e){
|
||||||
var typeList = $(this).parent().parent('div').attr('id');
|
var typeList = $(this).parent().parent('div').attr('id');
|
||||||
@ -453,16 +447,25 @@ if(typeof window.plugin !== 'function') window.plugin = function(){};
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
if(window.isSmartphone()){
|
if(window.isSmartphone()){
|
||||||
//FOR MOBILE
|
//FOR MOBILE
|
||||||
|
// The clone not working in mobile mode (to be corrected)---------------
|
||||||
|
$(".bookmarkList > ul").sortable("option", "helper", "original");
|
||||||
|
$(".bookmarkList ul li ul").sortable("option", "helper", "original");
|
||||||
|
|
||||||
|
//Show/Hide the box
|
||||||
$('#bookmarksBox').hide();
|
$('#bookmarksBox').hide();
|
||||||
$('#bookmarksShowMobile').click(function(){
|
$('#bookmarksShowMobile').click(function(){
|
||||||
$(this).toggleClass('open');
|
$(this).toggleClass('open');
|
||||||
$('#bookmarksBox').toggle();
|
$('#bookmarksBox').toggle();
|
||||||
if($(this).hasClass('open')){ $(this).text('[-] Bookmarks'); }
|
if($(this).hasClass('open')){ $(this).text('[-] Bookmarks'); }
|
||||||
else{ $(this).text('[+] Bookmarks'); }
|
else{ $(this).text('[+] Bookmarks'); }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//Return to map when a bookmark is clicked
|
||||||
|
$('.bookmarkList').on('click', '.bkmrk .bookmarksLink', function(){
|
||||||
|
window.show("map");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});}
|
});}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user