mediawiki-extensions-Visual.../modules/ve-mw/ui/dialogs
Bartosz Dziewoński 44e47a6e8f Insert a new references list immediately, rather than showing a dialog
If a references list node is selected, open the dialog to edit it.
Otherwise just insert the references list for the default group, since
this is what the user wants to do in 99% of cases.

* Replaced the simple 'referencesList' command (which opened the dialog)
  with a custom implementation in ve.ui.MWReferencesListCommand, which
  inserts the references list or opens the dialog like before.
* Removed the ability to insert a references list from
  ve.ui.MWReferencesListDialog, since it should now never open without
  a references list selected. If it does, throw an error.

I considered the behavior of always showing the dialog if there is at
least one references list already in the document, but I think it would
be confusing if the tool behaved differently depending on the state of
the document (rather than merely current selection).

Bug: T71727
Change-Id: Ifbbfa28548de9c0435c5174fb7762079f59bac54
2015-03-17 15:20:22 -07:00
..
ve.ui.MWBetaWelcomeDialog.js build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08:00
ve.ui.MWCancelConfirmDialog.js build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08:00
ve.ui.MWCitationDialog.js build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08:00
ve.ui.MWCommandHelpDialog.js build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08:00
ve.ui.MWMediaDialog.js Add a threshold to 'read more' calculation in media dialog info 2015-03-04 11:04:53 -08:00
ve.ui.MWMetaDialog.js Remove unused $popupOverlay 2015-02-24 18:19:07 +00:00
ve.ui.MWReferenceDialog.js Use css class instead of jquery show/hide 2015-02-06 11:03:59 -08:00
ve.ui.MWReferencesListDialog.js Insert a new references list immediately, rather than showing a dialog 2015-03-17 15:20:22 -07:00
ve.ui.MWRequiredParamBlankConfirmDialog.js build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08:00
ve.ui.MWSaveDialog.js Remove use of ve.indexOf and ve.getObjectKeys 2015-03-10 17:28:00 +01:00
ve.ui.MWTemplateDialog.js Check whether template is altered before allowing apply 2015-02-25 02:12:28 +00:00
ve.ui.MWTransclusionDialog.js Remove use of ve.indexOf and ve.getObjectKeys 2015-03-10 17:28:00 +01:00
ve.ui.MWWikitextSwitchConfirmDialog.js build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08:00