From: Michael J. Rubinsky Date: Sat, 13 Nov 2010 17:52:10 +0000 (-0500) Subject: mobile tweaks, break out kronolithMobile into it's own js file X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ee8b663e831c9a737038952a679e617bc6aaa38d;p=horde.git mobile tweaks, break out kronolithMobile into it's own js file --- diff --git a/kronolith/js/kronolithmobile.js b/kronolith/js/kronolithmobile.js new file mode 100644 index 000000000..9ee16fc0f --- /dev/null +++ b/kronolith/js/kronolithmobile.js @@ -0,0 +1,95 @@ +/** + * 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 = { + + doAction: function(action, params, callback) + { + $.post(Kronolith.conf.URI_AJAX + action, params, callback, 'json'); + }, + + listEventsCallback: function(data) + { + data = data.response; + $("#daycontent ul").detach(); + $("#todayheader").html(KronolithMobile.currentDate.toString(Kronolith.conf.date_format)); + var list = $('