mediawiki-extensions-Visual.../modules/ve-mw/dm/models
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
..
ve.dm.MWImageModel.js Update initialHash after getting defaultDimensions in image model 2014-10-22 00:11:43 +00:00
ve.dm.MWParameterModel.js Restyle parameter pages 2014-04-30 16:27:19 -07:00
ve.dm.MWReferenceModel.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.dm.MWTemplateModel.js Replacing push.apply in VE-MW with ve.batchPush from VE core 2014-10-16 23:12:22 +05:30
ve.dm.MWTemplatePlaceholderModel.js Bump copyright like it's 2014 2014-01-05 20:06:50 +08:00
ve.dm.MWTemplateSpecModel.js Merge "Use mw.Title#getRelativeText to deal with titles relative to specific namespaces" 2014-09-26 02:50:43 +00:00
ve.dm.MWTransclusionContentModel.js Implement 'change' events in templates models 2014-01-22 19:03:17 +00:00
ve.dm.MWTransclusionModel.js Replacing push.apply in VE-MW with ve.batchPush from VE core 2014-10-16 23:12:22 +05:30
ve.dm.MWTransclusionPartModel.js Implement 'change' events in templates models 2014-01-22 19:03:17 +00:00