Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Location of timeout for saving drafts.

DiegoMacDiegoMac New
edited May 2012 in Vanilla 2.0 - 2.8

The "Draft saved at..." makes my embedded vanilla navigate to a new URL. I've been trying for days to locate where is the code getting the URL to redirect after saving the draft, but haven't had luck. In fact, I can't even find where is the timeout for saving the drafts set. Could you point me to the javascript code where the auto saving of drafts is handled?

Tagged:

Best Answer

Answers

  • Actually the code seems to be in autosave.js For some reason I thought that wasn't it.

    What I still can't find is the code that get's executed to save the draft. From what I see, the call
    $(options.button).click();

    should be calling the click function of $('#Form_SaveDraft'). But I can't find #Form_SaveDraft in the page or any other reference to it.

  • peregrineperegrine MVP
    Answer ✓

    vanilla/applications/vanilla/js

    line 4 - var options = $.extend({interval: 60000, button: false}, opts);

    the link is acted on click
    http://vanillaforums.org/discussion/20233/location-of-timeout-for-saving-drafts#

    class.postcontroller.php

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • thank you @peregrine. this was frustratingly quick before.

  • some people turn it completely plugin.

    http://vanillaforums.org/addon/stopautodraft-plugin

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.