Custom Vector theme/skin for GolemWiki, our instance of MediaWiki
Go to file
Timo Tijhof 1f26153a5d collapsibleTabs: Clean up and simplify code
* Rename 'rtl' to 'isRTL' and use DOM to compute its value.
* Document code with JSDuck similar to other extensions.
* Remove unused 'prevElement' property. Not used in Vector
  nor anywhere else in Wikimedia Git.
* Make 'boundEvent' property private. Not used anywhere in
  Wikimedia Git outside this file.

* Simplify 'instances' tracking.
  The jQuery object stored in this property wasn't used beyond
  calling each(). Convert to a plain array.
  Preserve and re-use the jQuery object first created
  by collapsibleTabs().

* Simplify calculateTabDistance() by using getElementById() and
  getBoundingClientRect(). Its support includes IE 5.
  The "new" version (since Firefox 3.5 and IE 9) also includes
  'height' and 'width' properties and is supported in all
  browsers supported by the MediaWiki 1.28 startup feature test.

  This helps avoid code in offset() and width(), which is fairly
  expensive in jQuery 1.x.

* moveToCollapsed()
  - Remove redundant jQuery object creation (only caller passes a
    jQuery object already).
  - Remove redundant re-receiving of expContainerSettings inside
    the animate() callback. Already in the main scope.
    Relates to a bunch of patches that work around a problem
    caused by use of remove() instead of detach() in an earlier
    version of the code. Which was only a problem because the
    other settings object was also not used from the main scope.
    (See pre-Gerrit commits 1f93310e and e7900807.)

Change-Id: I48d542580d767df2d17ce4c6668e9e233a0f7902
2016-11-29 02:25:00 +00:00
components search.less: Use only one background-image for overlaid buttons 2016-09-18 16:09:13 +02:00
i18n Localisation updates from https://translatewiki.net. 2016-11-28 22:06:06 +01:00
images Compress PNGs with zopflipng 2016-02-20 20:35:56 +00:00
skinStyles Remove mediawiki.sectionAnchor 2016-02-23 18:49:01 +11:00
.gitignore collapsibleTabs: Clean up and simplify code 2016-11-29 02:25:00 +00:00
.gitreview Use track=1 instead of defaultbranch=master in .gitreview 2016-10-24 17:30:32 -07:00
.jscsrc test: Make code pass jscs 1.5.0 with Wikimedia code style preset 2015-02-14 12:45:20 -08:00
.jshintignore build: Configure jshint, jsonlint, banan-checker & jscs 2015-06-25 23:35:53 +00:00
.jshintrc build: Configure jshint, jsonlint, banan-checker & jscs 2015-06-25 23:35:53 +00:00
COPYING Use the plain-text GPL and fix 'license-name' to match SPDX conventions 2015-01-29 17:04:29 +01:00
Gruntfile.js Update jscs to 2.1.0 2015-10-22 00:38:01 +01:00
SkinVector.php Use mediawiki-codesniffer 0.6.0 2016-03-07 14:24:27 +01:00
Vector.php Run phplint and phpcs through "composer test" entry point 2015-06-09 16:37:14 +03:00
VectorTemplate.php Fix order of univ lang selector and "not logged in" message 2016-05-18 20:43:36 +00:00
collapsibleTabs.js collapsibleTabs: Clean up and simplify code 2016-11-29 02:25:00 +00:00
composer.json Update git.wikimedia.org refrences and replace them with diffusion 2016-06-30 20:22:29 +01:00
hooks.txt Move hooks.txt docs from mediawiki/core 2014-08-09 17:09:24 +02:00
jsduck.json collapsibleTabs: Clean up and simplify code 2016-11-29 02:25:00 +00:00
package.json collapsibleTabs: Clean up and simplify code 2016-11-29 02:25:00 +00:00
phpcs.xml Make it easer to debug php code sniffer, Update mediawiki/mediawiki-codesniffer to 0.4.0 2015-09-29 21:33:17 +00:00
responsive.less Make tabs, actions and search usable in Responsive Vector 2015-11-22 16:40:55 +01:00
screen-hd.less Use .mw-body instead of div#content 2014-08-13 03:52:51 -07:00
screen.less Remove CSS transition on window resize 2015-01-15 14:30:02 -08:00
skin.json oojs-ui.styles is now oojs-ui-core.styles 2016-02-29 10:59:59 -06:00
variables.less Allow an alternate, generic header font to be specified for certain languages 2016-07-06 12:30:04 +02:00
vector.js vector.js: Replace deprecated jQuery bind() with on() 2016-11-21 18:10:43 -08:00