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;
|
||||
}
|
||||
#bookmarksBox{
|
||||
margin-top:-100%;
|
||||
margin-top:-200%;
|
||||
position:absolute !important;
|
||||
z-index:4001;
|
||||
top:100px;
|
||||
|
@ -353,9 +353,9 @@ if(typeof window.plugin !== 'function') window.plugin = function(){};
|
||||
|
||||
//SWICTH VISIBILITY PROPERTY OF THE BOX
|
||||
$('#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'); }
|
||||
|
||||
//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
|
||||
$('#bookmarksBox .addForm a').click(function(e){
|
||||
var typeList = $(this).parent().parent('div').attr('id');
|
||||
@ -453,9 +447,13 @@ if(typeof window.plugin !== 'function') window.plugin = function(){};
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
|
||||
if(window.isSmartphone()){
|
||||
//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();
|
||||
$('#bookmarksShowMobile').click(function(){
|
||||
$(this).toggleClass('open');
|
||||
@ -463,6 +461,11 @@ if(typeof window.plugin !== 'function') window.plugin = function(){};
|
||||
if($(this).hasClass('open')){ $(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