mediawiki-extensions-Visual.../modules/ve/ui/dialogs
Trevor Parscal 8039b1c2f8 Insert Reference
Objective:

* Allow opening reference dialog with arbitrary selection
* Auto-insert reference when selection is not a reference node

Changes:

ve.init.mw.ViewPageTarget.js
* Added reference button to toolbar

ve.init.Target.js
* Add getToolbarSubset so we can exclude the reference button from
  the toolbar in the reference dialog (nested references are not
  allowed).

ve.ui.MWReferenceDialog.js
* Stop storing referenceNode (not needed)
* Only store internalItem on open if there's a focused node that's a
  reference
* Use wrapper paragraph when creating a new reference
* Create new reference on dialog close if required

ve.dm.InternalList.js
* Major rewrite to support key less references.
* Add new method for creating a transaction to insert a new iternal
  item. Also returns the index of the new item to be passed to the
  reference node.

Change-Id: I839ae165c299248484ce93d4ab087318a95fbb94
2013-06-10 20:14:08 +01:00
..
ve.ui.ContentDialog.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.ui.MediaDialog.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.ui.MWMediaInsertDialog.js Image insertion 2013-06-06 17:36:55 -07:00
ve.ui.MWMetaDialog.js Fix API request for language links 2013-06-06 12:36:53 +01:00
ve.ui.MWReferenceDialog.js Insert Reference 2013-06-10 20:14:08 +01:00
ve.ui.MWTemplateDialog.js HACK: Update template dialog for Parsoid's url -> href change 2013-06-07 00:09:04 +00:00
ve.ui.PagedDialog.js Code style fixes: 'function(' => 'function (' 2013-06-06 13:02:16 +01:00