summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/schedules.js (renamed from www/js/todo.js)14
1 files changed, 7 insertions, 7 deletions
diff --git a/www/js/todo.js b/www/js/schedules.js
index f576d91..d4aa8a2 100644
--- a/www/js/todo.js
+++ b/www/js/schedules.js
@@ -49,7 +49,7 @@ rh.ShowList.prototype.fetch = function() {
self.$this.trigger('pre-update');
$.getJSON( "/rh-bin/schedules.json?DAYS=1&START=" + format_date_iso(this.current), function(data) {
if(data.status == "OK") {
- history.replaceState(null, null, '/todo/' + format_date_iso(self.current));
+ history.replaceState(null, null, '/schedules/' + format_date_iso(self.current));
self.last_succeeded = self.current;
self.shows = [];
$(data.shows).each(function(index, showdata) {
@@ -182,7 +182,7 @@ rh.ShowView.prototype.render = function() {
/***************** controller *****************/
-function todo_init() {
+function schedules_init() {
var url = parseLocationHref();
var d = new Date();
if(url.path.length > 1) {
@@ -191,19 +191,19 @@ function todo_init() {
d = tmp;
}
}
- history.pushState(null, null, '/todo/' + format_date_iso(d));
+ history.pushState(null, null, '/schedules/' + format_date_iso(d));
shows = new rh.ShowList(d);
showListView = new rh.ShowListView(shows);
- $('#btn-earlier').click(todo_prev);
- $('#btn-later').click(todo_next);
+ $('#btn-earlier').click(schedules_prev);
+ $('#btn-later').click(schedules_next);
}
-function todo_prev() {
+function schedules_prev() {
shows.prev();
}
-function todo_next() {
+function schedules_next() {
shows.next();
}