Dotclear


Ignore:
Location:
admin
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • admin/preferences.php

    r1179 r1368  
    344344     ($user_acc_nodragdrop ? '' : dcPage::jsLoad('js/_preferences-dragdrop.js')). 
    345345     dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 
     346     dcPage::jsLoad('js/jquery/jquery.pwstrength.js'). 
     347          '<script type="text/javascript">'."\n". 
     348          "//<![CDATA[\n". 
     349          "\$(function() {\n". 
     350          "    \$('#new_pwd').pwstrength({texts: ['".__('very weak')."', '".__('weak')."', '".__('mediocre')."', '".__('strong')."', '".__('very strong')."']});\n". 
     351          "});\n". 
     352          "\n//]]>\n". 
     353          "</script>\n". 
    346354     dcPage::jsPageTabs($default_tab). 
    347355     dcPage::jsConfirmClose('user-form'). 
     
    417425      
    418426     '<p><label for="new_pwd">'.__('New password:'). 
    419      form::password('new_pwd',20,255).'</label></p>'. 
     427     form::password('new_pwd',20,255,'','','',false,' data-indicator="pwindicator" ').'</label></p>'. 
     428    '<div id="pwindicator">'. 
     429    '    <div class="bar"></div>'. 
     430    '    <div class="label"></div>'. 
     431    '</div>'. 
    420432      
    421433     '<p><label for="new_pwd_c">'.__('Confirm password:'). 
  • admin/style/default.css

    r1179 r1369  
    13841384     color: white; 
    13851385} 
     1386 
     1387/* --------------------------------------------------------------- password indcator */ 
     1388#pwindicator { 
     1389     margin-top: 4px; 
     1390     width: 150px; 
     1391} 
     1392#pwindicator .bar { 
     1393     height: 2px; 
     1394} 
     1395.pw-very-weak .bar { 
     1396     background: #d00; 
     1397     width: 30px; 
     1398} 
     1399.pw-very-weak .label { 
     1400     color: #d00; 
     1401} 
     1402.pw-weak .bar { 
     1403     background: #d00; 
     1404     width: 60px; 
     1405} 
     1406.pw-weak .label { 
     1407     color: #d00; 
     1408} 
     1409.pw-mediocre .bar { 
     1410     background: #f3f01a; 
     1411     width: 90px; 
     1412} 
     1413.pw-mediocre .label { 
     1414     color: #f3f01a; 
     1415} 
     1416.pw-strong .bar { 
     1417     background: #f3b31a; 
     1418     width: 120px; 
     1419} 
     1420.pw-strong .label { 
     1421     color: #f3b31a; 
     1422} 
     1423.pw-very-strong .bar { 
     1424     background: #0d0; 
     1425     width: 150px; 
     1426} 
     1427.pw-very-strong .label { 
     1428     color: #0d0; 
     1429} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map