app/assets/javascripts/garage/docs/console.js.coffee in the_garage-2.2.0 vs app/assets/javascripts/garage/docs/console.js.coffee in the_garage-2.3.0
- old
+ new
@@ -86,5 +86,14 @@
if $('.oauth-callback-redirect').size() > 0
token = window.location.hash.match(/\#access_token=(\w+)/)[1]
if token
$('#access_token').val(token)
$('form.oauth-callback-redirect').submit()
+
+ $('#oauth-dialog .token-scope-check-all').click (ev) ->
+ $('.token-scope-checkbox').prop('checked', this.checked)
+
+ $('#oauth-dialog .token-scope-checkbox').click (ev) ->
+ if $('.token-scope-checkbox:not(:checked)').length == 0
+ $('.token-scope-check-all').prop('checked', true)
+ else if not this.checked
+ $('.token-scope-check-all').prop('checked', false)