Wordpress/tests/qunit/wp-admin/js
Weston Ruter f26ccf6fac Customize: Update server-sent setting validation notifications as changes are entered.
Send back setting validities with full refreshes and selective refreshes so that invalid settings can have notifications displayed immediately before attempting save, and so that these notifications can be cleared as soon as the input is corrected.

* Splits out JS logic for listing controls into separate methods  `wp.customize.Setting.prototype.findControls()` and `wp.customize.findControlsForSettings()`.
* Adds a `setting` property to the `data` on notifications added to controls that are synced from their settings.
* Adds `selective-refresh-setting-validities` message sent from preview to pane.
* Changes `WP_Customize_Manager::validate_setting_values()` to return when settings are valid as well as invalid.
* Adds `WP_Customize_Manager::prepare_setting_validity_for_js()`.
* Add setting validities to data exported to JS in Customizer Preview and in selective refresh responses.

Fixes #36944.


git-svn-id: https://develop.svn.wordpress.org/trunk@37700 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-14 19:16:54 +00:00
..
customize-base.js Customize: Add setting validation model and control notifications to augment setting sanitization. 2016-05-20 21:09:40 +00:00
customize-controls-utils.js Customizer: Move private helper functions to wp.customize.utils so they can be unit tested. 2014-12-02 22:55:48 +00:00
customize-controls.js Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:16:54 +00:00
customize-header.js Customizer: Allow to skip cropping header images if image width is smaller than or equal to theme width. 2014-04-25 20:24:28 +00:00
customize-nav-menus.js JSHint for [33528]: remove logging 2015-08-03 21:57:04 +00:00
customize-widgets.js Customizer: Always show Widgets panel initially if sidebars are registered; show notice to users in panel if no widget areas are in current preview. 2015-10-16 23:47:56 +00:00
password-strength-meter.js Use only one var per scope in our password-strength-meter tests. 2013-11-07 20:40:12 +00:00
word-count.js Editor: word count: better names for types. 2015-07-27 11:18:55 +00:00