Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
authorMike Taylor <mike@indexdata.com>
Mon, 11 Aug 2014 08:07:23 +0000 (09:07 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 11 Aug 2014 08:07:23 +0000 (09:07 +0100)
src/mkws-team.js
src/mkws-widget-categories.js

index a2dd506..9abed73 100644 (file)
@@ -293,7 +293,7 @@ function team($, teamName) {
     if (maxrecs) params.maxrecs = maxrecs;
     if (torusquery) {
       if (!mkws.config.use_service_proxy)
-        alert("can't narrow search by torusquery when Service Proxy is not in use");
+        alert("can't narrow search by torusquery when not authenticated");
       params.torusquery = torusquery;
     }
 
index a11e522..339e28b 100644 (file)
@@ -1,8 +1,8 @@
 mkws.registerWidgetType('Categories', function() {
   var that = this;
 
-  if (!this.config.use_service_proxy) {
-    alert("can't use categories widget without Service Proxy");
+  if (!mkws.authenticated) {
+    alert("can't use categories widget when not authenticated");
     return;
   }