plugins/yubikey/yubikey.js
changeset 28 b9a3da602841
parent 26 0dac837643a4
parent 24 ba1a31f16afe
child 30 294bab0bb3e2
equal deleted inserted replaced
27:647f0aa485dd 28:b9a3da602841
   215       .remove();
   215       .remove();
   216 }
   216 }
   217 
   217 
   218 addOnloadHook(function()
   218 addOnloadHook(function()
   219   {
   219   {
       
   220     if ( is_iPhone )
       
   221       // kinda can't plug a yubikey into an iPhone
       
   222       // ... yet?
       
   223       return;
       
   224     
   220     attachHook('login_build_form', 'yk_login_dlg_hook(table, data);');
   225     attachHook('login_build_form', 'yk_login_dlg_hook(table, data);');
   221     attachHook('login_build_userinfo', 'if ( window.yubikey_otp_current ) userinfo.yubikey_otp = window.yubikey_otp_current;');
   226     attachHook('login_build_userinfo', 'if ( window.yubikey_otp_current ) userinfo.yubikey_otp = window.yubikey_otp_current;');
   222     if ( title == namespace_list.Special + 'Preferences/Yubikey' )
   227     if ( title == namespace_list.Special + 'Preferences/Yubikey' )
   223     {
   228     {
   224       load_component(['jquery', 'jquery-ui', 'expander']);
   229       load_component(['jquery', 'jquery-ui', 'expander']);