Kipcool has submitted this change and it was merged.

Change subject: updateTabs function called only if there are tabs.
......................................................................


updateTabs function called only if there are tabs.

Change-Id: Idf62f2db6f0b1767f7a87289669a0834a42c6fe6
---
M OmegaWiki/resources/omegawiki-ajax.js
1 file changed, 4 insertions(+), 5 deletions(-)

Approvals:
  Kipcool: Verified; Looks good to me, approved



diff --git a/OmegaWiki/resources/omegawiki-ajax.js 
b/OmegaWiki/resources/omegawiki-ajax.js
index 2cfa391..c879d0b 100644
--- a/OmegaWiki/resources/omegawiki-ajax.js
+++ b/OmegaWiki/resources/omegawiki-ajax.js
@@ -13,6 +13,10 @@
        // add and manage arrows to navigate the tabs
        if ( $(".wd-tablist").length ) {
                initializeTabs();
+
+               $(window).resize(function() {
+                       updateTabs();
+               });
        }
 
        // sticky explang
@@ -46,11 +50,6 @@
                $(this).children("span").toggle();
                $(this).next(".popupToggleable").toggle(100);
        });
-       
-       $(window).resize(function() {
-               updateTabs();
-       });
-
        
        /*
         * sortTablesOnLanguages sorts the wiki tables according to the 
language column

-- 
To view, visit https://gerrit.wikimedia.org/r/52256
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idf62f2db6f0b1767f7a87289669a0834a42c6fe6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiLexicalData
Gerrit-Branch: master
Gerrit-Owner: Kipcool <[email protected]>
Gerrit-Reviewer: Kipcool <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to