View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015574 | phpList 3 application | Installation | public | 18-01-11 18:57 | 23-05-12 12:44 |
Reporter | naish | ||||
Priority | low | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Gentoo | OS Version | ? |
Product Version | 2.11.5 | ||||
Target Version | Fixed in Version | 2.11.7 | |||
Summary | 0015574: JS Validation requres 9 Cahracters where Description says 8 | ||||
Description | I 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 Reproduce | Delete your PHP-List Database Goto http://n.zdg.at/lists/admin/ enter Password "123454678" Try to submit | ||||
Tags | No tags attached. | ||||
|
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 { |