View Issue Details

IDProjectCategoryView StatusLast Update
0015574phplist applicationInstallationpublic23-05-12 13:44
Reporternaish 
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSGentooOS Version?
Product Version2.11.5 
Target Version4.0.xFixed in Version2.11.7 
Summary0015574: JS Validation requres 9 Cahracters where Description says 8
DescriptionI had problems submitting the administrator Password Form. On Installation:

http://n.zdg.at/lists/admin/?page=initialise&firstinstall=1

"Please enter the password you want to use for this account. (minimum of 8 characters.)"

But the JS-Validation required 9.

Also user feedback was missing why the form could not be submitted.

This Patch fixes the Problem.
Steps To ReproduceDelete your PHP-List Database
Goto http://n.zdg.at/lists/admin/
enter Password "123454678"
Try to submit
TagsNo tags attached.

Activities

naish

18-01-11 18:58

reporter  

patch.txt (1,577 bytes)
### Eclipse Workspace Patch 1.0
#P phplist
Index: phplist/public_html/lists/admin/ui/orange/js/phplist.js
===================================================================
--- phplist/public_html/lists/admin/ui/orange/js/phplist.js	(Revision 2534)
+++ phplist/public_html/lists/admin/ui/orange/js/phplist.js	(Arbeitskopie)
@@ -198,8 +198,15 @@
   })
 
   $("#initialadminpassword").keyup(function() {
-    if (this.value.length > 8) {
+    errorClass='formError';
+    t=$(this);
+
+    if (this.value.length >= 8){
       $("#initialisecontinue").removeAttr('disabled');
+      if (t.hasClass(errorClass)) t.removeClass(errorClass);
+    }else if(!t.hasClass(errorClass)){
+      t.addClass(errorClass);
+      $("#initialisecontinue").attr('disabled', 'disabled');
     }
   });
 
Index: phplist/public_html/lists/admin/ui/orange/styles/phplist.css
===================================================================
--- phplist/public_html/lists/admin/ui/orange/styles/phplist.css	(Revision 2534)
+++ phplist/public_html/lists/admin/ui/orange/styles/phplist.css	(Arbeitskopie)
@@ -401,6 +401,17 @@
 position: relative;
 }
 
+/* Form Element Format */
+input{
+border:1px solid #FFDE9F;
+-moz-border-radius:5px;
+padding: 1px 2px;
+}
+input.formError{
+background-color: #ffeeee;
+border:1px solid #ff8888
+}
+
 /* Generic Form Buttons */
 
 input[type="submit"],
@@ -435,6 +446,12 @@
 text-decoration: none!important;
 }
 
+input:hover[disabled]{
+background-color: #ff8888;
+border-color:red !important;
+}
+
+
 /* Highlighted Form Buttons (Blue Text) */
 
 p.button a {
patch.txt (1,577 bytes)