Whoops! That load_component was needed in prefs page
authorDan
Tue, 17 Mar 2009 12:13:32 -0400
changeset 12 6faa838e4433
parent 11 794e7b1a97e7
child 14 800df1e3c69a
Whoops! That load_component was needed in prefs page
plugins/yubikey/yubikey.js
--- a/plugins/yubikey/yubikey.js	Tue Mar 17 00:25:50 2009 -0400
+++ b/plugins/yubikey/yubikey.js	Tue Mar 17 12:13:32 2009 -0400
@@ -233,6 +233,10 @@
   {
     attachHook('login_build_form', 'yk_login_dlg_hook(table);');
     attachHook('login_build_userinfo', 'if ( window.yubikey_otp_current ) userinfo.yubikey_otp = window.yubikey_otp_current;');
+    if ( title == namespace_list.Special + 'Preferences/Yubikey' )
+    {
+      load_component(['jquery', 'jquery-ui', 'expander']);
+    }
   });
 
 function yk_login_dlg_hook(table)