summaryrefslogtreecommitdiffstats
path: root/apps/oauth2/js/setting-admin.js
blob: 53163be114837eeaec5930aa9cbcc7c428034649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
		}
	})

});