From fb10bf4048aaf5b2a9665fc9dff217c790efe005 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 8 May 2014 19:00:42 +0200 Subject: Files app navigation can now switch - added new OCA.Files namespace for files classes - the sidebar can now switch between views/containers - the trashbin renders in its own container but currently doesn't work due to overrides - added app.js as entry point for JS code (ideally all other files should only contain classes and not trigger anything) --- apps/files/js/app.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 apps/files/js/app.js (limited to 'apps/files/js/app.js') diff --git a/apps/files/js/app.js b/apps/files/js/app.js new file mode 100644 index 00000000000..87f7e2bb6ba --- /dev/null +++ b/apps/files/js/app.js @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2014 + * + * @author Vincent Petry + * @copyright 2014 Vincent Petry + * + * This file is licensed under the Affero General Public License version 3 + * or later. + * + * See the COPYING-README file. + * + */ + +if (!OCA.Files) { + OCA.Files = {}; +} + +$(document).ready(function() { + var nav = new OCA.Files.Navigation($('#app-navigation ul')); + + nav.setSelectedItem('files'); + + // TODO: init file list, actions and others +}); + -- cgit v1.2.3