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

});