aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/app.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-05-08 19:00:42 +0200
committerVincent Petry <pvince81@owncloud.com>2014-05-15 17:51:04 +0200
commitfb10bf4048aaf5b2a9665fc9dff217c790efe005 (patch)
tree9d65596c49ecb78d828c8b2fc661f46424c2965d /apps/files/js/app.js
parent88ebb15f1d91b82022e02903ab73338065e223b9 (diff)
downloadnextcloud-server-fb10bf4048aaf5b2a9665fc9dff217c790efe005.tar.gz
nextcloud-server-fb10bf4048aaf5b2a9665fc9dff217c790efe005.zip
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)
Diffstat (limited to 'apps/files/js/app.js')
-rw-r--r--apps/files/js/app.js25
1 files changed, 25 insertions, 0 deletions
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 <pvince81@owncloud.com>
+ *
+ * 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
+});
+