From f19cc7f3f415a32b416b7f9971af70622dbed381 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 26 Dec 2010 00:40:42 -0500 Subject: [PATCH] Build initial gallery list --- ansel/js/mobile.js | 73 ++++++++++++++++++++++++++++++ ansel/lib/Ajax/Application.php | 24 ++++++++++ ansel/lib/Application.php | 8 +++- ansel/templates/mobile/galleries.html.php | 19 +------- ansel/templates/mobile/javascript_defs.php | 2 +- 5 files changed, 105 insertions(+), 21 deletions(-) create mode 100644 ansel/js/mobile.js create mode 100644 ansel/lib/Ajax/Application.php diff --git a/ansel/js/mobile.js b/ansel/js/mobile.js new file mode 100644 index 000000000..c0f246791 --- /dev/null +++ b/ansel/js/mobile.js @@ -0,0 +1,73 @@ +/** + * mobile.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 + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Ansel + */ +var AnselMobile = { + + /** + * Build a gallery list + */ + buildGalleryList: function(galleries) + { + var list = $(' -
- +
\ No newline at end of file diff --git a/ansel/templates/mobile/javascript_defs.php b/ansel/templates/mobile/javascript_defs.php index 00d9b8287..bc254b5b2 100644 --- a/ansel/templates/mobile/javascript_defs.php +++ b/ansel/templates/mobile/javascript_defs.php @@ -1,7 +1,7 @@ get('webroot'); +$ansel_webroot = $registry->get('webroot'); $horde_webroot = $registry->get('webroot', 'horde'); $has_tasks = $registry->hasInterface('tasks'); -- 2.11.0