Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it, follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!

Suggestion: allow users to delete a saved draft from the posting form

BethrynBethryn Registered User regular
It seems unnecessarily cumbersome to have to go back to the main page, go to your drafts and delete one every time you decide that you don't want to post what you've written.

If you're going to let users save and delete drafts, please make it easy for them to manage them, Vanilla.

·

Posts

  • DelzhandDelzhand Registered User regular
    Final Fantasy XIV: Heavensward - November Elzhand (Sargatanas)
    ·
  • BarrakkethBarrakketh Registered User regular
    Delzhand wrote: »
    FWIW, that changed a little after the recent-ish big forum downtime:
    $('<a href="#" id="PAT_Delete_Draft">Delete Draft</a>')
             .css({'margin': '0 6px'})
            .insertAfter($('div.Buttons > a.DraftButton'));
        $('#PAT_Delete_Draft').click(function (e) {
            e.preventDefault();
           var textarea = $('#Form_Body');
           //input:hidden[name$=DraftID]
           var draft_id = $('#Form_DraftID').attr('value');
           var trans_key = $('#Form_TransientKey').attr('value');
           if (draft_id) {
               var uri = '/vanilla/drafts/delete/{0}/{1}?Target=drafts'.format(draft_id, trans_key);
               $.ajax(
                   {url: uri,
                   type: 'GET',
                   data: {DeliveryType: 'BOOL'},
                   success: function (data) {
                       textarea.val("");                   
                   }}
               );
           }
           else {
               textarea.val("");
           }
        });
    }
    

    ·
  • IcyLiquidIcyLiquid Two Steaks Montreal, QuebecAdministrator, Vanilla Staff vanilla
    We have plans to make the 'Cancel' button just do this.

    Tube wrote:
    Personally it makes me want to pry my kneecaps off with an icepick but that doesn't mean you shouldn't do it.
    ·
Sign In or Register to comment.