Save displayName of authenticated library, if any, as mkws.authName.
authorMike Taylor <mike@indexdata.com>
Wed, 26 Mar 2014 17:33:31 +0000 (17:33 +0000)
committerMike Taylor <mike@indexdata.com>
Wed, 26 Mar 2014 17:33:31 +0000 (17:33 +0000)
Part of MKWS-145 (Make a library-name widget).

src/mkws-core.js

index 7df143a..753ffed 100644 (file)
@@ -294,6 +294,8 @@ if (mkws_config == null || typeof mkws_config != 'object') {
 
            log("Service proxy auth successfully done");
            mkws.authenticated = true;
+           mkws.authName = $(data).find("displayName").text();
+           log("authName='" + mkws.authName + "'");
            runAutoSearches();
        });
     }