From: Jan Schneider Date: Tue, 16 Nov 2010 15:03:42 +0000 (+0100) Subject: Remove name redundency. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b28396bed70cbb866dd485ddacf1722cfef0f6d8;p=horde.git Remove name redundency. --- diff --git a/kronolith/js/kronolithmobile.js b/kronolith/js/kronolithmobile.js deleted file mode 100644 index 3d02747ab..000000000 --- a/kronolith/js/kronolithmobile.js +++ /dev/null @@ -1,402 +0,0 @@ -/** - * kronolithmobile.js - Base mobile application logic. - * - * Copyright 2010 The Horde Project (http://www.horde.org/) - * - * See the enclosed file COPYING for license information (GPL). If you - * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. - * - * @author Michael J. Rubinsky - */ - KronolithMobile = { - - calendars: [], - loadedCalendars: [], - events: [], - - /** - * Perform an Ajax action - * - * @param string action The AJAX request - * @param object params The parameter hash - * @param function callback The callback function - */ - doAction: function(action, params, callback) - { - $.post(Kronolith.conf.URI_AJAX + action, params, callback, 'json'); - }, - - loadEvents: function(start, end) - { - KronolithMobile.loadedCalendars = []; - KronolithMobile.events = []; - for (cal in KronolithMobile.calendars) { - cal = KronolithMobile.calendars[cal]; - KronolithMobile.doAction('listEvents', - { - 'start': start.toString('yyyyMMdd'), - 'end': end.toString("yyyyMMdd"), - 'cal': cal[0] + '|' + cal[1] - }, - KronolithMobile.listEventsCallback - ); - } - }, - - sortEvents: function(events) - { - return events.sort(function(a, b) { - sortA = a.e.s; - sortB = b.e.s; - return (sortA < sortB) ? -1 : (sortA > sortB) ? 1 : 0; - }); - }, - - /** - * Callback for the listEvents AJAX request. - */ - listEventsCallback: function(data) - { - var list; - - data = data.response; - KronolithMobile.loadedCalendars.push(data.cal); - if (data.events) { - $.each(data.events, function(datestring, events) { - $.each(events, function(index, event) { - KronolithMobile.events.push({ 'e': event, 'id': index, 'cal': data.cal }); - }); - }); - } - if (KronolithMobile.loadedCalendars.length == KronolithMobile.calendars.length) { - var events = KronolithMobile.sortEvents(KronolithMobile.events); - list = $('