Vanilla co-founder
public function PostController_Render_Before($Sender) {
$this->RemoveJsFile('autosave.js');
}
public function DiscussionController_Render_Before($Sender) {
$this->RemoveJsFile('autosave.js');
} Vanilla co-founder
<?php if (!defined('APPLICATION')) exit();
/*
GNU GPL bit here.
*/
$PluginInfo['DisableAutosave'] = array(
'Name' => 'Disable Autosave',
'Description' => "Stops auto-saving of Draft posts.",
'Version' => '1.0',
'Author' => 'Mikhael'
);
function PostController_Render_Before($Sender) {
$this->RemoveJsFile('autosave.js');
}
function DiscussionController_Render_Before($Sender) {
$this->RemoveJsFile('autosave.js');
}Hi Mikhael:Mikhael said:Thanks @Lincoln. I've uploaded it as a plugin in case anyone else finds it useful.
It looks like you're new here. If you want to get involved, click one of these buttons!