~ubuntu-branches/ubuntu/oneiric/lightning-extension/oneiric-security

« back to all changes in this revision

Viewing changes to calendar/base/content/calendar-views.js

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-04-20 13:46:11 UTC
  • mfrom: (1.2.1)
  • mto: (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: package-import@ubuntu.com-20120420134611-i0dkosnbmihrd0lr
Tags: upstream-1.4+build1
ImportĀ upstreamĀ versionĀ 1.4+build1

Show diffs side-by-side

added added

removed removed

Lines of Context:
839
839
        viewTabs.selectedIndex = getViewDeck().selectedIndex;
840
840
    }
841
841
};
 
842
 
 
843
/*
 
844
 * Timer for the time indicator in day and week view.
 
845
 */
 
846
var timeIndicator = {
 
847
    timer: null,
 
848
    start: function(aInterval, aThis) {
 
849
        timeIndicator.timer = setInterval(function() {aThis.updateTimeIndicatorPosition(false);},
 
850
                                          aInterval * 1000);
 
851
    },
 
852
    cancel: function() {
 
853
        if (timeIndicator.timer) {
 
854
            clearTimeout(timeIndicator.timer);
 
855
            timeIndicator.timer = null;
 
856
        }
 
857
    },
 
858
    lastView: null
 
859
}