WordPress/wp-admin/js
Andrew Nacin df48cebeb4 No-JavaScript and no-Customizer support for the new Themes screen.
JavaScript is rarely disabled, but graceful degradation is still important. For example, syntax errors can occur, usually with major WP updates that overhaul entire experiences and update external libraries combined with themes or plugins doing weird or old things. If this error is due to their current theme, a user needs to be able to access the themes screen to switch away from the theme. A more subtle issue could make things painful to diagnose.

This commit renders the grid in PHP (the template is duplicated, but it lightweight, fairly mundane, and easy to sync). On Backbone render, the grid is then re-rendered from JavaScript so searches can occur. Customize and Live Preview is disabled if JS fails to kick in. If JS is disabled, old-school "Preview" links are displayed.

No-Customizer support: The customizer is only supported when the browser supports postMessage (IE8+), and if the frontend is a different domain, CORS (IE10+). We use the .hide-if-no-customize class for this. Pre-customize "Preview" links should use .hide-if-customize.

The .load-customize class should be used to declare a link that opens the customizer. This enables customize-loader.js to intercept this link and load the customizer on top of the current window, making for a smoother experience.

fixes #25964.

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


git-svn-id: http://core.svn.wordpress.org/trunk@26615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-06 16:11:10 +00:00
..
about.js Avoid JSHint errors. Use dot notation when able and declare pwsL10n as a global. 2013-11-09 21:21:10 +00:00
about.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
accordion.js Fixes and tweaks for the metabox accordion. 2013-07-18 17:42:53 +00:00
accordion.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
color-picker.js Fix order, declaration, tabbing of vars in color-picker.js. 2013-11-10 02:43:10 +00:00
color-picker.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
comment.js Avoid JSHint errors in admin comment.js. Declare globals, use single quotes. 2013-11-09 21:30:10 +00:00
comment.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
common.js Pinking shears. see #26086 props atimmer. 2013-12-04 19:34:09 +00:00
common.min.js Make the responsive menu usable with a mouse, fix non-folded and :focus styles, toggle the submenus on touchend/click. Fixes #26086. 2013-12-02 03:19:11 +00:00
custom-background.js Fix JSHint errors in custom-header.js and custom-background.js. 2013-11-14 05:40:11 +00:00
custom-background.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
custom-header.js Fix JSHint errors in custom-header.js and custom-background.js. 2013-11-14 05:40:11 +00:00
customize-controls.js Fix JSHint errors in customize-controls.js. 2013-11-15 06:08:10 +00:00
customize-controls.min.js Fix JSHint errors in customize-controls.js. 2013-11-15 06:08:10 +00:00
dashboard.js Auto-resize the Quick Draft textarea. props lessbloat, markjaquith, helen. fixes #26053. 2013-12-03 17:35:09 +00:00
dashboard.min.js Auto-resize the Quick Draft textarea. props lessbloat, markjaquith, helen. fixes #26053. 2013-12-03 17:35:09 +00:00
edit-comments.js Comments moderation screen: 2013-12-03 00:55:10 +00:00
edit-comments.min.js Comments moderation screen: 2013-12-03 00:55:10 +00:00
editor.js JSHint fixes for editor.js. Props dougwollison, fixes #25947 2013-11-15 21:03:10 +00:00
editor.min.js JSHint fixes for editor.js. Props dougwollison, fixes #25947 2013-11-15 21:03:10 +00:00
farbtastic.js Farbtastic 1.3u. Props flashingcursor. fixes #14707 2010-11-11 16:34:22 +00:00
gallery.js Fix JSHint errors in gallery.js. 2013-11-19 11:10:09 +00:00
gallery.min.js Fix JSHint errors in gallery.js. 2013-11-19 11:10:09 +00:00
image-edit.js Fix the ability to save changes made to an image. 2013-11-26 23:31:10 +00:00
image-edit.min.js Fix the ability to save changes made to an image. 2013-11-26 23:31:10 +00:00
inline-edit-post.js Heartbeat: 2013-12-03 00:45:10 +00:00
inline-edit-post.min.js Heartbeat: 2013-12-03 00:45:10 +00:00
inline-edit-tax.js JSHint fixes for inline-edit-tax.js. 2013-11-19 04:35:09 +00:00
inline-edit-tax.min.js JSHint fixes for inline-edit-tax.js. 2013-11-19 04:35:09 +00:00
iris.min.js Update the Iris color picker to version 1.0.4, which fixes a jQuery-UI CSS conflict. 2013-11-23 12:01:11 +00:00
link.js Fix JSHint errors in 5 files. 2013-11-15 05:16:09 +00:00
link.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
media-gallery.js Fix JSHint errors in three files. 2013-11-15 23:19:09 +00:00
media-gallery.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
media-upload.js Fix thickbox positioning on Manage Themes screen. Adjust thickbox resizing code on various screens for new toolbar height. 2013-11-22 08:06:09 +00:00
media-upload.min.js Fix thickbox positioning on Manage Themes screen. Adjust thickbox resizing code on various screens for new toolbar height. 2013-11-22 08:06:09 +00:00
media.js Fix JSHint errors in 5 files. 2013-11-15 05:16:09 +00:00
media.min.js Fix JSHint errors in 5 files. 2013-11-15 05:16:09 +00:00
nav-menu.js Return some semicolons. fixes #25594. 2013-12-04 19:08:10 +00:00
nav-menu.min.js Nav Menus: Delegate click events for move links. 2013-12-04 17:10:11 +00:00
password-strength-meter.js Fix JSHint errors in 3 files. 2013-11-15 05:12:09 +00:00
password-strength-meter.min.js Fix JSHint errors in 3 files. 2013-11-15 05:12:09 +00:00
plugin-install.js Fix thickbox positioning on Manage Themes screen. Adjust thickbox resizing code on various screens for new toolbar height. 2013-11-22 08:06:09 +00:00
plugin-install.min.js Fix thickbox positioning on Manage Themes screen. Adjust thickbox resizing code on various screens for new toolbar height. 2013-11-22 08:06:09 +00:00
post.js Heartbeat: 2013-12-03 00:45:10 +00:00
post.min.js Heartbeat: 2013-12-03 00:45:10 +00:00
postbox.js Fix JSHint errors in postbox.js. 2013-11-14 18:10:09 +00:00
postbox.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
revisions.js Fix JSHint errors (again) for revisions.js. 2013-11-14 05:56:09 +00:00
revisions.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
set-post-thumbnail.js Fix JSHint errors in 3 files. 2013-11-15 05:12:09 +00:00
set-post-thumbnail.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
svg-painter.js Final SVG painter fixes. 2013-12-05 22:01:10 +00:00
svg-painter.min.js Final SVG painter fixes. 2013-12-05 22:01:10 +00:00
tags.js Fix JSHint errors in tags.js. 2013-11-15 05:02:10 +00:00
tags.min.js Fix JSHint errors in tags.js. 2013-11-15 05:02:10 +00:00
theme-install.js Fix thickbox positioning on Manage Themes screen. Adjust thickbox resizing code on various screens for new toolbar height. 2013-11-22 08:06:09 +00:00
theme-install.min.js Fix thickbox positioning on Manage Themes screen. Adjust thickbox resizing code on various screens for new toolbar height. 2013-11-22 08:06:09 +00:00
theme-preview.js Fix JSHint errors in three files. 2013-11-15 23:19:09 +00:00
theme-preview.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
theme.js No-JavaScript and no-Customizer support for the new Themes screen. 2013-12-06 16:11:10 +00:00
theme.min.js No-JavaScript and no-Customizer support for the new Themes screen. 2013-12-06 16:11:10 +00:00
user-profile.js Final SVG painter fixes. 2013-12-05 22:01:10 +00:00
user-profile.min.js Final SVG painter fixes. 2013-12-05 22:01:10 +00:00
user-suggest.js JSHint fixes for user-suggest.js. 2013-11-16 20:41:12 +00:00
user-suggest.min.js JSHint fixes for user-suggest.js. 2013-11-16 20:41:12 +00:00
widgets.js Widgets: jshint cleanup of widgets.js, see #25821. 2013-12-05 23:14:09 +00:00
widgets.min.js Widgets: jshint cleanup of widgets.js, see #25821. 2013-12-05 23:14:09 +00:00
word-count.js JSHint fixes for word-count.js and wp-mediaelement.js. see #25187. 2013-11-15 06:52:09 +00:00
word-count.min.js JSHint fixes for word-count.js and wp-mediaelement.js. see #25187. 2013-11-15 06:52:09 +00:00
wp-fullscreen.js Define globals and add semicolons to wp-fullscreen.js. 2013-12-05 16:05:11 +00:00
wp-fullscreen.min.js Define globals and add semicolons to wp-fullscreen.js. 2013-12-05 16:05:11 +00:00
xfn.js JSHint and coding style fixes for xfn.js. 2013-11-14 21:58:10 +00:00
xfn.min.js JSHint and coding style fixes for xfn.js. 2013-11-14 21:58:10 +00:00