From d82ea4b071706b41bf44c9f3639ff9bf24bd3eb0 Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Wed, 28 Nov 2012 14:05:30 -0700 Subject: [PATCH] Remove hacks for fakeapi testing --- public/css/main.css | 2 +- public/js/Explorer.js | 7 +------ public/view/body.hbs | 2 +- public/view/explorer.hbs | 1 + public/view/request.hbs | 2 +- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index 4ec182d..bc0b2d6 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -188,7 +188,7 @@ LI { UL { list-style: none; - margin: 0; + margin: 0 0 0 2em; padding: 0; } diff --git a/public/js/Explorer.js b/public/js/Explorer.js index dbdc386..0fd26bc 100644 --- a/public/js/Explorer.js +++ b/public/js/Explorer.js @@ -35,7 +35,7 @@ Explorer.prototype.rootColumn = function() id: schema.id, displayName: schema.displayName || schema.name || schema.id, links: { - 'self': schema.links.collection +'/index.json' // @TODO remove static site hack + 'self': schema.links.collection } }); } @@ -166,11 +166,6 @@ Explorer.prototype.followLink = function(event) var $col = this._findColumnByChild($tgt); var link = $tgt.data('self'); - if ( link.indexOf('.json') === -1 ) - link += '.json'; - - console.log('followLink:', link); - this.removeColumns($col); var $newColumn = this.addPlaceholder(); this._api.ajax('GET', link, function(err,res) { diff --git a/public/view/body.hbs b/public/view/body.hbs index 398cb88..ea153a5 100644 --- a/public/view/body.hbs +++ b/public/view/body.hbs @@ -7,7 +7,7 @@ Sort Pagination - {{! Explorer View
}} + Explorer View
{{#if docs}} Documentation
{{/if}} diff --git a/public/view/explorer.hbs b/public/view/explorer.hbs index 2c83b87..600adab 100644 --- a/public/view/explorer.hbs +++ b/public/view/explorer.hbs @@ -1,4 +1,5 @@