summaryrefslogtreecommitdiffstats
path: root/apps/files/js/detailsview.js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-10-04 10:52:33 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-10-04 17:56:23 +0200
commit53aad9901dba5ee1d5040a1f902c18177f82c377 (patch)
treee55c6712f69b0a5bd4d36deda207ae7a0ccfdaa8 /apps/files/js/detailsview.js
parent5aa0ad92a4c4c9ca458c0275f7869e67a211ed68 (diff)
downloadnextcloud-server-53aad9901dba5ee1d5040a1f902c18177f82c377.tar.gz
nextcloud-server-53aad9901dba5ee1d5040a1f902c18177f82c377.zip
Make possible for tab views to add CSS classes to their container
In general the style of the tabs container should not change depending on which tab is the currently selected one. However, this could be needed in some very specific cases, so now the tab views can specify the extra CSS classes to be used in their container when they are selected. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/js/detailsview.js')
-rw-r--r--apps/files/js/detailsview.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/js/detailsview.js b/apps/files/js/detailsview.js
index aed1736693a..3b7a922c7c9 100644
--- a/apps/files/js/detailsview.js
+++ b/apps/files/js/detailsview.js
@@ -194,6 +194,9 @@
// hide other tabs
$tabsContainer.find('.tab').addClass('hidden');
+ $tabsContainer.attr('class', 'tabsContainer');
+ $tabsContainer.addClass(tabView.getTabsContainerExtraClasses());
+
// tab already rendered ?
if (!$tabEl.length) {
// render tab