Kipcool has uploaded a new change for review.
https://gerrit.wikimedia.org/r/52256
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(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiLexicalData
refs/changes/56/52256/1
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: newchange
Gerrit-Change-Id: Idf62f2db6f0b1767f7a87289669a0834a42c6fe6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiLexicalData
Gerrit-Branch: master
Gerrit-Owner: Kipcool <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits