summaryrefslogtreecommitdiffstats
path: root/apps/oauth2/js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/oauth2/js')
-rw-r--r--apps/oauth2/js/setting-admin.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/oauth2/js/setting-admin.js b/apps/oauth2/js/setting-admin.js
new file mode 100644
index 00000000000..53163be1148
--- /dev/null
+++ b/apps/oauth2/js/setting-admin.js
@@ -0,0 +1,15 @@
+$(document).ready(function () {
+
+ $('.show-oauth-credentials').click(function() {
+ var row = $(this).parent();
+ var code = $(row).find('code');
+ if(code.text() === '****') {
+ code.text(row.data('value'));
+ $(this).css('opacity', 0.9);
+ } else {
+ code.text('****');
+ $(this).css('opacity', 0.3);
+ }
+ })
+
+});