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.

CommentFileSizeAuthor
save_as_draft.patch2.61 KBb0ris55

Comments

b0ris55’s picture

Status: Active » Needs review
realityloop’s picture

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.

realityloop’s picture

Status: Needs review » Needs work

status change as per my last comment

b0ris55’s picture

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.

nimek’s picture

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???

realityloop’s picture

Status: Needs work » Needs review

I'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.

realityloop’s picture

Status: Needs review » Closed (fixed)

no response in over 2 weeks