From: Mike Taylor Date: Fri, 22 May 2015 10:53:21 +0000 (+0100) Subject: Part of ACREP-35. X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=175dc6dcde5b81f6fb65d83a605355917a43edf5;p=mkws-moved-to-github.git Part of ACREP-35. From the "categories" widget, remove the unnecessary and harmful check that authentication has been completed. Of course it generally has NOT at the time the widget is created, resulting in an assertion-failure. But this is unnecessary anyway, because the body of the widget's code is in any case run as a callback when authentication is complete. --- diff --git a/src/mkws-widget-categories.js b/src/mkws-widget-categories.js index 61abb4e..8b2b00f 100644 --- a/src/mkws-widget-categories.js +++ b/src/mkws-widget-categories.js @@ -1,11 +1,6 @@ mkws.registerWidgetType('categories', function() { var that = this; - if (!mkws.authenticated) { - alert("can't use categories widget when not authenticated"); - return; - } - this.team.queue("authenticated").subscribe(function(authName, realm) { var req = new pzHttpRequest(mkws.pazpar2_url() + "?command=categories", function(err) { alert("HTTP call for categories failed: " + err)