Wordpress/tests/qunit/wp-admin/js
Weston Ruter 594a41666b Customize: Add global notifications area.
* Displays an error notification in the global area when a save attempt is rejected due to invalid settings. An error notification is also displayed when saving fails due to a network error or server error.
* Introduces `wp.customize.Notifications` subclass of `wp.customize.Values` to contain instances of `wp.customize.Notification` and manage their rendering into a container.
* Exposes the global notification area as `wp.customize.notifications` collection instance.
* Updates the `notifications` object on `Control` to use `Notifications` rather than `Values` and to re-use the rendering logic from the former. The old `Control#renderNotifications` method is deprecated.
* Allows notifications to be dismissed by instantiating them with a `dismissible` property.
* Allows `wp.customize.Notification` to be extended with custom templates and `render` functions.
* Triggers a `removed` event on `wp.customize.Values` instances _after_ a value has been removed from the collection.

Props delawski, westonruter, karmatosed, celloexpressions, Fab1en, melchoyce, Kelderic, afercia, adamsilverstein.
See #34893, #39896.
Fixes #35210, #31582, #37727, #37269.


git-svn-id: https://develop.svn.wordpress.org/trunk@41374 602fd350-edb4-49c9-b593-d223f7449a82
2017-09-12 07:02:49 +00:00
..
widgets Widgets: Add accessibility mode support for TinyMCE-enhanced Text and Media widgets (Video, Audio, Images). 2017-06-25 18:47:13 +00:00
customize-base.js Customize: Add global notifications area. 2017-09-12 07:02:49 +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: Add global notifications area. 2017-09-12 07:02:49 +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 Remove svn:executable property from Requests and some other files. 2016-07-13 14:38:21 +00:00
customize-widgets.js Customize: Re-architect and harden panel/section UI logic. 2016-09-23 22:22:09 +00:00
nav-menu.js REST API: JS client - QUnit tests for custom namespace route discovery. 2017-02-24 18:39:39 +00:00
password-strength-meter.js Libraries: Update zxcvbn from version 1.0 to 4.4.1 2016-12-13 11:22:28 +00:00
updates.js Update/Install: Shiny Updates v2. 2016-06-15 16:36:07 +00:00
word-count.js Editor: word count: better names for types. 2015-07-27 11:18:55 +00:00