WordPress/wp-admin/js
Daryl Koopersmith ef0774026b Media: Improve sidebar handling and make attachment display properties attachment-specific.
`wp.mce.media`
* Watch all workflows for the `insert` event and attempt to insert the current state's `selection` if it exists.
* Fetch and pass attachment display properties through to `wp.media.string.image()`.

`wp.media.controller.Region`
* Separate the concept of events and modes.
* All events triggered on a `Region` trigger both `event` and `event:mode` callbacks.
* When a mode is deactivated, `deactivate` and `deactivate:mode` events are fired.
* When a mode is activated, `activate` and `activate:mode` events are fired.

`wp.media.controller.Library`
* Remove the `details()`, `buildDetails()`, and `clearDetails()` methods that juggled sidebar views. Instead, handle the sidebar views using modes.

`wp.media.controller.Gallery`
* Shift the overloaded `sidebar()` method to use modes.

`wp.media.view.MediaFrame.Post`
* Declare `activate:mode` event bindings using an nested object to reduce repetition.
* Update sidebar activation callbacks.

`wp.media.view.Settings`
* Refactor to leverage HTML data attributes and implicit values (instead of setting the fallback whenever an object was created). This has the additional benefit that gallery shortcode parameters are not output when the user has left them set to the default.

see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-08 14:15:09 +00:00
..
cat.js Kill use of colons in class names, props SergeyBiryukov, fixes #21152 2012-11-06 01:01:52 +00:00
cat.min.js Compress scripts/styles: 3.5-beta2-22407. 2012-11-06 22:58:35 +00:00
categories.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
categories.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
color-picker.js Swatches for the color picker. Improves discoverability of colors especially when the picker is opened with a grayscale color. props mattwiebe. FIXES #21206. 2012-11-07 23:32:03 +00:00
color-picker.min.js Compress scripts/styles: 3.5-beta2-22407. 2012-11-06 22:58:35 +00:00
comment.js Load the meta box sortables JS on the Edit Comment screen. props SergeyBiryukov. fixes #21499. 2012-09-03 15:39:06 +00:00
comment.min.js Compress scripts/styles: 3.5-alpha-21698. 2012-09-03 15:59:27 +00:00
common.js Forms with the class .wp-upload-form will now have their submit button disabled until a file is selected. props kovshenin, helenyhou, lessbloat, SergeyBiryukov, tommcfarlin. fixes #20855. 2012-11-07 23:54:03 +00:00
common.min.js Compress scripts/styles: 3.5-beta2-22269. 2012-10-22 22:58:34 +00:00
custom-background.js New color picker, props mattwiebe. see #21206. 2012-09-27 01:57:38 +00:00
custom-background.min.js Compress scripts/styles: 3.5-alpha-22071. 2012-09-27 19:21:47 +00:00
custom-fields.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
custom-fields.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
custom-header.js jQuery Masonry for uploaded custom headers. props zamoose. fixes #20346. 2012-10-14 17:05:16 +00:00
customize-controls.js Keyboard accessibility for the theme customizer. props lessbloat, jorbin, JustinSainton. fixes #21283. 2012-11-06 14:47:25 +00:00
customize-controls.min.js Compress scripts/styles: 3.5-beta2-22407. 2012-11-06 22:58:35 +00:00
dashboard.js New HiDPI spinner. Uses clean <span class="spinner"></span> markup. 2012-09-26 19:57:44 +00:00
dashboard.min.js Compress scripts/styles: 3.5-alpha-22024. 2012-09-26 22:58:46 +00:00
edit-comments.js Kill use of colons in class names, props SergeyBiryukov, fixes #21152 2012-11-06 01:01:52 +00:00
edit-comments.min.js Compress scripts/styles: 3.5-beta2-22407. 2012-11-06 22:58:35 +00:00
editor.js Main editor: maintain the height when switching Visual to Text and back, save the height when resizing as user state, output the height in the textarea tag when loading, (thanks @nacin for the help), fixes #21718 2012-09-26 03:30:21 +00:00
editor.min.js Compress scripts/styles: 3.5-alpha-22024. 2012-09-26 22:58:46 +00:00
farbtastic.js Farbtastic 1.3u. Props flashingcursor. fixes #14707 2010-11-11 16:34:22 +00:00
gallery.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
gallery.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
image-edit.js New HiDPI spinner. Uses clean <span class="spinner"></span> markup. 2012-09-26 19:57:44 +00:00
image-edit.min.js Compress scripts/styles: 3.5-alpha-22024. 2012-09-26 22:58:46 +00:00
inline-edit-post.js New HiDPI spinner. Uses clean <span class="spinner"></span> markup. 2012-09-26 19:57:44 +00:00
inline-edit-post.min.js Compress scripts/styles: 3.5-alpha-22024. 2012-09-26 22:58:46 +00:00
inline-edit-tax.js Kill use of colons in class names, props SergeyBiryukov, fixes #21152 2012-11-06 01:01:52 +00:00
inline-edit-tax.min.js Compress scripts/styles: 3.5-beta2-22407. 2012-11-06 22:58:35 +00:00
iris.min.js Swatches for the color picker. Improves discoverability of colors especially when the picker is opened with a grayscale color. props mattwiebe. FIXES #21206. 2012-11-07 23:32:03 +00:00
link.js Fix the adding of link categories through the "Add Link" screen. props yoavf. fixes #21590 for trunk 2012-08-31 18:20:28 +00:00
link.min.js Compress scripts/styles: 3.5-alpha-21690. 2012-08-31 18:59:24 +00:00
media-gallery.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
media-gallery.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
media-upload.js Media: Improve sidebar handling and make attachment display properties attachment-specific. 2012-11-08 14:15:09 +00:00
media-upload.min.js Compress scripts/styles: 3.5-beta2-22438. TinyMCE updated. 2012-11-07 20:29:58 +00:00
media.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
media.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
nav-menu.js New HiDPI spinner. Uses clean <span class="spinner"></span> markup. 2012-09-26 19:57:44 +00:00
nav-menu.min.js Compress scripts/styles: 3.5-alpha-22024. 2012-09-26 22:58:46 +00:00
password-strength-meter.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
password-strength-meter.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
plugin-install.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
plugin-install.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
post.js Post UI: Provide visual feedback to the user if they try to set an invalid date for a post. Fixes #17180 props jkudish. 2012-11-07 21:31:08 +00:00
post.min.js Compress scripts/styles: 3.5-beta2-22455. 2012-11-07 22:58:33 +00:00
postbox.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
postbox.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
revisions-js.php Link to unobfuscated JS. Props filosofo. fixes #15262 2010-12-08 22:37:19 +00:00
sample-permalink.js Pass the screen context directly to get_sample_permalink_html(). see #16379. 2012-10-07 03:44:30 +00:00
sample-permalink.min.js Compress scripts/styles: 3.5-beta1-22130. 2012-10-07 03:46:14 +00:00
set-post-thumbnail.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
set-post-thumbnail.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
tags.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
tags.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
theme-preview.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
theme-preview.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
theme.js New HiDPI spinner. Uses clean <span class="spinner"></span> markup. 2012-09-26 19:57:44 +00:00
theme.min.js Compress scripts/styles: 3.5-alpha-22024. 2012-09-26 22:58:46 +00:00
user-profile.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
user-profile.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
user-suggest.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
user-suggest.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
utils.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
utils.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
widgets.js Revert [22387]. see #14466. see #22374. 2012-11-06 22:36:24 +00:00
widgets.min.js Compress scripts/styles: 3.5-alpha-22024. 2012-09-26 22:58:46 +00:00
word-count.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
word-count.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-fullscreen.js New HiDPI spinner. Uses clean <span class="spinner"></span> markup. 2012-09-26 19:57:44 +00:00
wp-fullscreen.min.js Compress scripts/styles: 3.5-alpha-22024. 2012-09-26 22:58:46 +00:00
xfn.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
xfn.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00