Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function agendaChangeDate(append) {
- for (property in agendaDateList[agendaDateListLoc]) {
- if (agendaDateListLoc != agendaDateList.length - 1 && append == 1) {
- $("#prevNavDate").html(agendaDateList[agendaDateListLoc][property]);
- } else if (agendaDateListLoc != 0 && append == -1) {
- $("#nextNavDate").html(agendaDateList[agendaDateListLoc][property]);
- }
- }
- agendaDateListLoc += append;
- for (property in agendaDateList[agendaDateListLoc + append]) {
- if (append == -1) {
- $("#prevNavDate").html(
- agendaDateList[agendaDateListLoc + append][property]
- );
- } else {
- $("#nextNavDate").html(
- agendaDateList[agendaDateListLoc + append][property]
- );
- }
- }
- if (agendaDateListLoc < 0) agendaDateListLoc = 0;
- if (agendaDateListLoc == 0) $("#agendaDayBackBtn").hide();
- else $("#agendaDayBackBtn").show();
- if (agendaDateListLoc == agendaDateList.length - 1)
- $("#agendaDayNextBtn").hide();
- else $("#agendaDayNextBtn").show();
- for (property in agendaDateList[agendaDateListLoc]) {
- currentAgendaDay = property;
- }
- $('a[id^="dateButton"]').removeClass("active");
- $("#dateButton" + currentAgendaDay)
- .removeClass("btn-default")
- .addClass("active");
- var currentDateButtonId = $("#dateButton" + currentAgendaDay)
- .prop("id")
- .split("dateButton")[1];
- $(".fRow").hide();
- $("tr[class*=" + currentDateButtonId + "]").fadeIn();
- console.log("mde it here");
- $("html, body", window.parent.document).animate({ scrollTop: 100 }, "slow");
- }
Add Comment
Please, Sign In to add comment