summaryrefslogtreecommitdiffstats
path: root/apps/files/js/detailtabview.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-09-28 12:30:12 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-28 12:30:12 +0200
commit5e4a52d3c259e77065dbb5f0766b0d08f2e1babb (patch)
tree56bc8507631b84c8796f4961d04b278f528f3bad /apps/files/js/detailtabview.js
parent9a010cc8ce281650038cd1444f63a02245eea523 (diff)
downloadnextcloud-server-5e4a52d3c259e77065dbb5f0766b0d08f2e1babb.tar.gz
nextcloud-server-5e4a52d3c259e77065dbb5f0766b0d08f2e1babb.zip
Fix tabs order in files sidebar
Diffstat (limited to 'apps/files/js/detailtabview.js')
-rw-r--r--apps/files/js/detailtabview.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/detailtabview.js b/apps/files/js/detailtabview.js
index 449047cf252..d885e47b15e 100644
--- a/apps/files/js/detailtabview.js
+++ b/apps/files/js/detailtabview.js
@@ -29,11 +29,15 @@
_template: null,
- initialize: function() {
+ initialize: function(options) {
+ options = options || {};
if (!this.id) {
this.id = 'detailTabView' + DetailTabView._TAB_COUNT;
DetailTabView._TAB_COUNT++;
}
+ if (options.order) {
+ this.order = options.order || 0;
+ }
},
/**