Revision 531fca05 snf-astakos-app/astakos/im/static/im/js/common.js
b/snf-astakos-app/astakos/im/static/im/js/common.js | ||
---|---|---|
241 | 241 |
|
242 | 242 |
|
243 | 243 |
|
244 |
$('.auth_methods').find('li>a').click(function(e){
|
|
245 |
e.preventDefault();
|
|
246 |
$(this).siblings('.wrap').toggle('slow');
|
|
247 |
$(this).toggleClass('up');
|
|
248 |
});
|
|
249 |
|
|
250 |
$('.auth_methods a.red').click(function(e){
|
|
251 |
e.preventDefault();
|
|
252 |
$(this).siblings('.dialog').show();
|
|
253 |
})
|
|
254 |
|
|
244 |
$('.auth_methods .canremove').click( function(e) {
|
|
245 |
e.preventDefault(e);
|
|
246 |
$(this).addClass('remove');
|
|
247 |
$(this).siblings('.dialog-wrap').slideDown('slow');
|
|
248 |
})
|
|
249 |
|
|
250 |
$('.auth_methods .no').click( function(e) {
|
|
251 |
e.preventDefault(e);
|
|
252 |
$(this).parents('.dialog-wrap').siblings('.canremove').removeClass('remove');
|
|
253 |
$(this).parents('.dialog-wrap').slideUp('slow');
|
|
254 |
}) |
|
255 | 255 |
|
256 |
$('.auth_methods .dialog .no').click( function(e){ |
|
257 |
e.preventDefault(); |
|
258 |
console.log($(this)); |
|
259 |
$(this).parents('.dialog').hide(); |
|
260 |
}) |
|
261 | 256 |
|
262 | 257 |
setTimeout(function() { |
263 | 258 |
if ($('input#id_username').val()){ |
Also available in: Unified diff