WordPress/wp-includes/js
Adam Silverstein 7846cdc632 Media: Disable the edit image->replace button when no item selected.
On the edit media screen, ensure that the 'replace' button is disabled until a media item is selected. Fix an issue where clicking the button with no item selected threw a JavaScript error and failed to work.

Props timmydcrawford, subrataemfluence, psiico.
Fixes #40589.


Built from https://develop.svn.wordpress.org/trunk@40902


git-svn-id: http://core.svn.wordpress.org/trunk@40752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-06-15 09:38:46 +00:00
..
crop
imgareaselect
jcrop
jquery Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
mediaelement Media: Fix improper use of jQuery `hasClass` method. 2017-05-12 20:53:45 +00:00
plupload Media: Simplify upload error message construction. 2017-05-16 17:58:41 +00:00
swfupload Upload: improve legacy SWFUpload event handlers for current jQuery. 2017-04-14 16:43:44 +00:00
thickbox Accessibility: the Thickbox "Close" control should always be a button. 2016-05-23 10:30:29 +00:00
tinymce TinyMCE: update to 4.6.3. Fixes few more edge cases with link boundaries. Changelog: https://www.tinymce.com/docs/changelog/#version463-may302017 2017-05-30 23:35:41 +00:00
admin-bar.js
admin-bar.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
autosave.js Accessibility: Remove inappropriate content from the Posts and Edit screens headings. 2016-10-27 20:39:39 +00:00
autosave.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
backbone.min.js External Libraries: Update Backbone to version 1.3.3. 2016-06-16 09:27:29 +00:00
colorpicker.js
colorpicker.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
comment-reply.js
comment-reply.min.js
customize-base.js Customize: Fix HTTPS navigation of site in preview on IE11. 2017-04-06 00:32:44 +00:00
customize-base.min.js Customize: Fix HTTPS navigation of site in preview on IE11. 2017-04-06 00:32:44 +00:00
customize-loader.js Customize: Implement customized state persistence with changesets. 2016-10-18 20:05:31 +00:00
customize-loader.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
customize-models.js
customize-models.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
customize-preview-nav-menus.js Customize: Fix ability to shift-click on placeholder/pre-saved nav menu items in preview to focus on corresponding control. 2016-12-10 23:47:41 +00:00
customize-preview-nav-menus.min.js Customize: Fix ability to shift-click on placeholder/pre-saved nav menu items in preview to focus on corresponding control. 2016-12-10 23:47:41 +00:00
customize-preview-widgets.js Customize: Add edit shortcuts in customizer preview to visually expose editable elements and focus on the corresponding controls when clicked. 2016-10-26 20:03:32 +00:00
customize-preview-widgets.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
customize-preview.js Customize: Fix HTTPS navigation of site in preview on IE11. 2017-04-06 00:32:44 +00:00
customize-preview.min.js Customize: Fix HTTPS navigation of site in preview on IE11. 2017-04-06 00:32:44 +00:00
customize-selective-refresh.js Customize: Run a partial's fallback behavior (full refresh) when selective refresh fails due to a script error. 2017-05-17 00:01:40 +00:00
customize-selective-refresh.min.js Customize: Run a partial's fallback behavior (full refresh) when selective refresh fails due to a script error. 2017-05-17 00:01:40 +00:00
customize-views.js Customize: Prevent vertical clipping of thumbnail in header image customizer control. 2017-02-20 00:10:49 +00:00
customize-views.min.js Customize: Prevent vertical clipping of thumbnail in header image customizer control. 2017-02-20 00:10:49 +00:00
heartbeat.js Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:28:32 +00:00
heartbeat.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
hoverIntent.js
hoverIntent.min.js
imagesloaded.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
json2.js
json2.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
masonry.min.js External Libraries: Update Masonry to 3.3.2 and imagesLoaded to 3.2.0. 2016-06-28 18:48:31 +00:00
mce-view.js TinyMCE: Fix cursor position after updating a wpview node. Fix hiding the inline toolbar on editor blur. 2017-04-19 22:10:42 +00:00
mce-view.min.js TinyMCE: Fix cursor position after updating a wpview node. Fix hiding the inline toolbar on editor blur. 2017-04-19 22:10:42 +00:00
media-audiovideo.js
media-audiovideo.min.js
media-editor.js Media: Remove `alt` fallbacks to improve accessibility. 2016-10-19 03:06:28 +00:00
media-editor.min.js Media: Remove `alt` fallbacks to improve accessibility. 2016-10-19 03:06:28 +00:00
media-grid.js Accessibility: Improve the Media Library inline uploader accessibility. 2017-03-31 17:38:43 +00:00
media-grid.min.js Accessibility: Improve the Media Library inline uploader accessibility. 2017-03-31 17:38:43 +00:00
media-models.js Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:28:32 +00:00
media-models.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
media-views.js Media: Disable the edit image->replace button when no item selected. 2017-06-15 09:38:46 +00:00
media-views.min.js Media: Disable the edit image->replace button when no item selected. 2017-06-15 09:38:46 +00:00
quicktags.js Editor: manually trigger `change` event when text is modified from JS. 2017-05-11 00:29:41 +00:00
quicktags.min.js Editor: manually trigger `change` event when text is modified from JS. 2017-05-11 00:29:41 +00:00
shortcode.js Media: Ensure empty `alt` attributes are set to blank strings. 2016-07-20 14:38:29 +00:00
shortcode.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js
twemoji.js Emoji: Add Emoji 5 support. 2017-05-25 07:18:45 +00:00
twemoji.min.js Emoji: Add Emoji 5 support. 2017-05-25 07:18:45 +00:00
underscore.min.js
utils.js Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:28:32 +00:00
utils.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
wp-a11y.js Accessibility: Make Safari 10 + VoiceOver announce repeated, identical, `wp.a11y.speak()` messages. 2017-04-19 19:53:42 +00:00
wp-a11y.min.js Accessibility: Make Safari 10 + VoiceOver announce repeated, identical, `wp.a11y.speak()` messages. 2017-04-19 19:53:42 +00:00
wp-ajax-response.js Text Changes: Unify permission error message in `wp-ajax-response.js`. 2016-11-15 20:42:30 +00:00
wp-ajax-response.min.js Text Changes: Unify permission error message in `wp-ajax-response.js`. 2016-11-15 20:42:30 +00:00
wp-api.js REST API: JS Client - Enable connecting to multiple endpoints. 2017-04-02 19:41:41 +00:00
wp-api.min.js REST API: JS Client - Enable connecting to multiple endpoints. 2017-04-02 19:41:41 +00:00
wp-auth-check.js
wp-auth-check.min.js
wp-backbone.js
wp-backbone.min.js
wp-custom-header.js Small coding standards cleanup of wp-custom-header.js. 2016-11-17 09:04:31 +00:00
wp-custom-header.min.js Themes: Improve a11y and extendability of custom video headers. 2016-11-16 23:26:31 +00:00
wp-embed-template.js Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:16:57 +00:00
wp-embed-template.min.js Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:16:57 +00:00
wp-embed.js Embeds: Correctly remove security attribute from iframes in IE 10 and IE 11. 2016-11-23 13:38:33 +00:00
wp-embed.min.js Embeds: Correctly remove security attribute from iframes in IE 10 and IE 11. 2016-11-23 13:38:33 +00:00
wp-emoji-loader.js Emoji: Fix the flag and emoji5 tests not working correctly. 2017-05-29 03:21:42 +00:00
wp-emoji-loader.min.js Emoji: Fix the flag and emoji5 tests not working correctly. 2017-05-29 03:21:42 +00:00
wp-emoji-release.min.js Emoji: Add Emoji 5 support. 2017-05-25 07:18:45 +00:00
wp-emoji.js Emoji: Update the Twemoji loader to include the rainbow flag. 2016-08-04 20:51:31 +00:00
wp-emoji.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
wp-list-revisions.js
wp-list-revisions.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
wp-lists.js wpLists: Pass the current element to `process()` to properly register event handlers. 2016-10-03 18:39:30 +00:00
wp-lists.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
wp-pointer.js
wp-pointer.min.js
wp-util.js Multisite: Change `WP_Network` `id` property to an integer. 2016-06-26 14:26:29 +00:00
wp-util.min.js Multisite: Change `WP_Network` `id` property to an integer. 2016-06-26 14:26:29 +00:00
wpdialog.js
wpdialog.min.js
wplink.js Editor: manually trigger `change` event when text is modified from JS. 2017-05-11 00:29:41 +00:00
wplink.min.js Editor: manually trigger `change` event when text is modified from JS. 2017-05-11 00:29:41 +00:00
zxcvbn-async.js
zxcvbn-async.min.js
zxcvbn.min.js Libraries: Update zxcvbn from version 1.0 to 4.4.1 2016-12-13 11:23:42 +00:00