Announcement

Collapse
No announcement yet.

Just curious: why both checkbox and button for Delete Post?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Just curious: why both checkbox and button for Delete Post?

    Hi,

    I'm just curious why there's a need for both a checkbox ("Delete Post?" and a Delete Now submit button at the same time? Surely the checkbox is redundent, now that you have a separate submit button for deleting a post?

    Thanks,

    Bira

  • #2
    My guess would be that this is in place rather than having an extra 'are you sure' dialogue.

    if you really want to get rid of the checkbox, just replace
    Code:
    <INPUT TYPE="CHECKBOX" NAME="deletepost" VALUE="yes">
    with
    Code:
    <INPUT TYPE="HIDDEN" NAME="deletepost" VALUE="yes">
    then all your users will have to do is click the 'delete now' button.

    Comment


    • #3
      Well before I do this, I'm curious to know what happens if the field is hidden and on "Yes" and someone doesn't press the "Delete Post" button, but rather edits the post and presses the bottom "Edit Post" button? The hidden "yes, delete" field will have no effect?

      Comment


      • #4
        I already checked that for you The 'delete' options are stored in a separate <form> element from the edit options, so it's perfectly safe.

        I wouldn't have posted the fix above if i hadn't verified that it wasn't destructive

        Comment


        • #5
          heh you rule, Kier, thanks

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X