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>
|
<ul>
|
||||||
<!--li><a href="#">< precedente</a></li-->
|
<!--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-->
|
<!--li><a href="#">successiva ></a></li-->
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -65,15 +65,14 @@ function alterContent(url) {
|
||||||
break;
|
break;
|
||||||
case '#info':
|
case '#info':
|
||||||
$("#navheader").removeClass("hide");
|
$("#navheader").removeClass("hide");
|
||||||
$("#navfooter").removeClass("hide");
|
$("#navfooter").addClass("hide");
|
||||||
myJsonCategory(8, "#mostralistainfo");
|
myJsonCategory(8, "#mostralistainfo");
|
||||||
break;
|
break;
|
||||||
case '#events':
|
case '#events':
|
||||||
$("#navheader").removeClass("hide");
|
$("#navheader").removeClass("hide");
|
||||||
$("#navfooter").removeClass("hide");
|
$("#navfooter").addClass("hide");
|
||||||
|
//$("#navfooter").removeClass("hide");
|
||||||
EVENTS.render();
|
EVENTS.render();
|
||||||
// ai1ec.remote.getAllEvents(ai1ec.cats.single);
|
|
||||||
// ai1ec.remote.getLastEvents(ai1ec.cats.single);
|
|
||||||
break;
|
break;
|
||||||
case '#aggiorna':
|
case '#aggiorna':
|
||||||
$("#navheader").removeClass("hide");
|
$("#navheader").removeClass("hide");
|
||||||
|
@ -142,8 +141,6 @@ function setFirstRun() {
|
||||||
document.addEventListener("deviceready", onDeviceReady, false);
|
document.addEventListener("deviceready", onDeviceReady, false);
|
||||||
//le cose all'inizio
|
//le cose all'inizio
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(document).on("mobileinit", function () {
|
$(document).on("mobileinit", function () {
|
||||||
|
|
||||||
$("body").pagecontainer({
|
$("body").pagecontainer({
|
||||||
|
@ -156,12 +153,13 @@ document.addEventListener("deviceready", onDeviceReady, false);
|
||||||
$("input").button();
|
$("input").button();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(document).on("pagecontainerchange", function () {
|
$(document).on("pagecontainerchange", function () {
|
||||||
|
|
||||||
var current = $(".ui-page-active").prop("id"); // Remove active class from nav buttons
|
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);
|
console.log("current" + current);
|
||||||
$("[data-role='navbar'] a.ui-btn-active").removeClass("ui-btn-active"); // Add active class to current nav button
|
$("[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");
|
alterContent("#info");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function overlayblock() {
|
function overlayblock() {
|
||||||
$(".overlaynero").toggleClass("hide");
|
$(".overlaynero").toggleClass("hide");
|
||||||
}
|
}
|
||||||
|
@ -286,6 +282,7 @@ function postInList() {
|
||||||
$(":mobile-pagecontainer").pagecontainer("load", '#singleQpost' + idOra, {
|
$(":mobile-pagecontainer").pagecontainer("load", '#singleQpost' + idOra, {
|
||||||
showLoadMsg: false
|
showLoadMsg: false
|
||||||
});
|
});
|
||||||
|
$("#navfooter").removeClass("hide");
|
||||||
location.hash = '#singleQpost?id=' + idOra;
|
location.hash = '#singleQpost?id=' + idOra;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue