Closed (fixed)
Project:
Save As Draft
Version:
6.x-1.0-beta1
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2009 at 19:14 UTC
Updated:
19 May 2010 at 00:38 UTC
Using the Form Filter module I was able to greatly simplify the interface for the user. On the other handSave As Draft module became difficult to use since the checkbox would fall under Advanced > Published expand pannels. This patch simply adds the 'Save As Draft' button to the bottom next to Save and Publish as well as eliminates the duplicate message on the status page. Using Javascript the Save As Draft checkbox is selected and Save button called to submit the form.
Great work on this module and far more intuitive then Draft module. I am still hoping this feature makes it into next Drupal core as it is common practice to draft published pages until they are ready for publish.
| Comment | File | Size | Author |
|---|---|---|---|
| save_as_draft.patch | 2.61 KB | b0ris55 |
Comments
Comment #1
b0ris55 commentedComment #2
realityloop commentedThis patch isn't working at my end. Drafts no longer get saved when using the patch.
Another option is to use http://drupal.org/project/override_node_options which gives much finer grained control over the node administration options.
Comment #3
realityloop commentedstatus change as per my last comment
Comment #4
b0ris55 commentedHey realityloop,
This might be different on your end since the id of the checkbox probably changes around (I can't say for sure). See this line: 'document.getElementById("edit-save-as-draft-1").checked=true' and change edit-save-as-draft-1 to match the id of your checkbox.
Comment #5
nimek commentedIn my opinion problem exists cause drupal replaced sign " to "
So in the source we have
onclick="document.getElementById("edit-save-as-draft").checked=true;document.getElementById("edit-submit").click();return false;"
How to fix it???
Comment #6
realityloop commentedI've just done a raft of changes which incorporates an alternative solution to using a button, please grab from CVS and test, or wait for DEV build to be updated in the next few hours.
I've tested it fairly extensively, but would like some feedback from others before commiting it as a stable.
Comment #7
realityloop commentedno response in over 2 weeks