Revision 792c2f3b snf-astakos-app/astakos/im/static/im/js/common.js
b/snf-astakos-app/astakos/im/static/im/js/common.js | ||
---|---|---|
288 | 288 |
$('.hidden-submit .form-row.submit').show(500); |
289 | 289 |
}); |
290 | 290 |
|
291 |
$('.auth_methods').find('li>a').click(function(e){ |
|
292 |
e.preventDefault(); |
|
293 |
$(this).siblings('.wrap').toggle('slow'); |
|
294 |
$(this).toggleClass('up'); |
|
295 |
}); |
|
296 |
|
|
297 |
$('.auth_methods a.red').click(function(e){ |
|
298 |
e.preventDefault(); |
|
299 |
$(this).siblings('.dialog').show(); |
|
300 |
}) |
|
301 |
|
|
302 |
|
|
303 |
$('.auth_methods .dialog .no').click( function(e){ |
|
304 |
e.preventDefault(); |
|
305 |
console.log($(this)); |
|
306 |
$(this).parents('.dialog').hide(); |
|
307 |
}) |
|
308 |
|
|
309 |
setTimeout(function() { |
|
310 |
if ($('input#id_username').val()){ |
|
311 |
$('input#id_username').siblings('label').css('opacity','0'); |
|
312 |
}; |
|
313 |
if ($('input#id_password').val()){ |
|
314 |
$('input#id_password').siblings('label').css('opacity','0'); |
|
315 |
} |
|
316 |
}, 100); |
|
317 |
|
|
318 |
|
|
291 | 319 |
}); |
292 | 320 |
|
293 | 321 |
$(window).resize(function() { |
Also available in: Unified diff