Revision 003d8fcf snf-astakos-app/astakos/im/static/im/js/auth_methods.js
b/snf-astakos-app/astakos/im/static/im/js/auth_methods.js | ||
---|---|---|
5 | 5 |
e.preventDefault(e); |
6 | 6 |
$(this).parent('li').addClass('remove'); |
7 | 7 |
$(this).siblings('.dialog-wrap').slideDown('slow'); |
8 |
}) |
|
8 |
});
|
|
9 | 9 |
|
10 | 10 |
$('.auth_methods .no').click( function(e) { |
11 | 11 |
e.preventDefault(e); |
12 | 12 |
$(this).parents('li').removeClass('remove'); |
13 | 13 |
$(this).parents('.dialog-wrap').slideUp('slow'); |
14 |
}) |
|
14 |
}); |
|
15 |
|
|
15 | 16 |
$('.auth_methods .canremove').hover( |
16 | 17 |
function () { |
17 | 18 |
$(this).siblings('span.details').hide(); |
... | ... | |
71 | 72 |
|
72 | 73 |
|
73 | 74 |
|
74 |
if ($('input#id_change_password:checkbox').attr('checked')) {
|
|
75 |
if ($('input#id_change_email:checkbox').attr('checked')) {
|
|
75 | 76 |
newEmailDiv.show(); |
76 |
|
|
77 | 77 |
$('.form-following #email-span').parents('.form-row').addClass('open'); |
78 | 78 |
}; |
79 | 79 |
|
... | ... | |
121 | 121 |
// refresh token |
122 | 122 |
authTokenDiv.addClass('refresh'); |
123 | 123 |
$('#token-span').click(function(e){ |
124 |
$(this).parents('.form-row').toggleClass('open'); |
|
125 |
|
|
126 |
var position = $(this).parents('.form-row').position(); |
|
127 |
$('#token-confirm').css('top', position.top - 10); |
|
128 |
$('#token-confirm').toggle(); |
|
129 |
return false; |
|
130 |
}); |
|
131 |
|
|
132 |
$('#token-confirm').click(function(e){ |
|
133 |
e.preventDefault(); |
|
124 | 134 |
renewToken(); |
135 |
$(this).hide(); |
|
125 | 136 |
}) |
126 | 137 |
|
127 | 138 |
|
Also available in: Unified diff