Project

General

Profile

0001-agenda-open-scheduled-closed-after-page-leaving.patch

Serghei Mihai, 19 September 2013 11:07 PM

Download (1.44 KB)

View differences:

Subject: [PATCH] agenda: open scheduled closed after page leaving

Closes #3636
 calebasse/static/js/calebasse.agenda.js | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)
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) {
488
-