aboutsummaryrefslogtreecommitdiffstats
path: root/resources/src/mediawiki.widgets/mw.widgets.CategoryMultiselectWidget.js
Commit message (Collapse)AuthorAgeFilesLines
* build: Fix and re-enable eslint rule unicorn/prefer-includesJames D. Forrester2025-03-211-6/+6
| | | | Change-Id: I34bb289e941751ae4722c708511326a2a5431bfc
* Use spread operator and variadic params in more places in JSBartosz Dziewoński2024-09-171-3/+3
| | | | Change-Id: I537f5948e9d8e4b0f420705df806307f5535d681
* build: Update eslint-config-wikimedia to 0.28.1 and autofixEd Sanders2024-06-111-2/+2
| | | | | | | Also remove temporary explicit dependency on eslint-plugin-vue introduced in Ibd616750f046a. Change-Id: Ic6330fcb116e99d5827b4877e094e3073e2b7b72
* mediawiki.widgets: Remove unnecessary context variablesEd Sanders2024-06-041-1/+1
| | | | Change-Id: Id34649641263f0f29f7c594ec71bd4657fa4f1c4
* ESLint: Prefer arrow callbacks (autofix) in mediawiki.widgetsEd Sanders2024-06-041-46/+24
| | | | Change-Id: Ic07010e5219b04b3b2b156468272d8df5dce233b
* CategoryMultiselectWidget: Use variadic argumentsEd Sanders2024-06-031-7/+3
| | | | Change-Id: Ifb1d0cb9b5ca1cfc53f08bea4ba952cc71035ccd
* Allow placeholder config to be overwritten in ↵Cormac Parle2024-05-211-2/+2
| | | | | | mw.widgets.CategoryMultiselectWidget Change-Id: I32c4298e3d58e4b2d34541912a98c7d32fef77ed
* mediawiki.widgets: Switch to use let/const, not varsJames D. Forrester2024-05-031-22/+24
| | | | | | Also a few undoing of vars-on-top as the mood took me. Change-Id: Idb16240afb9ccd9bd2923dd5eecc885d7fbddcfd
* docs: Standardize use of class descriptions in JSDocapaskulin2024-04-251-1/+2
| | | | | | | | Uses class descriptions for classes and descriptions for constructors. Bug: T357164 Change-Id: Ic4eb3f2b6d40138ce1e9d9292eb7d1d7b10aa8b0
* docs: Fix JSDoc linksapaskulin2024-04-161-1/+1
| | | | | | | | | - Fixes links to work with JSDoc syntax - Removes links to the already-selected symbol - Removes links with no apparent target Bug: T360241 Change-Id: Iff860ae4a1f4a49d3b807a6dd1f59c64d2073e02
* docs: Migrate @mixins tags to JSDocapaskulin2024-03-051-1/+1
| | | | | Bug: T357811 Change-Id: I2f7d9d79ffcb7aafbec4d9fbb0e4e2fe78d515bb
* docs: Migrate @cfg tags to JSDocapaskulin2024-03-021-3/+3
| | | | | Bug: T357169 Change-Id: I2675cd98fc397fa0cd2c3e1f222d22527c3d99c0
* docs: Convert examples to JSDocapaskulin2024-02-231-10/+11
| | | | | | | | - Remove unnecessary indentation - Add @example tags where missing Bug: T352233 Change-Id: Idc2d538f34851c17c713146cd5eb210ad720b25a
* mediawiki.widgets: Move var declarations inlineEd Sanders2023-11-171-11/+8
| | | | Change-Id: I9d94afe3d5f65f0f4f70484cce482d1afacb9ddd
* Fix remaining uses of 'parent'->'super'Ed Sanders2023-11-021-3/+3
| | | | | Bug: T120821 Change-Id: Ia26c1242c69cba169d3ef600fa435b7280e1fc8a
* mw.widgets.CategoryMultiselectWidget: Fix exception on invalid inputBartosz Dziewoński2021-03-131-0/+11
| | | | | Bug: T262466 Change-Id: Ia17d4631bac516c795be173e467cfa61b1c6c254
* Use document.body instead of 'body' as jQuery selectorFomafix2019-12-131-1/+1
| | | | Change-Id: Ie8aa67bdbd34afe0930cc6b9adfd755791607031
* resources: Strip '$' and 'mw' from file closuresTimo Tijhof2018-09-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follows-up Id6d13bbea6: - '$': mw.loader.implement does this already. - 'mw': Use the canonical name directly. This replaces the following patterns: File closures (common): - `( function ( $, mw ) {` => `( function () {` - `( function ( $ ) {` => `( function () {` - `( function ( mw ) {` => `( function () {` - `( function ( mw, $ ) {` => `( function () {` File closures (rare): - `( function ( mw, $, OO ) {` => `( function () {` - `( function ( mw, OO, $ ) {` => `( function () {` - `( function ( mw, document ) {` => `( function () {` Combined dom-ready and file closure (rare): - `jQuery( function ( $ ) {` => `$( function () { - `jQuery( function () {` => `$( function () { Remaining references in files without a closure, as found by the new ESLint setting (rare): - `jQuery` => `$` - `mediaWiki` => `mw` Change-Id: I7cf2426cde597259e8c6f3f6f615a1a81a0ca82b
* Hygiene: Discourage use of $.eachjdlrobson2018-09-051-2/+2
| | | | | | | | | | | Even though Array.prototype.forEach only works on arrays, and $.each is more generic, I think it makes sense to begin discouraging the usage of $.each now. This can be overriden by ignore lines or by Array.prototype.forEach compatible lines. This doesn't seem too much of an ask of engineers and helps future migrations Bug: T200877 Change-Id: I339cff311a830699c8e32f07cec338a39870c53f
* mw.widgets.CategoryMultiselectWidget use TagMultiselectWidgetPrateek Saxena2018-06-271-12/+10
| | | | | | | | | …also rename mw.widgets.CategoryCapsuleItemWidget to mw.widgets.CategoryTagItemWidget. Bug: T183299 Depends-on: Ia0732faff2d98f1ca07da5fbe1f2abc27f71a617 Change-Id: I2146d8ce6505dae55750b4b12bd806b83796c1c5
* [BREAKING CHANGE] Remove mw.widgets.CategorySelectorPrateek Saxena2018-04-091-3/+0
| | | | | | | Follows-up on I7c9e0089ba6b77f4bc73e14b989630487f6f3174. Bug: T161285 Change-Id: I1fb150914cefddd12b5ecb8f2d69f6828781cb20
* Remove superfluous spaces and semicolons in commentsFomafix2018-02-051-1/+1
| | | | Change-Id: Ib4b452f1843ec250c8c1fcc2a738d80726b6135d
* Merge "Widgets: Allow titles with name of Object.prototypes"jenkins-bot2018-01-221-2/+3
|\
| * Widgets: Allow titles with name of Object.prototypesFomafix2018-01-151-2/+3
| | | | | | | | | | Bug: T184776 Change-Id: I1ba75e779e9c4f0ce5957d752a02da27044b9d07
* | Use ES5 String.prototype.trim() instead of jQuery.trim()Fomafix2018-01-211-1/+1
|/ | | | | | | | | Replace: * $.trim( str ) by str.trim() Ensure that str is a string before calling str.trim(). Change-Id: I48f08fdac1e7d802813563c4691e9bbaf2c78336
* Use findItemFromData instead getItemFromDataPrateek Saxena2018-01-101-2/+2
| | | | | | Change-Id: I3cea1dacc1452b05e7e7423e47dcb2ffdf70c1ce Depends-on: Ia2110f71d1642f61451cb8acc7e8a930d0feb31f Bug: T76630
* Replace deprecated jQuery.isArray by Array.isArrayFomafix2017-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | jQuery.isArray gets deprecated in jQuery 3.2.0. [1] Array.isArray is supported since the following browser versions: [2] * Chrome 5 * Firefox (Gecko) 4.0 (2.0) * Internet Explorer 9 * Opera 10.5 * Safari 5 Performed using: find resources/src tests -type f -name \*.js -exec sed -i -e 's/\$\.isArray/Array.isArray/g' {} \; [1] https://blog.jquery.com/2017/03/16/jquery-3-2-0-is-out/ [2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Browser_compatibility Bug: T160953 Change-Id: I1f5fe19d247ec420810e1c4a6db779425b69de23
* Rename CategorySelector to CategoryMultiselectWidgetPrateek Saxena2017-03-281-0/+416
For consistency. Bug: T161285 Change-Id: I7c9e0089ba6b77f4bc73e14b989630487f6f3174