It looks like you're new here. If you want to get involved, click one of these buttons!
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?
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
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
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.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •thank you @peregrine. this was frustratingly quick before.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •some people turn it completely plugin.
http://vanillaforums.org/addon/stopautodraft-plugin
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •