Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('body').idle({
- onIdle: function(){
- $("#workingState").html('<?=displayInLanguage("<p>Stav: <strong>neaktívny, obsah uložený.</strong></p>", "<p>Status: <strong>inactive, content saved.</strong></p>")?>');
- if( $('#show_add_actuality').hasClass('d-block') ){
- saveForm('actualityForm_sk', "autoSaveScript");
- saveForm('actualityForm_en', "autoSaveScript");
- }
- },
- onActive: function(){
- $("#workingState").html('<?=displayInLanguage("<p>Stav: <strong>aktívny</strong></p>", "<p>Status: <strong>active</strong></p>")?>');
- },
- idle: 2000
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement