mediawiki-extensions-Visual.../modules/ve/ui
Timo Tijhof 0560084393 ve.ui.MWTemplateDialog: Implement inferring of template data
Clean up of logic implemented during the template-sprint:

* Store spec inside the content model, directly associated
  with the content-part. This allowed fixing the bug where
  two spec-less template invocations overwrote each other's
  made-up template data due to it using "target.wt" as key.
  The opener now provides the fetcher with a "specId" which
  is set to "part/<id>" for wt-generated template targets.

* Batching is now implemented inside the fetcher instead
  of outside. This allows calling "getTemplateSpecs" inside
  the loop with a dedicated callback for each spec to store
  it in the content.parts[i] object passed by reference.

  It also makes it easier to use by different code paths.
  You call it as much as you like and it will queue up
  naturally through javascript yielding and then make a batch
  request. This is based on the pattern I used in MediaWiki core
  for mw.loader#addEmbeddedCSS.

Follows-up e7af635, da679b7.

Change-Id: I4d7121229d060a96d927585c987a1a81a474b922
2013-05-30 18:37:51 +01:00
..
actions ve.Editor 2013-05-15 10:39:12 -07:00
dialogs ve.ui.MWTemplateDialog: Implement inferring of template data 2013-05-30 18:37:51 +01:00
elements ve.Element refactor 2013-05-14 19:47:32 +00:00
inspectors Consistent use of mw in HTML classes, and data element and annotation types 2013-05-28 13:49:56 +01:00
layouts Fix documentation for GridLayout to add a return type 2013-05-25 12:48:17 +02:00
styles Add icon option to ve.ui.TextInputWidget 2013-05-29 12:39:07 +01:00
tools Consistent use of mw in HTML classes, and data element and annotation types 2013-05-28 13:49:56 +01:00
widgets Add icon option to ve.ui.TextInputWidget 2013-05-29 12:39:07 +01:00
ve.ui.Action.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.ui.ActionFactory.js ve.Editor 2013-05-15 10:39:12 -07:00
ve.ui.CommandRegistry.js Make MW meta dialog experimental 2013-05-24 17:53:06 +02:00
ve.ui.Context.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.ui.Dialog.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.ui.DialogFactory.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.Frame.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.ui.Inspector.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.ui.InspectorFactory.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.js ve.Editor 2013-05-15 10:39:12 -07:00
ve.ui.Layout.js ve.Element refactor 2013-05-14 19:47:32 +00:00
ve.ui.Surface.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.ui.Tool.js ve.Editor 2013-05-15 10:39:12 -07:00
ve.ui.Toolbar.js Make MW meta dialog experimental 2013-05-24 17:53:06 +02:00
ve.ui.ToolFactory.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.ui.Trigger.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.ui.TriggerRegistry.js ve.Editor 2013-05-15 10:39:12 -07:00
ve.ui.ViewRegistry.js Link inspector fixes 2013-04-24 18:29:55 -07:00
ve.ui.Widget.js ve.Element refactor 2013-05-14 19:47:32 +00:00
ve.ui.Window.js Restore window overlays 2013-05-25 15:44:36 +02:00
ve.ui.WindowSet.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00