Rimosso bottone indietro dalle pagine principali info/events

This commit is contained in:
gine 2017-03-19 12:38:23 +01:00
parent feb6162f57
commit d83901f74b
2 changed files with 64 additions and 67 deletions

View file

@ -75,7 +75,7 @@
<ul>
<!--li><a href="#">&#60; precedente</a></li-->
<li><a data-rel="back" href="#" data-ajax="false"><h3>BACK</h3></a></li>
<li><a data-rel="back" href="#" data-ajax="false"><h3>INDIETRO</h3></a></li>
<!--li><a href="#">successiva &#62;</a></li-->
</ul>
</div>

View file

@ -65,15 +65,14 @@ function alterContent(url) {
break;
case '#info':
$("#navheader").removeClass("hide");
$("#navfooter").removeClass("hide");
$("#navfooter").addClass("hide");
myJsonCategory(8, "#mostralistainfo");
break;
case '#events':
$("#navheader").removeClass("hide");
$("#navfooter").removeClass("hide");
$("#navfooter").addClass("hide");
//$("#navfooter").removeClass("hide");
EVENTS.render();
// ai1ec.remote.getAllEvents(ai1ec.cats.single);
// ai1ec.remote.getLastEvents(ai1ec.cats.single);
break;
case '#aggiorna':
$("#navheader").removeClass("hide");
@ -142,9 +141,7 @@ function setFirstRun() {
document.addEventListener("deviceready", onDeviceReady, false);
//le cose all'inizio
$(document).on("mobileinit", function () {
$(document).on("mobileinit", function () {
$("body").pagecontainer({
defaults: true
@ -154,14 +151,15 @@ document.addEventListener("deviceready", onDeviceReady, false);
defaults: true
});
$("input").button();
});
});
$(document).on("pagecontainerchange", function () {    
$(document).on("pagecontainerchange", function () {    
var current = $(".ui-page-active").prop("id");     // Remove active class from nav buttons
    
if(current == 'info' || current == 'events'){
$("#navfooter").addClass("hide");
}
console.log("current" + current);
$("[data-role='navbar'] a.ui-btn-active").removeClass("ui-btn-active");     // Add active class to current nav button
    
@ -172,9 +170,9 @@ document.addEventListener("deviceready", onDeviceReady, false);
}    
});
});
});
$(document).on("pagecreate", function () {
$(document).on("pagecreate", function () {
$("body > [data-role='panel']").panel();
$("body > [data-role='panel'] [data-role='listview']").listview();
$("body > [data-role='header']").toolbar();
@ -182,15 +180,15 @@ document.addEventListener("deviceready", onDeviceReady, false);
$("body > [data-role='navbar']").navbar();
$("#navfooter").navbar();
postInList();
});
});
/*per inizio navigazione*/
var Site = function () {
/*per inizio navigazione*/
var Site = function () {
this.homepage = "#index"; // the default page that is loaded
this.init();
};
};
Site.prototype.init = function () {
Site.prototype.init = function () {
var self = this;
@ -203,13 +201,13 @@ document.addEventListener("deviceready", onDeviceReady, false);
window.location.hash = self.homepage;
});
};
// On document ready
$(function () {
};
// On document ready
$(function () {
// intercettaUrl();
// new Site();
// $(".minibox").click(function () {});
});
});
function onDeviceReady() {
// console.log('deviceready');
@ -227,8 +225,6 @@ function onDeviceReady() {
alterContent("#info");
};
function overlayblock() {
$(".overlaynero").toggleClass("hide");
}
@ -286,6 +282,7 @@ function postInList() {
$(":mobile-pagecontainer").pagecontainer("load", '#singleQpost' + idOra, {
showLoadMsg: false
});
$("#navfooter").removeClass("hide");
location.hash = '#singleQpost?id=' + idOra;
});
};