From ee8b663e831c9a737038952a679e617bc6aaa38d Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 13 Nov 2010 12:52:10 -0500 Subject: [PATCH] mobile tweaks, break out kronolithMobile into it's own js file --- kronolith/js/kronolithmobile.js | 95 +++++++++++++++++++++++++++++ kronolith/lib/Application.php | 7 +++ kronolith/mobile.php | 128 +++++++--------------------------------- kronolith/mobilepage.html | 9 +++ 4 files changed, 132 insertions(+), 107 deletions(-) create mode 100644 kronolith/js/kronolithmobile.js create mode 100644 kronolith/mobilepage.html 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 = $('