Commit Graph

67 Commits

Author SHA1 Message Date
nacin
a14dd3db8b Allow enter to trigger a new custom link on nav-menus.php. props mattwiebe, fixes #18255.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-16 01:45:11 +00:00
azaozz
65f9c441a7 Replace .attr() with .prop() as per jQuery 1.6.1. Also fixes couple places where the JS wasn't working because attr('some', '') does not remove the HTML property now, see #17311
git-svn-id: http://svn.automattic.com/wordpress/trunk@18027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-25 01:04:12 +00:00
azaozz
9e4bee6c26 Add quotes to [value="some"] selectors, see #16426
git-svn-id: http://svn.automattic.com/wordpress/trunk@17777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-30 02:15:08 +00:00
nacin
5e1184aa57 Pinking shears.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-19 07:48:22 +00:00
scribu
6e56dce7dd Fix menu box search. Fixes #14335
git-svn-id: http://svn.automattic.com/wordpress/trunk@15709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-04 14:17:34 +00:00
ryan
5ecd1f31f2 Trim trailing whitespace.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-11 20:19:35 +00:00
nacin
975b2cdb6d Horizontal scrolling/resizing fixes for nav menu UI. Also some RTL fixes. props koopersmith, see #13525
git-svn-id: http://svn.automattic.com/wordpress/trunk@15214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-11 05:19:36 +00:00
nacin
dacccec2f7 Prevent 'Enter menu name here' menus, and offer some feedback. props koopersmith, fixes #13703.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-03 03:33:54 +00:00
ryan
17129fb62e Cut 'em out, move 'em on, trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@15116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-02 20:04:07 +00:00
nacin
760277c95e Nav menu improvements. props koopersmith. RTL support for tabs, better tab handling, other improvements. see #13525.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-31 20:22:49 +00:00
markjaquith
7aa4551ec7 Do not load window.onbeforeonload event if we are not on an existing nav menu. props filosofo. Reduce opacity on nav menu postboxes if we are not on an existing nav menu, and for JS users, deactivate all links and form elements, to make it obvious that those UI elements are not usable at this stage. fixes #13615
git-svn-id: http://svn.automattic.com/wordpress/trunk@15062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-29 19:39:40 +00:00
nacin
35d800986f Sanity check menu item parents and fix HTML issues. props filosofo, fixes #13600.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-28 23:04:00 +00:00
nacin
0d09181552 Don't show double-AYS for deleting a menu. props filosofo, duck_. see #13525.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-28 20:38:19 +00:00
ryan
70b6f9c478 Nav menu RTL js fixes. Props filosofo. see #13525
git-svn-id: http://svn.automattic.com/wordpress/trunk@15039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-28 16:57:47 +00:00
nacin
4d5114ff86 Force menu AYS when a menu item is deleted. props ocean90, see #13525.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-27 02:31:23 +00:00
nacin
da7b990fb5 Move the "Add Home Link" functionality to a checkbox on the View All tab of the Pages metabox. Also makes it work non-JS. props filosofo, fixes #13213.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-27 02:24:33 +00:00
ryan
1fa281b08c Ajaxify pagination requests in menu boxes. Props filosofo. fixes #13204
git-svn-id: http://svn.automattic.com/wordpress/trunk@14943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-26 14:49:43 +00:00
ryan
1a552dd029 Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@14924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-26 02:42:15 +00:00
nacin
b0e128e69b Don't hide early nav menu instructions until the menu is no longer empty. props koopersmith, see #13525
git-svn-id: http://svn.automattic.com/wordpress/trunk@14917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-26 00:41:18 +00:00
nacin
7a5d3f2688 First pass on better UX for menu item save. props koopersmith, see #13525.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-24 19:50:20 +00:00
nacin
f15cdc78cf Menu tweaks. Save menu locations when saving the menu. Also, centralize theme support checks and add them to menu.php. Improve some branching. Remove some old JS vars, add a missing semicolon, etc. props koopersmith. see #13378.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-24 09:23:56 +00:00
nacin
c84bc2e846 Pixel sanity check. props filosofo, fixes #13470.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-21 23:35:37 +00:00
nacin
49437c3491 Fix nav menu locations sorting. props jorbin, koopersmith with assists. see #13378.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-20 22:43:14 +00:00
ryan
2d3d649182 Menu styling fixes for IE. Props filosofo, ocean90. fixes #13388 #13348
git-svn-id: http://svn.automattic.com/wordpress/trunk@14761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-20 19:33:57 +00:00
nacin
337df6e337 Remove AYS for deleting a menu item. fixes #13330.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-20 14:55:11 +00:00
markjaquith
31dd323f01 Add AYS notice on unsaved menu changes. see #12472
git-svn-id: http://svn.automattic.com/wordpress/trunk@14741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-19 09:56:02 +00:00
markjaquith
1c01f24307 Remove trailing tabs from nav-menu.dev.js
git-svn-id: http://svn.automattic.com/wordpress/trunk@14740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-19 08:44:28 +00:00
ryan
bc1bf148e4 Add nonce to menu-locations-save. Props koopersmith. see #13378
git-svn-id: http://svn.automattic.com/wordpress/trunk@14725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-18 15:16:58 +00:00
nacin
f02fddce86 Save menu locations meta box via ajax. see #13378.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-17 23:58:56 +00:00
nacin
6c01265794 First pass at fixing search for add menu item boxes. props koopersmith, see #13283.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-16 05:39:53 +00:00
nacin
3f796315da Only save menu item positions on save. Had implications for draft items otherwise. see #13337, props koopersmith.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 01:32:48 +00:00
nbachiyski
46afe7c285 I18n for custom post type labels. Props demetris, dimadin. Fixes #12968
git-svn-id: http://svn.automattic.com/wordpress/trunk@14571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 19:52:50 +00:00
nacin
8bd2d0505b Some sortable improvements in the nav menu UI. props koopersmith, see #13220.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 04:51:57 +00:00
nacin
544d3d0f84 Remove old code that breaks menu design rendering. props koopersmith, fixes #13311.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 04:49:52 +00:00
nacin
444f8cc6c4 Allow menu items to be dropped on a parent item in addition to just being dragged to the right. props koopersmith, see #13220.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-08 21:56:53 +00:00
nacin
0a71b5dc8a Adopt WP's general JS structure. Remove last of trailing commas. Remove dead code. props koopersmith, see #13220.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-06 17:11:52 +00:00
nacin
494290312a Remove more trailing commas in nav menus JS. props koopersmith and ocean90, see #13220.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-06 15:40:29 +00:00
nacin
e34150ab5b Revert [14434] et al. Going back to checkboxes in the nav menus, holding drag-drop for future release. see #13247.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-06 14:09:10 +00:00
nacin
8b27606b04 Only make one ajax call for multiple items. Also move jQuery extensions into their own function. props koopersmith, see #13220.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-05 21:23:53 +00:00
nacin
2d7f62489d Minor JS var declaration optimizations. props koopersmith, see #13220.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-05 21:06:43 +00:00
nacin
7b8588152f Trim trailing whites from nav-menu js.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-05 20:37:32 +00:00
nacin
585ea858af Consolidate nav menu item ajax. Other misc fixes. props koopersmith, see #13204.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-05 20:29:50 +00:00
nacin
3d76f61923 Use correct field name. fixes menu ordering issues. props filosofo, fixes #13256.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-04 21:28:31 +00:00
nacin
0891a9dea0 More menu improvements. Add link that adds a menu item to the home page, make empty menu dropzone slightly larger, limit selected items to the active tab. props koopersmith and ptahdunbar. see #13220.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-04 10:01:15 +00:00
nacin
3a69ab9602 Fix 'Select All' for the new drag/drop code. props koopersmith, see #13220.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-04 08:54:35 +00:00
nacin
ac7687ee8d Have 'Add to Menu' and multiple-item drag/drop only affect one meta box at a time. props ptahdunbar, with koopersmith. Non-JS will still handle the meta boxes all together as one form. see #13220, see #13219.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-04 08:31:40 +00:00
nacin
7466fadd24 Add ability to drag objects from meta boxes and drop them into your menu. Includes multiple-select before dragging. Select all is todo. Checkboxes remain non-JS fallback. props koopersmith, see #13247.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-04 07:24:49 +00:00
ryan
7b7243d94a Strip trailing whites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 20:26:11 +00:00
nacin
9dd4702113 Check for deleted menus or something. It fixes a JS error. props koopersmith, see #13215.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 19:35:54 +00:00
nacin
0c2e93aee7 Sliding tabs for the nav menu admin UI. second pass. props koopersmith, see #13215.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 16:59:51 +00:00