mediawiki-extensions-Visual.../modules/ve/ui
Trevor Parscal f7335d4729 Support loading stylesheets into frames from different locations
This is one of the blockers for splitting VE up into separate
repositories or extending VE with an extension.

ve.ui.Frame.js

  It's critical that we don't emit initialize from ve.ui.Frame until
  it's completely loaded, especially its styles, because we will
  begin measuring it straight away.

  Involved loading the stylesheets using $.ajax and setting base
  URL of the iframe to the ve.ui styles directory so all the image
  URLs still worked. This won't work for stylesheets from multiple
  locations, so we needed a more robust solution.

  The new solution uses some trickery described in the code
  documentation, but essentially no longer depends on all
  stylesheets being located in the same folder.

ve.ui.Dialog.js, ve.ui.Inspector.js, ve.ui.Window.js

  Static methods are now being used to extend a window class to
  include different stylesheets rather than simple array
  concatenation.

Change-Id: I619238732f975d41305f81f8f818a577a40f49da
2013-04-08 13:58:50 -07:00
..
dialogs Media dialog support 2013-04-05 11:52:57 -07:00
elements Stack panel, element mixins, cleanup 2013-03-28 12:40:01 -07:00
inspectors Link inspector menu not appearing in the right place 2013-03-14 16:56:04 -07:00
layouts Stack panel, element mixins, cleanup 2013-03-28 12:40:01 -07:00
styles Media dialog support 2013-04-05 11:52:57 -07:00
tools Media dialog support 2013-04-05 11:52:57 -07:00
widgets Add left/right/center alignment to popups 2013-04-02 17:36:54 -07:00
ve.ui.Context.js Media dialog support 2013-04-05 11:52:57 -07:00
ve.ui.Dialog.js Support loading stylesheets into frames from different locations 2013-04-08 13:58:50 -07:00
ve.ui.DialogFactory.js Media dialog support 2013-04-05 11:52:57 -07:00
ve.ui.Element.js Doc: Replace "@property @type {Type}" with "@property {Type}". 2013-03-28 21:21:56 +01:00
ve.ui.Frame.js Support loading stylesheets into frames from different locations 2013-04-08 13:58:50 -07:00
ve.ui.Inspector.js Support loading stylesheets into frames from different locations 2013-04-08 13:58:50 -07:00
ve.ui.InspectorFactory.js Media dialog support 2013-04-05 11:52:57 -07:00
ve.ui.js Group, Select, Option, Outline and MenuSection widgets 2013-03-20 22:55:32 +00:00
ve.ui.Layout.js Layouts, grids and panels 2013-03-15 15:12:56 -07:00
ve.ui.Tool.js Doc: Replace "@property @type {Type}" with "@property {Type}". 2013-03-28 21:21:56 +01:00
ve.ui.Toolbar.js Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00
ve.ui.ToolFactory.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.ui.Widget.js Layouts, grids and panels 2013-03-15 15:12:56 -07:00
ve.ui.Window.js Support loading stylesheets into frames from different locations 2013-04-08 13:58:50 -07:00
ve.ui.WindowSet.js Document and clean up events in all the things 2013-03-20 09:58:27 -07:00