1
$(document).ready(function(){
2
$('#passwordChanger').hide();
4
/* Blurs body and opens password changer */
5
$('li[name="changePwd"]').click(function(e){
7
$('#popoutMenu').stop(false, false).slideUp(300);
9
$('body *').not('#passwordChanger, #passwordChanger *').animate({
11
$('#passwordChanger').fadeIn(300);
12
$('#passwordChanger').css('z-index', 3000);
15
$('body').click(function(e){
16
$('#formContainer').fadeOut(300);
17
$('#passwordChanger').fadeOut(300);
20
$('#changePassword')[0].reset();
23
$('#passwordChanger').click(function(e){
27
$('#formContainer').click(function(e){
31
$('#popoutLink').click(function(e){
33
$('#popoutMenu').stop(false, true).slideDown(300);
36
// FIXA SÅ MENYN INTE KOMMER UPP IGEN
38
else if(popoutMenu==1){
39
$('#popoutMenu').stop(false, false).slideUp(300);
45
$('#loginLink').click(function(e){
46
var target = $('#formContainer');
47
if(target.is(":hidden")){
49
$('#username').focus();
59
window.onkeyup = function(event){
60
if(event.keyCode==27){
61
$('#formContainer').fadeOut(300);
62
$('#passwordChanger').fadeOut(300);
65
$('#changePassword')[0].reset();
69
/* Closing password changer and reactivates body */
70
function cancelPasswordChange(){
71
$('#passwordChanger').fadeOut(300);
74
$('#changePassword')[0].reset();
b'\\ No newline at end of file'