mediawiki-extensions-Visual.../modules/ve-mw/ui
Moriel Schottlender 14e1de1009 Update initialHash after getting defaultDimensions in image model
On initialization, the image model has an initial scalable that has
the given currentDimensions from Parsoid; these are usually correct.
However, in cases where the wiki settings do not fit the user settings
and the images appear smaller or bigger in practice than the values
of the wiki-defaults, the initial hash will store the wrong values.

We will only know what the real values for the comparison will be
after we get them from the API and the calculation; only at that
point we can update the image model initial hash.

This is important so that later the dialog can properly understand
whether to enable the "apply" button if a user changed an image
to custom size and then back to default.

Change-Id: If17b50cc4a39993f98a20a3fec3ddf5d8cb400b3
2014-10-22 00:11:43 +00:00
..
dialogs Update initialHash after getting defaultDimensions in image model 2014-10-22 00:11:43 +00:00
inspectors Getting rid of ve.splitClusters in ve-mw 2014-10-08 08:09:19 +00:00
pages Only validate required template params after blur 2014-10-17 17:59:13 +01:00
styles Apply mw-body-content styles to SurfaceWidget 2014-10-15 23:58:46 +00:00
themes Style required but currently-invalid parameters on the template dialog 2014-10-09 16:50:50 -07:00
tools Update VE core submodule to master (f8a563a) 2014-10-20 12:15:29 -07:00
widgets Merge "Use relative positioning for category popups, move out of overlay" 2014-10-17 22:57:35 +00:00
ve.ui.MWCommandRegistry.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.ui.MWMobileContext.js Update VE core submodule to master (db78bdd) 2014-10-20 12:43:39 -07:00
ve.ui.MWMobileSurface.js Update VE core submodule to master (db78bdd) 2014-10-20 12:43:39 -07:00