Commit Graph

49 Commits

Author SHA1 Message Date
Andrew Ozz 9d5f38a1df Merge post.js with page.js and slug.js, optimize categories and tags JS, standardize postboxes IDs and JS.
git-svn-id: https://develop.svn.wordpress.org/trunk@12022 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-13 10:02:42 +00:00
Andrew Ozz 8e956b6488 Show the login form in a popup when autosave hits the login grace period, fixes #10704
git-svn-id: https://develop.svn.wordpress.org/trunk@12021 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-11 11:26:59 +00:00
Mark Jaquith 04772d1b9f Surface "Move to Trash" link for posts/pages immediately after first autosave fires. Props cross country flight. fixes #10344
git-svn-id: https://develop.svn.wordpress.org/trunk@11986 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-01 11:44:18 +00:00
Andrew Ozz b967e7d4bd Avoid rare autosave collision when trying to publish the post immediately after it was autosaved, fixes #6785
git-svn-id: https://develop.svn.wordpress.org/trunk@11927 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-13 23:36:09 +00:00
Andrew Ozz 6db1862bd7 Fix race condition with autosave when clicking Publish immediately after entering post title, fixes #6728
git-svn-id: https://develop.svn.wordpress.org/trunk@11879 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-26 04:11:16 +00:00
Andrew Ozz 61c97aba16 Clean up .button and .button[disabled] CSS classes, add spinner and gray-out buttons after clicking Publish or Update post.
git-svn-id: https://develop.svn.wordpress.org/trunk@11874 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-25 05:14:49 +00:00
Andrew Ozz ad9e217bf4 Don't do autosave while the TinyMCE spellchecker is active (it strips all the markup), fixes #10515
git-svn-id: https://develop.svn.wordpress.org/trunk@11790 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-08 09:03:56 +00:00
Andrew Ozz adda656922 Ensure autosave is run before showing preview for new posts/pages.
git-svn-id: https://develop.svn.wordpress.org/trunk@11466 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-27 11:04:00 +00:00
Andrew Ozz 723b050a99 Don't show content changed warning when saving as draft from the HTML editor, fixes #9912
git-svn-id: https://develop.svn.wordpress.org/trunk@11439 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-23 08:41:00 +00:00
Andrew Ozz a8fa1281b7 TinyMCE 3.2.4, remove the autosave plugin and add the same functionality in autosave.js, fix double warning messages when leaving the page.
git-svn-id: https://develop.svn.wordpress.org/trunk@11437 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-22 22:08:17 +00:00
Andrew Ozz ee334aaf40 jQuery 1.3b2 and related changes (jquery.js is not minified to aid testing)
git-svn-id: https://develop.svn.wordpress.org/trunk@10326 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-07 05:02:40 +00:00
Andrew Ozz 416baab11a Minify all js and add the non-minified files as .dev.js
git-svn-id: https://develop.svn.wordpress.org/trunk@10291 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-02 15:08:58 +00:00
Andrew Ozz 8630c259b1 Fix disabling of submit buttons while auto-saving for pages, props emartin24, fixes #8710 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10251 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-24 02:14:09 +00:00
Andrew Ozz 9f66fcd434 Set parseInt() to use base 10 instead of detecting it, props projct, fixes #8659
git-svn-id: https://develop.svn.wordpress.org/trunk@10235 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-20 01:00:26 +00:00
Ryan Boren 3c7eca56ab Allow muliple tag-like taxonomies in the post editor. see #6387
git-svn-id: https://develop.svn.wordpress.org/trunk@10222 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-18 19:12:26 +00:00
Ryan Boren 83e002f20b Notice fixes from DD32. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9596 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-10 18:54:18 +00:00
Andrew Ozz 8b6e95b056 Preview fixes: ensure autosave is run at least once on new posts before preview, properly show previews for pending and scheduled posts.
git-svn-id: https://develop.svn.wordpress.org/trunk@9473 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-02 13:56:32 +00:00
Ryan Boren 6db75e59d4 Collapse crazyhorse to trunk. Incoming! see #7552
git-svn-id: https://develop.svn.wordpress.org/trunk@8691 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-20 21:42:31 +00:00
Ryan Boren 2272a1a950 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Ryan Boren 5757d74348 Autosave when Preview is clicked. Props azaozz and DanCoulter. fixes #6682
git-svn-id: https://develop.svn.wordpress.org/trunk@8170 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-23 16:05:10 +00:00
Ryan Boren 0c34dcfb37 Enable autosave for fullscreen mode. Props azaozz. fixes #7069
git-svn-id: https://develop.svn.wordpress.org/trunk@8037 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-03 08:15:39 +00:00
Ryan Boren 1c4f5de9a1 Revisioning for pages from mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7913 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-09 15:59:17 +00:00
Ryan Boren a1be16cf86 Move autosave to post revisions. Props mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7907 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-08 17:25:07 +00:00
Ryan Boren eae779df32 Bump the autosave re-enable delay to 5 seconds, makes sure we manually re-enable the buttons on ajax success, and visually dim the disabled buttons for some UI feedback. Props mdawaffe. fixes #6707 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7813 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-25 00:32:29 +00:00
Ryan Boren 563f49278e Disable buttons until autosave completes. Props mdawaffe. fixes #6707 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7790 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-23 02:22:55 +00:00
Ryan Boren d1d6825fa2 Disable buttons until autosave completes. Props mdawaffe. fixes #6707 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7788 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-23 01:55:58 +00:00
Ryan Boren 4dce6df7a7 Preserve author during autosave. fixes #6753 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7708 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-16 22:56:37 +00:00
Mark Jaquith f7c21d131d Use attachment title instead of filename, unless it is empty
git-svn-id: https://develop.svn.wordpress.org/trunk@7533 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-26 21:00:21 +00:00
Mark Jaquith bfc779927b Autosave fixes for attachments from andy. fixes #6389
git-svn-id: https://develop.svn.wordpress.org/trunk@7532 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-26 20:28:40 +00:00
Peter Westwood e8088c9af3 Tabindex for the Preview/View links. See #6352.
git-svn-id: https://develop.svn.wordpress.org/trunk@7480 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-22 22:19:25 +00:00
Ryan Boren e31076e464 Fix custom field add/update/delete. Props mdawaffe. fixes #6343
git-svn-id: https://develop.svn.wordpress.org/trunk@7468 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-22 08:15:48 +00:00
Mark Jaquith 9de58b184a Autosave when title has content and loses focus. props ryan. see #5749
git-svn-id: https://develop.svn.wordpress.org/trunk@7394 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-19 05:38:58 +00:00
Ryan Boren 29cc2b5b9c Renew autosave nonce. Props andy. fixes #6266
git-svn-id: https://develop.svn.wordpress.org/trunk@7375 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-18 02:43:20 +00:00
Mark Jaquith 5330df3c0a Post slug fixes from nbachiyski. fixes #6072
git-svn-id: https://develop.svn.wordpress.org/trunk@7162 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-05 22:09:28 +00:00
Ryan Boren 9df4b3f641 Post edit collision detection fixes from mdawaffe. fixes #6043
git-svn-id: https://develop.svn.wordpress.org/trunk@7146 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-04 00:05:30 +00:00
Ryan Boren 742b6b7ceb Autosave notice styling from mdawaffe. fixes #6054
git-svn-id: https://develop.svn.wordpress.org/trunk@7145 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-03 21:15:34 +00:00
Ryan Boren a87c748d19 Set focus for some fields. Props nbachiyski. fixes #6080
git-svn-id: https://develop.svn.wordpress.org/trunk@7143 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-03 21:12:17 +00:00
Ryan Boren b093ce1da2 Only show "saved at" when the post was actually saved. Props mdawaffe. fixes #6053
git-svn-id: https://develop.svn.wordpress.org/trunk@7138 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-03 20:58:06 +00:00
Ryan Boren 6d7441c26e Remove trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@7130 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-02 20:17:30 +00:00
Ryan Boren e29306e69c Post Edit Collision Detection from mdawaffe. fixes #6043
git-svn-id: https://develop.svn.wordpress.org/trunk@7103 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-29 09:51:36 +00:00
Ryan Boren da73b7408d Slug edit for pages. Hide advanced slug field if JS enabled. Trigger first autosave after 15 chars. Set autosave interval to 60s. Props filosofo. see #5749
git-svn-id: https://develop.svn.wordpress.org/trunk@6955 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-21 20:19:34 +00:00
Ryan Boren 908e657b61 Show permalink editor on new posts after autosave. Props filosofo. see #5749
git-svn-id: https://develop.svn.wordpress.org/trunk@6954 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-21 17:08:06 +00:00
Ryan Boren a738abba3d Auto add preview link after autosaving a new post or page. Props filosofo. see #5847
git-svn-id: https://develop.svn.wordpress.org/trunk@6953 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-21 06:19:46 +00:00
Ryan Boren c2083047a8 Remove cookie checking from check_ajax_referer(). Check nonces instead. Props mdawaffe. fixes #5782
git-svn-id: https://develop.svn.wordpress.org/trunk@6739 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-06 21:19:47 +00:00
Ryan Boren 4be56a17b1 TinyMCE 3.0 Final from azaozz. see #5674
git-svn-id: https://develop.svn.wordpress.org/trunk@6694 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-31 18:10:46 +00:00
Ryan Boren c1b80c091e check_ajax_referer() should look for *only* the auth_cookie, not others that look like they match. Autosave should know that an ajax response of -1 or 0 is a failure. Props mdawaffe
git-svn-id: https://develop.svn.wordpress.org/trunk@6649 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-24 21:19:42 +00:00
Ryan Boren 72a79d489d Port autosave to jquery. Props rmccue. see #3824
git-svn-id: https://develop.svn.wordpress.org/trunk@6546 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-04 08:46:33 +00:00
Peter Westwood 7003316321 Autosave tags as well. Fixes #5359 props sembee
git-svn-id: https://develop.svn.wordpress.org/trunk@6373 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-11 20:30:22 +00:00
Ryan Boren 3509883135 JS localization from mdawaffe. fixes #3913
git-svn-id: https://develop.svn.wordpress.org/trunk@4970 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-06 17:35:01 +00:00