From b53cc13e1f083beb00ddbe869dfbec8fdacbde53 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 7 May 2014 13:19:54 +0100 Subject: [PATCH] Re-indent. --- src/mkws-widget-categories.js | 56 ++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/mkws-widget-categories.js b/src/mkws-widget-categories.js index 6ce09fe..e9e004a 100644 --- a/src/mkws-widget-categories.js +++ b/src/mkws-widget-categories.js @@ -1,35 +1,35 @@ mkws.registerWidgetType('Categories', function() { - var that = this; + var that = this; - if (!this.config.use_service_proxy) { - alert("can't use categories widget without Service Proxy"); - return; - } + if (!this.config.use_service_proxy) { + alert("can't use categories widget without Service Proxy"); + return; + } - this.team.queue("authenticated").subscribe(function(authName, realm) { - var req = new pzHttpRequest(that.config.pazpar2_url + "?command=categories", function(err) { - alert("HTTP call for categories failed: " + err) - }); + this.team.queue("authenticated").subscribe(function(authName, realm) { + var req = new pzHttpRequest(that.config.pazpar2_url + "?command=categories", function(err) { + alert("HTTP call for categories failed: " + err) + }); - req.get(null, function(data) { - if (!$.isXMLDoc(data)) { - alert("categories response document is not XML"); - return; - } - that.log("got categories: " + data); + req.get(null, function(data) { + if (!$.isXMLDoc(data)) { + alert("categories response document is not XML"); + return; + } + that.log("got categories: " + data); - var text = []; - text.push("Select category: "); - text.push(""); - $(that.node).html(text.join('')); - }); + var text = []; + text.push("Select category: "); + text.push(""); + $(that.node).html(text.join('')); }); + }); }); -- 1.7.10.4