mediawiki-extensions-Visual.../modules/ve-mw/ui/dialogs
Trevor Parscal d487b44dd0 Auto-select first auto-added required param and fix param order
Symptoms:
* When adding a template with required parameters, the last parameter
  is initially focused
* Parameters and parts appear out of order, and adding/remove/moving
  them shows them in almost random placement

Diagnoses:
* Parameters are auto-focused when added, and parameters are auto-added
  in forward order
* TransclusionModel's process method had a bug in which the code to
  derive an offset from the item being removed would not be reachable
  due to an inverted logic statement

Prognosis:
* Fatal, with a 10% chance of survival

Treatment:
* Set focus on the first parameter after auto-adding required
  parameters to a template
* Invert the logic in TransclusionModel's process method, so that if
  the index IS undefined we will proceed to define it

Change-Id: I299053b63045ec933747831f1b4aa63493760f8b
2014-02-06 13:21:14 -08:00
..
ve.ui.MWAdvancedTransclusionDialog.js Bump copyright like it's 2014 2014-01-05 20:06:50 +08:00
ve.ui.MWBetaWelcomeDialog.js Update VE core submodule to master (e7e2833) 2014-01-17 16:29:36 +01:00
ve.ui.MWMediaEditDialog.js Store original dimensions results in IV store 2014-01-26 14:26:57 +00:00
ve.ui.MWMediaInsertDialog.js Merge "Factor out AJAX defaults into ve.init.mw.Target.static.apiRequest()" 2014-01-15 10:37:43 +00:00
ve.ui.MWMetaDialog.js Update VE core submodule to master (e7e2833) 2014-01-17 16:29:36 +01:00
ve.ui.MWReferenceDialog.js Update VE core submodule to master (e7e2833) 2014-01-17 16:29:36 +01:00
ve.ui.MWReferenceListDialog.js Update VE core submodule to master (e7e2833) 2014-01-17 16:29:36 +01:00
ve.ui.MWSaveDialog.js Update VE core submodule to master (e7e2833) 2014-01-17 16:29:36 +01:00
ve.ui.MWTemplateDialog.js Bump copyright like it's 2014 2014-01-05 20:06:50 +08:00
ve.ui.MWTransclusionDialog.js Auto-select first auto-added required param and fix param order 2014-02-06 13:21:14 -08:00