mediawiki-extensions-Visual.../modules/ve-mw/ui/dialogs
Roan Kattouw f11fbee278 ve.dm.MWReferenceModel: Require parent document
Add a parentDoc parameter to the MWReferenceModel constructor and use
it to inherit language, direction and HTML document. Remove
getLang(), setLang(), getDir() and setDir() whose only purpose
was to propagate the language and direction from the parent document
in a hacky way.

This causes ReferenceModel documents to always have an HTML document
for URL resolution. Previously, this worked when editing existing
references because the newFromReferenceNode() code path calls
cloneFromRange() which propagates the HTML document, but it didn't work
when creating new references.

Bug: T109599
Change-Id: I5d9d34d4343be8428318fa0b795fa54c110e34f4
2015-08-26 23:48:45 -07:00
..
ve.ui.MWBetaWelcomeDialog.js
ve.ui.MWCancelConfirmDialog.js
ve.ui.MWCitationDialog.js ve.dm.MWReferenceModel: Require parent document 2015-08-26 23:48:45 -07:00
ve.ui.MWCommandHelpDialog.js
ve.ui.MWMediaDialog.js Use mw.Title to localise file: prefix on new images 2015-08-25 17:17:49 +01:00
ve.ui.MWMetaDialog.js *Dialog: Flag back/cancel actions 2015-08-06 21:51:32 +00:00
ve.ui.MWMobileSaveDialog.js MWMobileSaveDialog: Use short save messages for space 2015-08-07 17:38:52 +00:00
ve.ui.MWReferenceDialog.js ve.dm.MWReferenceModel: Require parent document 2015-08-26 23:48:45 -07:00
ve.ui.MWReferencesListDialog.js build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass 2015-08-19 10:33:02 -07:00
ve.ui.MWRequiredParamBlankConfirmDialog.js *Dialog: Flag back/cancel actions 2015-08-06 21:51:32 +00:00
ve.ui.MWSaveDialog.js MWSaveDialog: Use .moveCursorToEnd() instead of ve.selectEnd() 2015-08-26 23:51:58 +00:00
ve.ui.MWTemplateDialog.js build: Enable jscs jsDoc rule 'requireNewlineAfterDescription' and make pass 2015-08-19 11:21:01 -07:00
ve.ui.MWTransclusionDialog.js build: Enable jscs jsDoc rule 'checkAnnotations' and make pass 2015-08-19 11:09:34 -07:00
ve.ui.MWWikitextSwitchConfirmDialog.js build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass 2015-08-19 10:33:02 -07:00