Subversion Repositories wimsdev

Rev

Rev 13400 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13400 Rev 13573
Line 9... Line 9...
9
  console.log("session close in "+swarn_sessionAlive+"s...");
9
  console.log("session close in "+swarn_sessionAlive+"s...");
10
  setTimeout(function() {
10
  setTimeout(function() {
11
    console.log("session close in "+swarn_notifyBefore+"s...");
11
    console.log("session close in "+swarn_notifyBefore+"s...");
12
    $("#sess_dialog1").dialog({
12
    $("#sess_dialog1").dialog({
13
      autoOpen: true,
13
      autoOpen: true,
14
      hide: 'fold',
14
      hide: "fold",
15
      show: 'fade',
15
      show: "fade",
16
      modal: true,
16
      modal: true,
17
      open: function(event, ui) {
17
      open: function(event, ui) {
18
          // On décompte les swarn_notifyBefore secondes restantes
18
        // On décompte les swarn_notifyBefore secondes restantes
19
          Timer= setTimeout("swarn_clock(1000)",1000);
19
        Timer= setTimeout("swarn_clock(1000)",1000);
20
      },
20
      },
21
    });
21
    });
22
  }, (swarn_sessionAlive - swarn_notifyBefore) * 1000);
22
  }, (swarn_sessionAlive - swarn_notifyBefore) * 1000);
23
});
23
});
24
 
24
 
Line 37... Line 37...
37
  }
37
  }
38
  document.getElementById("js_session_timer").innerHTML=swarn_rtick;
38
  document.getElementById("js_session_timer").innerHTML=swarn_rtick;
39
  swarn_rtick=swarn_notifyBefore-swarn_tempo(swarn_enterDate);
39
  swarn_rtick=swarn_notifyBefore-swarn_tempo(swarn_enterDate);
40
  if(swarn_rtick<0){
40
  if(swarn_rtick<0){
41
    swarn_rtick=0;
41
    swarn_rtick=0;
42
    $("#sess_dialog1").dialog('close')
42
    $("#sess_dialog1").dialog("close")
43
    $("#sess_dialog2").dialog({
43
    $("#sess_dialog2").dialog({
44
      autoOpen: true,
44
      autoOpen: true,
45
      modal: true,
45
      modal: true,
46
      show: {effect: 'bounce', duration: 350, /* SPECIF ARGUMENT */ times: 3}
46
      show: {effect: "bounce", duration: 350, /* SPECIF ARGUMENT */ times: 3}
47
    });
47
    });
48
 
48
 
49
  }else{
49
  }else{
50
    Timer= setTimeout("swarn_clock(1000)",1000);
50
    Timer= setTimeout("swarn_clock(1000)",1000);
51
  }
51
  }