[pLog-svn] r7053 - plog/branches/lifetype-1.2/js/ui
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Fri Oct 8 16:14:14 EDT 2010
Author: jondaley
Date: 2010-10-08 16:14:14 -0400 (Fri, 08 Oct 2010)
New Revision: 7053
Modified:
plog/branches/lifetype-1.2/js/ui/autosave.js
Log:
if tinymce not defined, turn off timer
Modified: plog/branches/lifetype-1.2/js/ui/autosave.js
===================================================================
--- plog/branches/lifetype-1.2/js/ui/autosave.js 2010-10-08 18:54:08 UTC (rev 7052)
+++ plog/branches/lifetype-1.2/js/ui/autosave.js 2010-10-08 20:14:14 UTC (rev 7053)
@@ -80,8 +80,12 @@
{
postTopic = $('postTopic').value;
- if( htmlAreaEnabled )
- {
+ if(htmlAreaEnabled){
+ if(document.tinyMCE == undefined){
+ // there is an error, forget the auto-saving
+ clearInterval( backupTimer );
+ return;
+ }
postText = tinyMCE.getInstanceById('postText').getBody().innerHTML;
}
else
More information about the pLog-svn
mailing list