wordpress-develop/src/wp-admin/js
Weston Ruter 3fbb8ed287 Customize: Add infrastructure for trashing/reverting of unpublished changes; introduce full-screen OverlayNotification for trashing and theme install/preview.
* Introduce a new `wp.customize.previewer.trash()` JS API to trash the current changeset, along with logic to `WP_Customize_Manager` to handle deleting changeset drafts.
* Add `trashing` to `wp.customize.state` which is then used to update the UI.
* UI for trashing is pending design feedback. One possibility is to add a new trash button to Publish Settings section that invokes `wp.customize.previewer.trash()`.
* Improve logic for managing the visibility and disabled states for publish buttons.
* Prevent attempting `requestChangesetUpdate` while processing and bump processing while doing `save`.
* Update `changeset_date` state only if sent in save response.
* Merge `ThemesSection#loadThemePreview()` into `ThemesPanel#loadThemePreview()`.
* Remove unused `autosaved` state.
* Start autosaving and prompting at beforeunload after a change first happens. This is key for theme previews since even if a user did not make any changes, there were still dirty settings which would get stored in an auto-draft unexpectedly.
* Allow `Notification` to accept additional `classes` to be added to `container`.
* Introduce `OverlayNotification` and use for theme installing, previewing, and trashing. Such overlay notifications take over the entire window.

Props westonruter, celloexpressions.
See #37661, #39896, #21666, #35210.


git-svn-id: https://develop.svn.wordpress.org/trunk@41667 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-02 03:36:18 +00:00
..
widgets Widgets: Introduce Gallery widget for displaying image galleries. 2017-09-25 06:27:32 +00:00
accordion.js Menu customizer: More clearly separate search results from available items. 2015-07-29 23:39:54 +00:00
code-editor.js Code Editor: Remove scrollIntoView of editor's cursor line upon focus to prevent jumping issues for editor scroll position. 2017-09-17 03:57:09 +00:00
color-picker.js Accessibility: Improve the color picker UI accessibility, interaction, and generated markup. 2017-09-03 16:01:18 +00:00
comment.js Docs: Add documentation for wp-admin/js/comment.js. 2017-06-15 13:01:30 +00:00
common.js Permalinks: Change structure tag button state more reliably. 2017-09-26 08:23:07 +00:00
custom-background.js Docs: Add wp-admin/js/custom-background.js documentation. 2017-06-15 13:23:22 +00:00
custom-header.js Fix JSHint errors in custom-header.js and custom-background.js. 2013-11-14 05:39:28 +00:00
customize-controls.js Customize: Add infrastructure for trashing/reverting of unpublished changes; introduce full-screen OverlayNotification for trashing and theme install/preview. 2017-10-02 03:36:18 +00:00
customize-nav-menus.js Customize: Restrict click target of menu deletion, moving to button from its container. 2017-07-10 18:39:56 +00:00
customize-widgets.js Customize: Add global notifications area. 2017-09-12 07:02:49 +00:00
dashboard.js Dashboard: Don't trigger an Events search when the search field is empty. 2017-05-19 17:26:06 +00:00
edit-comments.js List Tables: Hide 'Empty Trash' and 'Empty Spam' buttons when view is already empty. 2017-03-17 16:53:08 +00:00
editor-expand.js Docs: improve JS docs for editor-expand.js 2017-08-24 17:47:58 +00:00
editor.js Editor: Use editor.$ to improve removeSelectionMarker(). 2017-10-01 10:32:58 +00:00
farbtastic.js New develop.svn.wordpress.org repository based on the old core.svn repository. 2013-08-07 05:25:25 +00:00
gallery.js JS: in event callbacks replace the very outdated return false with preventDefault(). 2015-10-09 01:26:46 +00:00
image-edit.js Media: ensure JavaScript initialized when media edit screen is loaded directly. 2017-01-27 18:29:48 +00:00
inline-edit-post.js Docs: Improve inline docs for inlineEditPost. 2017-05-19 15:44:10 +00:00
inline-edit-tax.js Docs: Add documentation for wp-admin/js/inline-edit-tax.js. 2016-09-22 18:49:26 +00:00
iris.min.js Customize: Add hue-only mode to color picker. 2016-10-25 22:32:55 +00:00
language-chooser.js Language chooser imporvements. 2014-08-04 20:46:42 +00:00
link.js Fix JSHint errors in 5 files. 2013-11-15 05:15:06 +00:00
media-gallery.js Media: Add some docs to media-gallery.js RIP. 2016-08-20 22:58:34 +00:00
media-upload.js jQuery: Replace the use of the .size() method with the .length property. 2016-01-13 16:16:15 +00:00
media.js Docs: Add wp-admin/js/media.js documentation. 2017-06-15 15:36:20 +00:00
nav-menu.js Menus: Visually hide the menu item edit link text in a consistent way. 2017-08-03 22:12:01 +00:00
password-strength-meter.js Users: Check zxcvbn is defined before calling. 2016-07-01 12:44:43 +00:00
plugin-install.js Administration: Thickbox: Fix conflicts with the Plugin details and native Thickbox modals. 2017-09-09 14:13:28 +00:00
post.js Docs: Correct a number of typos/spelling mistakes in inline comments. 2016-10-25 00:37:50 +00:00
postbox.js Docs: Add documentation for wp-admin/js/postbox.js. 2016-09-22 18:46:34 +00:00
revisions.js JavaScript: when starting Backbone history, stop if previously started. 2017-02-17 21:59:37 +00:00
set-post-thumbnail.js Revert a part of [32673] that caused a fatal error with SCRIPT_DEBUG disabled. 2015-06-01 04:13:17 +00:00
svg-painter.js Final SVG painter fixes. 2013-12-05 22:00:17 +00:00
tags-box.js Taxonomy: Convert tag cloud in Tags meta box to a list (<ul>) for better semantics and accessibility. 2017-09-22 11:27:44 +00:00
tags-suggest.js Quick/Bulk Edit: Fix the Tag suggestions position on the Bulk Edit textarea. 2017-03-31 16:34:52 +00:00
tags.js Docs: improve JS docs for tags.js 2017-08-24 17:51:19 +00:00
theme-plugin-editor.js Accessibility: CodeMirror editing areas minor improvements. 2017-09-24 15:59:56 +00:00
theme.js Accessibility: Improve the Theme Details modal accessibility. 2017-10-01 13:47:29 +00:00
updates.js Customize: Introduce a new experience for discovering, installing, and previewing themes within the customizer. 2017-09-29 20:12:19 +00:00
user-profile.js Login: Password reset - add hide icon & confirm weak password checkbox. 2017-09-21 21:28:07 +00:00
user-suggest.js Autocomplete for the new site admin email. Better than trying to remember which email address you used. 2014-01-27 23:09:08 +00:00
widgets.js Accessibility: Improve the sidebar toggles in the Widgets screen. 2017-09-27 16:28:59 +00:00
word-count.js Docs: Use 3-digit, x.x.x style semantic versioning for @since entries in wp-admin/js/word-count.js. 2017-01-06 14:18:43 +00:00
wp-fullscreen-stub.js Docs: Standardize on 'backward compatibility/compatible' nomenclature in core inline docs. 2016-05-13 18:40:19 +00:00
xfn.js JSHint and coding style fixes for xfn.js. 2013-11-14 21:57:11 +00:00