plugins/yubikey/yubikey.js
changeset 12 6faa838e4433
parent 11 794e7b1a97e7
child 17 e04c0f64e972
equal deleted inserted replaced
11:794e7b1a97e7 12:6faa838e4433
   231 
   231 
   232 addOnloadHook(function()
   232 addOnloadHook(function()
   233   {
   233   {
   234     attachHook('login_build_form', 'yk_login_dlg_hook(table);');
   234     attachHook('login_build_form', 'yk_login_dlg_hook(table);');
   235     attachHook('login_build_userinfo', 'if ( window.yubikey_otp_current ) userinfo.yubikey_otp = window.yubikey_otp_current;');
   235     attachHook('login_build_userinfo', 'if ( window.yubikey_otp_current ) userinfo.yubikey_otp = window.yubikey_otp_current;');
       
   236     if ( title == namespace_list.Special + 'Preferences/Yubikey' )
       
   237     {
       
   238       load_component(['jquery', 'jquery-ui', 'expander']);
       
   239     }
   236   });
   240   });
   237 
   241 
   238 function yk_login_dlg_hook(table)
   242 function yk_login_dlg_hook(table)
   239 {
   243 {
   240   window.yubikey_otp_current = false;
   244   window.yubikey_otp_current = false;