Last edited by luiz1877 on December 30th 2013, 5:26 pm; edited 1 time in total
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
function save_message() {
('Copyright © AvacWeb. All Rights Reserved. Use and modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.');
my_setcookie('saved_msg', escape(document.post.message.value), false);
var note = document.createElement('div');
note.id = 'saved_note';
note.innerHTML = 'Your message has been saved automatically.';
document.body.appendChild(note);
setTimeout(function() { document.body.removeChild(document.getElementById('saved_note')); }, 3000);
}
$(function() {
if(document.post && document.post.message && document.post.id !== 'quick_reply') {
var saved_msg = my_getcookie('saved_msg');
if(saved_msg && confirm('Do you want to restore your previous message?')) document.post.message.value += unescape(saved_msg);
delete_cookie('saved_msg');
setInterval(save_message, 30000);
$(document.post.post).click(function() { delete_cookie('saved_msg'); });
}
});
Luiz1877 wrote:
.....Ok so i used to have this old avacweb auto save feature. So when you helped me earlier i deleted it and added the new one.(old one might have not have had all the javascript copied) ....