Add the query value as a redlink in the result list,
as is already done if the query value is *not* a prefix
of some other (existing) title.
Bug: T291056
Change-Id: I1569ad5a57cd98fe7deb034512b46e948a3561e1
Fix the last drifts between the two. Custom CSS IDs/names/classes in
FileDeleteForm were replaced with the base one, as I think it's better
to be consistent, and it wouldn't be trivial to allow changing those
values in a clean way. Question for reviewers: should this part be
announced on tech news in case somebody is using those values in a
script?
Move the file delete intro above the form, like we do for normal
deletion.
For normal deletion, use the content of the wpReason field as default
value for that field, not the result of merging the dropdown and the
"other" field, which doesn't seem correct (the file version was already
doing this).
Make the file deletion form use the title as token salt like the base
form -- it shouldn't make any difference AFAICS.
After this patch, it should be possible to make DeleteAction extend
FormAction with low effort.
Bug: T288282
Change-Id: I8b115ecb1c94af63d686a575b18362ac32105ae2
I was under the impression that live preview could only be used on
wikitext pages, but this isn't the case. So pass the proper content
model to the API.
Bug: T293022
Change-Id: Icff5b8b25a4b0df3feda2093d5b9c92e6dd9be3a
After the mediawiki.rcfilters.filters.(dm|ui) modules were merged,
mw.rcfilters.js was just `require`ing the old init script to run some
extra setup, no need for separate files.
Bug: T256836
Change-Id: I6462151152d075af0ef8bce3a5edf0a0ba48761a
The new module retains the name .ui name so that existing
skin style overrides continue to work. We can consider renaming it
to just "mediawiki.rcfilters.filters" in a future patch.
This does not handle file reorganization, since both of the
modules used package files - instead, in the main script we also
require() the old main script for the .dm module so that its
setup code runs. But, we did need to rename the virtual
config file from the .dm module to not clash with the
virtual config file from the .ui module, since the
latter uses a callback instead of retrieving configuration
variables directly. These can be merged later as well.
Bug: T256836
Change-Id: I5ec0af8b8e6bcdba6b7881f946f777b854a33739
Follow-up: Ieab0606068a78e5b5e5b9b3337f3a75a0b64adbc
This is concatenating an object and a number, so the index is always
"[object Object]0.5"
Ops :)
Bug: T292600
Change-Id: Icf9df9a3e1fbbb08f1868131cf3fb740ee3a3e08
Inject `wgForeignUploadTargets` and `wgEnableUploads` via a
virtual file instead of always adding them to mw.config.
Added a comment about them in the release notes since wgEnableUploads
was used by an (undeployed) extension, but we can make the
breaking change because their inclusion was marked as
@internal.
Bug: T292017
Change-Id: Ib1635b1864963c6c03c4a80e15048a898b8eaf90
Previously, .thumb wouldn't be a direct descendant of .gallerybox
because of the explicit div for padding. We don't want this rule to
apply to the legacy media dom so use that knowledge as a differentiator.
Follow up to Iff2bdc3aa02f84f0bf4ca55d177706823934cc08
Change-Id: I5ad9bf1913ece4a167fd642b536143695e34d00f
In case of left clicks, update the locked side correctly if the click is
inside the diff table. Only unset the side if the diff is not inside the
table.
Also, when changing side, clear any selection. This avoids some weird
behaviour when switching side (due to the existing selection on the
other side). Doing this conditionally is necessary to avoid T288421.
Also create helpers for getting/setting the current locked side, and
getting the side a Node belongs to.
Bug: T292207
Change-Id: I0e953d5336253a8b1c216d3cfbd0298d53d97842
Only pass contentmodel-slot when fromslots is passed. This can
only be done when we also pass fromtext, not when using fromtitle.
Instead, Use the "slots" parameter to restrict the diff to the main
slot.
Also perform a pre-save transform on the new text. This was already
the case before I635d3a9d59c25804fb71e7b31659f3e4cbc6ab5f, where I
inadvertently didn't replace the rvdifftotextpst param.
Bug: T109166
Bug: T292362
Change-Id: Ia1cdfa9d618b43bb12eb979112a620cbe9ceeab5
Apply diff-contentalign-left or diff-contentalign-right to handle
content diff similar to regular diff.
Easter egg: Switching the dir in editbox (some browsers allow to switch using Ctrl+Shift or Ctrl+Shift+X)
will apply also on the diff view.
Change-Id: I0a05708333b75880d43d7164c114cf5581e13832
Task: T266738
ResourceLoader calls inLanguage(), which clears the interface flag
(T291601), so we need re-enable it.
Bug: T291949
Change-Id: Ifa45007d936b8265d341b20ea5bc6eb017b4e7bb
The new functions `lcFirst` and `ucFirst` lowercases/uppercases the
first character of a JavaScript string with support of UTF-16
surrogates for characters out of the Unicode BMP.
Use these new functions at jqueryMsg.
Change-Id: I007b63bfbcc9e4bc7e89f48df9687111bc4db715
The task T268250 is about further refining the Parsoid output but we
should at least match core's output with Parsoid's current while we
decide on that.
Bug: T268250
Change-Id: Iff2bdc3aa02f84f0bf4ca55d177706823934cc08
Switch live preview to use ApiComparePages, thus making it possible to
view changes for a page being created.
Additionally, ApiComparePages has a different behaviour for section
diffs, which is the same as EditPage: the content of the
(to|from)text-{slot} parameters is inserted as the given section for the
provided (to|from)title parameter.
Also trim the new text, for consistency with EditPage diffs.
Based on Ic87efe9f0140ef06c6be728839beb1f06930d3cc by TheDJ.
Bug: T109166
Change-Id: I635d3a9d59c25804fb71e7b31659f3e4cbc6ab5f
The mediawiki.widgets.StashedFileWidget module was only used as
a dependency of mediawiki.Upload.BookletLayout and thus doesn't
need to exist as its own module.
Bug: T291443
Change-Id: I8cd85516f80cd32f017b7e34c8c26a24d2a0fee5