Project

General

Profile

« Previous | Next » 

Revision df3214b7

Added by Serghei Mihai over 10 years ago

agenda: open scheduled closed after page leaving

Closes #3636

View differences:

calebasse/static/js/calebasse.agenda.js
467 467
          });
468 468

  
469 469
          $('a.tab').click(function() {
470
              $.cookie('active-worker-agenda', $(this).data('id'), { path: COOKIE_PATH });
470
              $.cookie('active-worker-agenda', $(this).data('id'),  { path: COOKIE_PATH });
471 471
          });
472

  
473
          if ($.cookie('agenda-worker-tabs')) {
474
              $.each($.cookie('agenda-worker-tabs'), function (i, worker_selector) {
475
                  toggle_worker('#' + worker_selector);
476
              });
477
              if ($.cookie('active-worker-agenda'))
478
              {
479
                  var target = $('#link-tab-worker-' + $.cookie('active-worker-agenda'));
480
                  if (target.is(':visible')) {
481
                      target.click();
482
                  }
483
              }
484
          }
485 472
      }
486 473

  
487 474
      if ($('.ressource-item').length) {

Also available in: Unified diff