Commit Graph

59 Commits

Author SHA1 Message Date
Andrew Ozz c944323a4f Widgets:
- Don't deactivate "draggable" on the widget when the chooser is open. Makes it possible to still drag the "widget-in-question".
- Change the chooser's HTML id to a class to avoid collisions when cloning.
- Refresh the "sortable" positions when an open widget is dragged. Fixes problems moving the widget up or down in the same sidebar.
See #25821
Built from https://develop.svn.wordpress.org/trunk@26366


git-svn-id: http://core.svn.wordpress.org/trunk@26267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-24 22:07:10 +00:00
Andrew Ozz 1aa122be5e Widgets:
- Prevent dragging of the widget-in-question when the chooser is open.
- Don't show more than one spinner when saving widgets positions.
- Disable selecting of text in the widget title. Prevents selecting/highlighting most of the screen when dragging on slower devices.
See #25821.
Built from https://develop.svn.wordpress.org/trunk@26306


git-svn-id: http://core.svn.wordpress.org/trunk@26210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-21 19:28:10 +00:00
Sergey Biryukov 6927ba52b1 Fix JSHint errors in widgets.js.
props jorbin.
fixes #26127.
Built from https://develop.svn.wordpress.org/trunk@26287


git-svn-id: http://core.svn.wordpress.org/trunk@26192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-20 11:12:11 +00:00
Andrew Ozz 30b1c76a01 Widgets: split the sidebars in two containers so there are no empty spaces when they are shown in two columns and some are open, other closed. See #25952.
Built from https://develop.svn.wordpress.org/trunk@26285


git-svn-id: http://core.svn.wordpress.org/trunk@26190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-20 04:45:10 +00:00
Andrew Ozz 4070cdcf66 Widgets:
- Fix support for expanding (wide) widgets in the Inactive Widgets area.
- Remove resizing of the sidebars height.
- Stop removing unneeded "for" attributes from labels inside the widgets. Was a fix for IE6 odd behaviour.  

See #26117.
Built from https://develop.svn.wordpress.org/trunk@26277


git-svn-id: http://core.svn.wordpress.org/trunk@26182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-20 01:35:10 +00:00
Andrew Ozz 8de3d7d15e Widgets:
- Remove the !important styles that were overriding the widget width when expanded.
- Fix missing border-bottom from widgets when dragged and expanded.
Props shaunandrews, see #26117.
Built from https://develop.svn.wordpress.org/trunk@26275


git-svn-id: http://core.svn.wordpress.org/trunk@26180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-19 23:47:10 +00:00
Andrew Ozz c19660468b Widgets: move the chooser inside the selected widget so it inherits the width, add some keyboard shortcuts: tab to select, enter to append and escape to cancel. Props shaunandrews, see #25821
Built from https://develop.svn.wordpress.org/trunk@26271


git-svn-id: http://core.svn.wordpress.org/trunk@26176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-19 18:03:09 +00:00
Matt Thomas 87ce6cc5c3 Bring in the widgets component of MP6. See #25858.
* A cleaner UI, with a simpler design for available and inactive widgets, and more emphasis on your sidebars.
* Available widgets and sidebars expand to two columns at larger screen sizes making it easier to manage sites with lots of sidebars.
* New dropzone indicator for empty sidebars.

Props shaunandrews, joen, iammattthomas.


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


git-svn-id: http://core.svn.wordpress.org/trunk@26051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-13 20:06:06 +00:00
Andrew Ozz 753e745796 Merge the Widgets Area Chooser feature plugin. First run, see #25821
Built from https://develop.svn.wordpress.org/trunk@26054


git-svn-id: http://core.svn.wordpress.org/trunk@25979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 23:05:10 +00:00
Andrew Nacin 9e2d46819e Revert [22387]. see #14466. see #22374.
git-svn-id: http://core.svn.wordpress.org/trunk@22406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-06 22:36:24 +00:00
Andrew Nacin bc93c0fdc5 Prefix sidebar IDs on the widgets screen with "sidebar-". props batmoo. fixes #14466.
git-svn-id: http://core.svn.wordpress.org/trunk@22387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-05 23:17:25 +00:00
Andrew Nacin 1acd8b556f New HiDPI spinner. Uses clean <span class="spinner"></span> markup.
Be on the lookout for weirdness.
props lessbloat. see #21456.



git-svn-id: http://core.svn.wordpress.org/trunk@22019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-26 19:57:44 +00:00
Andrew Nacin 2710bcade1 Switch to .min for compressed JS and CSS files.
* This moves our "development" versions from .dev.js to .js (same for css).
 * The compressed version then moves from .js to .min.js (same for css).

By switching to the standard .min convention, it sets expectations for developers,
and works nicely with existing tools such as ack.

fixes #21633.



git-svn-id: http://core.svn.wordpress.org/trunk@21592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-23 00:04:18 +00:00
bumpbot 2e494f8e08 Compress scripts/styles: 3.5-alpha-21282.
git-svn-id: http://core.svn.wordpress.org/trunk@21282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-18 22:58:20 +00:00
bumpbot 02192b7f71 Compress scripts/styles: 3.5-alpha-21220.
git-svn-id: http://core.svn.wordpress.org/trunk@21220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-05 20:58:21 +00:00
bumpbot c600e21e43 Compress scripts/styles: 3.4-beta3-20629.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-27 20:58:24 +00:00
azaozz ce992634cc Fix the workaround for UI Draggable to include single instance widgets (do they still exist?), see #17952
git-svn-id: http://svn.automattic.com/wordpress/trunk@18774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-25 18:53:34 +00:00
azaozz e7e4ceed22 Update jQuery to 1.6.4, update jQuery UI to 1.8.16, add the rest of UI, add workaround for a regression in UI Draggable, see #17952
git-svn-id: http://svn.automattic.com/wordpress/trunk@18757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-23 05:03:31 +00:00
azaozz fb970629fb '.widget', not '.postbox' in [18635], props aaroncampbell, see #17979
git-svn-id: http://svn.automattic.com/wordpress/trunk@18636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-03 21:45:01 +00:00
azaozz b645d74be4 Remove orphaned sidebars from the page when the user drags all widgets out of them, see #17979
git-svn-id: http://svn.automattic.com/wordpress/trunk@18635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-03 21:26:32 +00:00
azaozz 21dc8794bc Remove unneeded .siblings() from widgets.js, props aaroncampbell, fixes #18582
git-svn-id: http://svn.automattic.com/wordpress/trunk@18634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-03 21:19:36 +00:00
azaozz d83b14c165 Moves orphaned sidebars to main content area above Inactive Widgets, props aaroncampbell, see #17979
git-svn-id: http://svn.automattic.com/wordpress/trunk@18631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-03 03:01:11 +00:00
azaozz 9972597f91 Widgets RTL fixes, props yoavf, fixes #16082
git-svn-id: http://svn.automattic.com/wordpress/trunk@18095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-01 16:29:10 +00:00
nacin 38e017024d Verify that a widget is draggable before stripping its draggability. props filosofo, see #12863. Fixes widget creation for jQUI 1.8.5; should be fixed in jQUI 1.8.6.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-07 04:20:19 +00:00
azaozz 395495bd99 Fix error in widgets.js, props Denis-de-Bernardy, see #10021
git-svn-id: http://svn.automattic.com/wordpress/trunk@11870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-24 19:16:53 +00:00
azaozz 7a5b2339d9 More jQuery based scripts optimizations, props Denis-de-Bernardy, see #10021
git-svn-id: http://svn.automattic.com/wordpress/trunk@11858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-21 01:03:26 +00:00
azaozz 491b68752b Speed up jQuery based scripts, props Denis-de-Bernardy, see #10021
git-svn-id: http://svn.automattic.com/wordpress/trunk@11837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-18 09:53:37 +00:00
azaozz a71b8736cd Add "Accessibility Mode" for widgets screen (can be turned on from Screen Options). Add set_user_setting() to the UI state saving functions.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-06-01 23:31:34 +00:00
azaozz b7bc0faa73 Reload the widget form with the ajax response after save, add Close link to the widgets, don't auto-close on save to show possible errors returned from validation
git-svn-id: http://svn.automattic.com/wordpress/trunk@11498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-31 11:34:08 +00:00
azaozz 13c7249671 Delete widgets when dragged back to Available Widgets, add ui.droppable.js and ui.selectable.js, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@11445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-24 15:46:09 +00:00
azaozz c8ad766bb7 Attempt to fix jQuery UI unselectable form fields in widgets, label can be either explicit or implicit, not both.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-22 16:13:05 +00:00
azaozz 5a6cf8b500 Strip tags and convert < > to entities when appending widget title, fixes #9830
git-svn-id: http://svn.automattic.com/wordpress/trunk@11349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-16 00:32:04 +00:00
azaozz 602194e49a Put back disabling of sortables for folded sidebars, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@11256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-10 10:33:30 +00:00
azaozz ad6e4d1a41 Append the widget's title to the header, adjust sidebar height after changing widgets, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@11246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-10 00:49:48 +00:00
azaozz ba1741b6e5 Fix old format multi-number placeholder in widgets
git-svn-id: http://svn.automattic.com/wordpress/trunk@11238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-07 21:58:45 +00:00
azaozz 6b7da9c94d Fix widget option saving on drop, fixes #9721
git-svn-id: http://svn.automattic.com/wordpress/trunk@11176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-04 19:33:54 +00:00
azaozz 7d778bdaca Widgets UI improvements: arrows, some more help
git-svn-id: http://svn.automattic.com/wordpress/trunk@11166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-04 01:19:10 +00:00
azaozz 8eda11f4bf Pass the form fields names as strings when saving widgets, fixes #9703
git-svn-id: http://svn.automattic.com/wordpress/trunk@11163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-03 23:17:47 +00:00
azaozz 83952bee95 Widgets UI styling, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@11160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-03 05:27:13 +00:00
azaozz 7ee6f89719 Move RSS widget to WP_Widget, see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@11093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-27 08:46:47 +00:00
azaozz 0a0dde8ddc Fold widget after saving, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@10926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-13 17:08:13 +00:00
azaozz 4be0d4b866 Widgets: open when adding, clean-up AJAX calls, slower animation/less jumping in IE, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@10922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-13 16:20:58 +00:00
azaozz 076dc80a08 Resizing and animation for widgets, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@10916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-13 01:17:59 +00:00
azaozz 123d7ee968 Widgets page, first run, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@10912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-11 14:37:24 +00:00
azaozz bc871c819e jQuery 1.3b2 and related changes (jquery.js is not minified to aid testing)
git-svn-id: http://svn.automattic.com/wordpress/trunk@10326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-07 05:02:40 +00:00
azaozz a750885c8e Minify all js and add the non-minified files as .dev.js
git-svn-id: http://svn.automattic.com/wordpress/trunk@10291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-02 15:08:58 +00:00
azaozz 0f81c61c65 Fix position of "Save widgets settings" warning and problem it causes in Firefox 2, fixes #8221
git-svn-id: http://svn.automattic.com/wordpress/trunk@9822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-20 22:18:16 +00:00
ryan 82be75124d Add save changes reminder to Widgets admin pending revamp in 2.8. Props mdawaffe. fixes #7863
git-svn-id: http://svn.automattic.com/wordpress/trunk@9140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-13 23:09:15 +00:00
ryan 7623315990 Widget arrangement fix from azaozz. fixes #6876 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-04 02:05:18 +00:00
ryan 3794dc04b4 Avoid data-loss when editing multi-widgets. Props mdawaffe. fixes #6636 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-07 21:40:32 +00:00