[pLog-svn] r7154 - in plugins/branches/lifetype-1.2/remembercommentdata: . js

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Thu Oct 27 10:02:10 EDT 2011


Author: jondaley
Date: 2011-10-27 10:02:10 -0400 (Thu, 27 Oct 2011)
New Revision: 7154

Modified:
   plugins/branches/lifetype-1.2/remembercommentdata/js/remembercommentdata.js
   plugins/branches/lifetype-1.2/remembercommentdata/pluginremembercommentdata.class.php
Log:
hrm - I wonder how anyone was using this?  It blanks out the hidden userName field if the user is authenticated, and there isn't a cookie set.  Pretty confusing

Modified: plugins/branches/lifetype-1.2/remembercommentdata/js/remembercommentdata.js
===================================================================
--- plugins/branches/lifetype-1.2/remembercommentdata/js/remembercommentdata.js	2011-10-27 13:41:09 UTC (rev 7153)
+++ plugins/branches/lifetype-1.2/remembercommentdata/js/remembercommentdata.js	2011-10-27 14:02:10 UTC (rev 7154)
@@ -38,9 +38,12 @@
     var theName = readCookie("plog_cm_name");
     var theAddr = readCookie("plog_cm_email");
     var theUrl = readCookie("plog_cm_url");
-    theForm.userName.value = (theName==null)?"":theName;
-    theForm.userEmail.value = (theAddr==null)?"":theAddr;
-    theForm.userUrl.value = (theUrl==null)?"":theUrl;
+    if(theForm.userName.value == null)
+        theForm.userName.value = (theName==null)?"":theName;
+    if(theForm.userEmail.value == null)
+        theForm.userEmail.value = (theAddr==null)?"":theAddr;
+    if(theForm.userUrl.value == null)
+        theForm.userUrl.value = (theUrl==null)?"":theUrl;
 }
 
 document.forms['NewComment'].onsubmit = setCookies;

Modified: plugins/branches/lifetype-1.2/remembercommentdata/pluginremembercommentdata.class.php
===================================================================
--- plugins/branches/lifetype-1.2/remembercommentdata/pluginremembercommentdata.class.php	2011-10-27 13:41:09 UTC (rev 7153)
+++ plugins/branches/lifetype-1.2/remembercommentdata/pluginremembercommentdata.class.php	2011-10-27 14:02:10 UTC (rev 7154)
@@ -13,7 +13,7 @@
 			$this->id      = "remembercommentdata";
 			$this->author  = "Andres Bianciotto";
 			$this->desc    = "Fills the comment form fields with last entered data (cookie based)";
-            $this->version = "20070302";
+            $this->version = "20111027";
 
 			$this->locales = Array( "en_UK" , "es_ES" );
 



More information about the pLog-svn mailing list