Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarkascha <github@christian-reiner.info>2013-12-29 15:49:40 +0400
committerarkascha <github@christian-reiner.info>2013-12-29 15:49:40 +0400
commit9c004a3da3fd43bad884dfe0db616e14270e63da (patch)
treec5e6870ab6dc67bf7ddbbb0012f55fa29dcaecd2 /fluxx_compensator
parentbae899cc2d59681e5727a1cd6ac557baa97230dd (diff)
fluxx-compensator: Make mode detection more robust against sloppy naming of app index positions.
Diffstat (limited to 'fluxx_compensator')
-rw-r--r--fluxx_compensator/js/fluxx.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/fluxx_compensator/js/fluxx.js b/fluxx_compensator/js/fluxx.js
index 2d2d75b1b..8d2eea3e0 100644
--- a/fluxx_compensator/js/fluxx.js
+++ b/fluxx_compensator/js/fluxx.js
@@ -292,13 +292,21 @@ OC.FluXX={
// mark mode and active app as class of the html tag
// this acts like a 'switch' command inside the dynamically loaded css
var mode={
+ bookmarks: 'bookmarks',
bookmarks_index: 'bookmarks',
+ files: 'files',
files_index: 'files',
+ notes: 'notes',
notes_index: 'notes',
+ media: 'media',
media_index: 'media',
+ calendar: 'calendar',
calendar_index: 'calendar',
+ contacts: 'contacts',
contacts_index: 'contacts',
+ gallery: 'gallery',
gallery_index: 'gallery',
+ shorty: 'shorty',
shorty_index: 'shorty'
};
var index=$('body nav #navigation #apps').find('li .active').parents('li').attr('data-id');