mediawiki-extensions-Visual.../modules/ve-mw/ui/dialogs
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.ui.MWBetaWelcomeDialog.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.ui.MWCancelConfirmDialog.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.ui.MWCitationDialog.js Followup b8d8a5b: pass selections, not ranges, to SurfaceFragment#clone 2014-10-08 20:00:21 +00:00
ve.ui.MWCommandHelpDialog.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.ui.MWMediaDialog.js Update initialHash after getting defaultDimensions in image model 2014-10-22 00:11:43 +00:00
ve.ui.MWMetaDialog.js Put category popups in the inner overlay for now 2014-10-14 17:02:51 -07:00
ve.ui.MWReferenceDialog.js Apply mw-body-content styles to SurfaceWidget 2014-10-15 23:58:46 +00:00
ve.ui.MWReferencesListDialog.js Update VE core submodule to master (984b57a) 2014-10-07 21:39:33 +02:00
ve.ui.MWRequiredParamBlankConfirmDialog.js Get confirmation when trying to insert/edit template/citation with required parameters missing 2014-09-17 12:31:23 -07:00
ve.ui.MWSaveDialog.js Replacing title attribute with mixin TitledElement 2014-10-09 22:57:04 +00:00
ve.ui.MWTemplateDialog.js Followup 1fc13cc: fix JS errors caused by incorrect context binding 2014-10-14 12:27:46 -07:00
ve.ui.MWTransclusionDialog.js Toggle trash button (on transclusion dialog) visibility when changing to non-parameter pages 2014-08-27 21:00:34 +01:00
ve.ui.MWWikitextSwitchConfirmDialog.js Show pending state on action button and keep dialog open when switching to source mode 2014-09-15 20:44:55 +01:00