Dotclear

Changeset 1781:c03f63c79309


Ignore:
Timestamp:
09/10/13 12:26:51 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Use keypress instead of keydown and which to retrieve keycode, addresses #1636
Use !== undefined instead for test

Location:
admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/auth.php

    r1558 r1781  
    289289    if (upw.length == 0) { return; } 
    290290     
    291     if ($.browser.mozilla) { 
    292       uid.keypress(processKey); 
    293     } else { 
    294       uid.keydown(processKey); 
    295     } 
     291    uid.keypress(processKey); 
     292 
    296293    function processKey(evt) { 
    297       if (evt.keyCode == 13 && upw.val() == '') { 
     294      if (evt.which == 13 && upw.val() == '') { 
    298295         upw.focus(); 
    299296         return false; 
  • admin/js/common.js

    r1779 r1781  
    8383      
    8484     var set_user_pref = p.hide ^ p.reverse_user_pref; 
    85      if (p.user_pref && p.unfolded_sections && (p.user_pref in p.unfolded_sections)) { 
     85     if (p.user_pref && p.unfolded_sections !== undefined && (p.user_pref in p.unfolded_sections)) { 
    8686          p.hide = p.reverse_user_pref; 
    8787     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map