Rimosso bottone indietro dalle pagine principali info/events
This commit is contained in:
parent
feb6162f57
commit
d83901f74b
2 changed files with 64 additions and 67 deletions
|
@ -75,7 +75,7 @@
|
|||
|
||||
<ul>
|
||||
<!--li><a href="#">< 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 ></a></li-->
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -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,8 +141,6 @@ function setFirstRun() {
|
|||
document.addEventListener("deviceready", onDeviceReady, false);
|
||||
//le cose all'inizio
|
||||
|
||||
|
||||
|
||||
$(document).on("mobileinit", function () {
|
||||
|
||||
$("body").pagecontainer({
|
||||
|
@ -156,12 +153,13 @@ document.addEventListener("deviceready", onDeviceReady, false);
|
|||
$("input").button();
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(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
|
||||
|
||||
|
@ -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;
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue