File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 55
55
< input type ="hidden " name ="client_id " value ="{{client.client_id}} "/>
56
56
< input type ="hidden " name ="credentials " value ="{{credentials}} "/>
57
57
< input type ="submit " class ="submit " style ="background: #ccc;color:#555 " name ="no " value ="No, do not authorize {{ client.name }} ">
58
- < input type ="submit " class ="button " name ="yes " value ="Yes, authorize {{ client.name }} "> < br >
58
+ < input id =" authorize-ok " type ="submit " class ="button " name ="yes " value ="Yes, authorize {{ client.name }} "> < br >
59
59
{{lib.csrf_token()}}
60
60
</ form >
61
61
</ div >
62
62
</ div >
63
63
{% endblock %}
64
+
65
+ {% block extra_js %}
66
+ < script type ="text/javascript ">
67
+ $ ( function ( ) {
68
+ $ ( '#authorize-ok' ) . click ( function ( ) {
69
+ $ ( this ) . attr ( 'disabled' , 'disabled' ) ;
70
+ $ ( this ) . attr ( 'value' , 'Authorizing {{ client.name }}...' ) ;
71
+ $ ( this ) . closest ( 'form' ) . submit ( ) ;
72
+ } ) ;
73
+ } )
74
+ </ script >
75
+ {% endblock %}
You can’t perform that action at this time.
0 commit comments