the_garage 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/garage/docs/console.js.coffee +3 -11
- data/lib/garage/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9f82e33e1a9c6bff9448ca2b49a8f38e0c8d355
|
4
|
+
data.tar.gz: 95809152a36fc6cbb47c908902a36026ffc72ada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17bdd17006908052bd2607c7636da5a782b6c05634c34b177a53826190a754767c255b1d2724ad78ee1be784311cbbc64bd790be5ed7626aa38b42f9599e28b1
|
7
|
+
data.tar.gz: 088f5c656a73d4cd575ee54013dc27ebaac68585381cef91576abc3e52476c33cb10c9092cbc369e51842c75b87dac24fea7cc72a4c9d0fda1bc8010027e9b3b
|
@@ -9,16 +9,6 @@ jQuery ()->
|
|
9
9
|
$.colorbox.close()
|
10
10
|
ev.preventDefault()
|
11
11
|
|
12
|
-
$("#oauth-dialog .authenticate").click (ev) ->
|
13
|
-
$("#oauth-dialog #return_to").val(window.location.pathname + window.location.search)
|
14
|
-
$("form#oauth-authenticate").submit()
|
15
|
-
ev.preventDefault()
|
16
|
-
|
17
|
-
$(".console .validate-token").click (ev) ->
|
18
|
-
$("#method").val('GET')
|
19
|
-
$("#location").val("/oauth/token/info")
|
20
|
-
$('.send-request').click()
|
21
|
-
|
22
12
|
buildAuthorizedUrl = (base, location, token) ->
|
23
13
|
url = base + location
|
24
14
|
if url.indexOf('?') > 0
|
@@ -72,7 +62,9 @@ jQuery ()->
|
|
72
62
|
dataType: 'json',
|
73
63
|
complete: ->
|
74
64
|
queryString = $.param({'location': $('#location').val(), 'method': $('#method').val()})
|
75
|
-
|
65
|
+
newFullpath = "#{location.pathname}?#{queryString}"
|
66
|
+
history.pushState('', '', newFullpath)
|
67
|
+
$("#oauth-dialog #return_to").val(newFullpath)
|
76
68
|
success: (data, textStatus, xhr) ->
|
77
69
|
$('#api-headers').text("#{xhr.status} #{xhr.statusText}\n" + xhr.getAllResponseHeaders())
|
78
70
|
$('#api-response').html buildHyperlinks(JSON.stringify(data, undefined, 2))
|
data/lib/garage/version.rb
CHANGED