From: Jan Schneider Date: Mon, 7 Sep 2009 13:24:08 +0000 (+0200) Subject: Exit callback after hiding the spinner, if the response didn't contain a signature. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2d12db87ad912bf624ff508d1297c35517948d43;p=horde.git Exit callback after hiding the spinner, if the response didn't contain a signature. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index b57476648..9cd0b25f4 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -809,7 +809,12 @@ KronolithCore = { calendar = cal.join('|'); this.startLoading(calendar, start, end); this._storeCache($H(), calendar); - this.doAction('ListEvents', { start: start, end: end, cal: calendar, view: view }, this._loadEventsCallback.bind(this)); + this.doAction('ListEvents', + { start: start, + end: end, + cal: calendar, + view: view }, + this._loadEventsCallback.bind(this)); }, this); }, @@ -826,6 +831,10 @@ KronolithCore = { $('kronolithLoading').hide(); } + if (typeof r.response.sig == 'undefined') { + return; + } + var start = this.parseDate(r.response.sig.substr(0, 8)), end = this.parseDate(r.response.sig.substr(8, 8)), dates = [start, end]; @@ -1308,7 +1317,10 @@ KronolithCore = { this.startLoading('tasks:' + taskList, taskType, ''); this._storeTasksCache($H(), taskList); - this.doAction('ListTasks', { 'taskType': taskType, 'list': taskList }, this._loadTasksCallback.bind(this)); + this.doAction('ListTasks', + { 'taskType': taskType, + 'list': taskList }, + this._loadTasksCallback.bind(this)); }, this); },