Save As Draft button
b0ris55 - August 7, 2009 - 19:14
| Project: | Save As Draft |
| Version: | 6.x-1.0-beta1 |
| Component: | User interface |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
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.
| Attachment | Size |
|---|---|
| save_as_draft.patch | 2.61 KB |

#1
#2
This 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.
#3
status change as per my last comment
#4
Hey 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.
#5
In 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???