[pLog-svn] r4477 - plog/trunk/js/ui
Jon Daley
plogworld at jon.limedaley.com
Thu Jan 4 05:14:18 GMT 2007
Yes, I thought this would be the case. I started a reply
yesterday to your checkin wondering if this would need to be changed as
well, and then figured I could check for errors just as easily as you
could, but you beat me to it...
On Wed, 3 Jan 2007, oscar at devel.lifetype.net wrote:
> Author: oscar
> Date: 2007-01-03 22:26:58 +0000 (Wed, 03 Jan 2007)
> New Revision: 4477
>
> Modified:
> plog/trunk/js/ui/autosave.js
> Log:
> Removed references to the extended text textarea, which were causing errors in the Firefox console.
>
> Modified: plog/trunk/js/ui/autosave.js
> ===================================================================
> --- plog/trunk/js/ui/autosave.js 2007-01-03 22:16:48 UTC (rev 4476)
> +++ plog/trunk/js/ui/autosave.js 2007-01-03 22:26:58 UTC (rev 4477)
> @@ -28,7 +28,6 @@
> var postNotSavedCookieName = LTCookieBaseName + "postNotSaved";
> var postTopicCookieName = LTCookieBaseName + "postTopic";
> var postTextCookieName = LTCookieBaseName + "postText";
> -var postExtendedTextCookieName = LTCookieBaseName + "postExtendedText";
>
> function deleteBackupPostFromCookie()
> {
> @@ -37,7 +36,6 @@
> {
> deleteCookie( postTopicCookieName + cookieNum );
> deleteCookie( postTextCookieName + cookieNum );
> - deleteCookie( postExtendedTextCookieName + cookieNum );
> }
> }
>
> @@ -83,12 +81,10 @@
> if( htmlAreaEnabled )
> {
> postText = tinyMCE.getInstanceById('postText').getBody().innerHTML;
> - postExtendedText = tinyMCE.getInstanceById('postExtendedText').getBody().innerHTML;
> }
> else
> {
> postText = $('postText').value;
> - postExtendedText = $('postExtendedText').value;
> }
>
> if( postTopic.length > minBackupLength )
> @@ -102,12 +98,6 @@
> setCookie( postNotSavedCookieName, 1, 1);
> saveBackupPostToCookie( postTextCookieName, postText );
> }
> -
> - if( postExtendedText.length > minBackupLength )
> - {
> - setCookie( postNotSavedCookieName, 1, 1);
> - saveBackupPostToCookie( postExtendedTextCookieName, postExtendedText );
> - }
> }
>
> function initialAutoSave()
> @@ -141,12 +131,10 @@
> if( htmlAreaEnabled )
> {
> tinyMCE.getInstanceById('postText').getBody().innerHTML = loadBackupPostFromCookie( postTextCookieName );
> - tinyMCE.getInstanceById('postExtendedText').getBody().innerHTML = loadBackupPostFromCookie( postExtendedTextCookieName );
> }
> else
> {
> $('postText').value = loadBackupPostFromCookie( postTextCookieName );
> - $('postExtendedText').value = loadBackupPostFromCookie( postExtendedTextCookieName );
> }
>
> $('autoSaveMessage').innerHTML = '';
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>
--
Jon Daley
http://jon.limedaley.com/
To iterate is human, to recurse, divine.
-- L. Peter Deutch
More information about the pLog-svn
mailing list