From 790334809319b31d6e7dd9ba9ef1fa01354b0a84 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 30 Mar 2014 18:32:19 -0400 Subject: [PATCH] show method call url as a link tag --- resources/public/js/site.js | 3 ++- resources/views/methods/text.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/public/js/site.js b/resources/public/js/site.js index e4dd8fc..2fd9277 100644 --- a/resources/public/js/site.js +++ b/resources/public/js/site.js @@ -39,6 +39,7 @@ $(document).ready(function() { var htmlOutputContainer = form.siblings('div.htmlOutputContainer'); var errorContainer = form.siblings('div.methodErrorContainer'); var methodCallDisplay = form.siblings('div.methodCallDisplay'); + var methodCallLink = methodCallDisplay.find('a.url'); var apiEndpoint = form.data('api-endpoint'); @@ -50,7 +51,7 @@ $(document).ready(function() { fieldset.attr('disabled', true); var url = context + 'api' + apiEndpoint + '?' + jQuery.param(params); - methodCallDisplay.find('.url').text('GET ' + url); + methodCallLink.text('GET ' + url).attr('href', url); methodCallDisplay.show(); $.get(url) diff --git a/resources/views/methods/text.html b/resources/views/methods/text.html index 0434dd2..22f8224 100644 --- a/resources/views/methods/text.html +++ b/resources/views/methods/text.html @@ -36,7 +36,7 @@