summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/application.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 9c6c7a47d..b247907ad 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -620,6 +620,13 @@ function setupAjaxIndicator() {
});
}
+function setupTabs() {
+ if($('.tabs').length > 0) {
+ displayTabsButtons();
+ $(window).resize(displayTabsButtons);
+ }
+}
+
function hideOnLoad() {
$('.hol').hide();
}
@@ -677,3 +684,4 @@ $(document).ready(setupAjaxIndicator);
$(document).ready(hideOnLoad);
$(document).ready(addFormObserversForDoubleSubmit);
$(document).ready(defaultFocus);
+$(document).ready(setupTabs);