aboutsummaryrefslogtreecommitdiffstats
path: root/resources/src/mediawiki.Upload.Dialog.js
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary local context variablesEd Sanders2024-11-081-3/+1
| | | | Change-Id: I52fdc5e5bc64bbe7ea895b9d7106dd3c99b0a908
* Use arrow callbacks in OOUI dialogsEd Sanders2024-11-031-5/+3
| | | | Change-Id: I51e2eb6002d433155ec738d1fd79314c19393ffb
* eslint: Autofix var to let/constEd Sanders2024-09-121-1/+1
| | | | | | | Temporarily disable no-var & prefer-const as resulting errors need to be fixed manually. Change-Id: I6cb62a2c70a4c1fc265a00b1f18af127ac9d5029
* ESLint: Enforce prefer-arrow-callback and autofixEd Sanders2024-06-111-1/+1
| | | | Change-Id: Iddfa574e42e569ac5e2a2b098ad2f11ca80c5955
* 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
* docs: Standardize use of class descriptions in JSDocapaskulin2024-04-251-4/+3
| | | | | | | | | * Uses class descriptions for classes and descriptions for constructors. * Switch out deprecated "done" function for Promise compatible "then" Bug: T357164 Change-Id: I6071851a2519638d67954bba5d74260d99237863
* docs: Fix JSDoc syntaxapaskulin2024-03-261-11/+12
| | | | | | | | Various fixes for typos, punctuation, examples, and links Bug: T360241 Bug: T360475 Change-Id: Ib1061b1cd008b947071dde9900d87fd9e0c9d32c
* Add missing summaries to upload classesJon Robson2024-02-281-0/+2
| | | | | | Follow up to I110c51616e9994338d2de1a53523f4dc291765cd Change-Id: I77b8d0950b139a01d5c1a72dc23ec034aa1ad148
* docs: Convert mw.Upload.Dialog and friends to jsdocRoan Kattouw2024-02-281-12/+15
| | | | | | | | | This converts mw.Upload.Dialog, mw.Upload.BookletLayout, mw.ForeignStructuredUpload.Bookletlayout, and mw.widgets.StashedFileWidget. Bug: T352308 Change-Id: I110c51616e9994338d2de1a53523f4dc291765cd
* Fix remaining uses of 'parent'->'super'Ed Sanders2023-11-021-5/+5
| | | | | Bug: T120821 Change-Id: Ia26c1242c69cba169d3ef600fa435b7280e1fc8a
* docs: Add missing @property types and some other missing docsEd Sanders2020-06-131-3/+3
| | | | Change-Id: I000b0741bb729b29562d2f23388b520d414ba16b
* 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
* resources: Move more various single-file mediawiki.* modules to src/Timo Tijhof2018-05-091-0/+230
* Reduce clutter in src/mediawiki/. * Make these files and modules easier to discover and associate. Follows-up I677edac3b5e, which only moved simple cases where no related modules existed. This commit also moves files for modules that have some related multi-file modules. As well as files that previously did not strictly have their path match directly to their module name. For example: - 'mediawiki.checkboxtoggle.css' to 'mediawiki.checkboxtoggle.styles.css', because its module name is 'mediawiki.checkboxtoggle.styles'. - 'mediawiki/page/gallery-slideshow.js' to 'mediawiki.page.gallery.slideshow.js', because its module name uses a dot, not a dash. - 'mediawiki/page/watch.js' to 'mediawiki.page.watch.ajax.js', because its module name also includes 'ajax'. This also makes it matches the way "mediawiki.page.patrol.ajax" files were already named. Ideas for later: - Consider merging 'mediawiki.ForeignApi' and 'mediawiki.ForeignApi.core.'. - Consider merging 'mediawiki.page.ready' and 'mediawiki.page.startup'. Bug: T193826 Change-Id: I9564b05df305b7d217c9a03b80ce92476279e5c8