return;
}
+ this.addHistory(fullloc);
+ this.view = loc;
this.updateView(date, loc);
var dates = this.viewDates(date, loc);
this.loadEvents(dates[0], dates[1], loc);
if (!$w('all complete incomplete future').include(tasktype)) {
return;
}
+
+ this.addHistory(fullloc);
+ this.view = loc;
this.tasktype = tasktype;
$w('All Complete Incomplete Future').each(function(tasktype) {
$('kronolithTasks' + tasktype).up().removeClassName('activeTab');
default:
if ($('kronolithView' + locCap)) {
+ this.addHistory(fullloc);
+ this.view = loc;
this.viewLoading = true;
$('kronolithView' + locCap).appear({
duration: this.effectDur,
break;
}
- this.addHistory(fullloc);
- this.view = loc;
break;
case 'search':
return;
}
+ this.addHistory(fullloc);
this.search = time;
$w('All Past Future').each(function(time) {
$('kronolithSearch' + time).up().removeClassName('activeTab');
});
$('kronolithSearch' + this.search.capitalize()).up().addClassName('activeTab');
this.closeView('agenda');
+ this.view = 'agenda';
this.updateView(null, 'search', term);
$H(Kronolith.conf.calendars).each(function(type) {
$H(type.value).each(function(calendar) {
}.bind(this) });
$('kronolithLoadingagenda').insert($('kronolithLoading').remove());
this.updateMinical(this.date);
- this.addHistory(fullloc);
- this.view = 'agenda';
break;
case 'event':
// Load view first if necessary.
- if (!this.view) {
+ if (!this.view ) {
this.go(Kronolith.conf.login_view);
this.go.bind(this, fullloc, data).defer();
return;
}
+ this.addHistory(fullloc, false);
switch (locParts.length) {
case 0:
// New event.
this.editEvent(calendar, event, date);
break;
}
- this.addHistory(fullloc);
break;
case 'task':
switch (locParts.length) {
case 0:
+ this.addHistory(fullloc, false);
this.editTask();
break;
case 2:
+ this.addHistory(fullloc, false);
this.editTask(locParts[0], locParts[1]);
break;
}
- this.addHistory(fullloc);
break;
case 'calendar':
this.go.bind(this, fullloc, data).defer();
return;
}
+ this.addHistory(fullloc, false);
this.editCalendar(locParts.join(':'));
- this.addHistory(fullloc);
break;
case 'options':
if (data) {
url += (url.include('?') ? '&' : '?') + $H(data).toQueryString();
}
+ this.addHistory(loc);
this.inOptions = true;
this.closeView('iframe');
this.iframeContent(url);
this.setTitle(Kronolith.text.prefs);
this.updateMinical(this.date);
- this.addHistory(loc);
break;
case 'app':
return event.value.sort;
},
- addHistory: function(loc)
+ addHistory: function(loc, save)
{
location.hash = encodeURIComponent(loc);
this.lastLocation = this.currentLocation;
- this.currentLocation = loc;
+ if (Object.isUndefined(save) || save) {
+ this.currentLocation = loc;
+ }
},
/**