Projet

Général

Profil

0001-fixup.patch

Frédéric Péters, 13 juin 2022 22:43

Télécharger (1,77 ko)

Voir les différences:

Subject: [PATCH] fixup

 chrono/manager/static/css/style.scss       |  2 --
 chrono/manager/static/js/chrono.manager.js | 14 ++++++--------
 2 files changed, 6 insertions(+), 10 deletions(-)
chrono/manager/static/css/style.scss
58 58
.timeperiods {
59 59
	display: flex;
60 60
	flex-wrap: wrap;
61
	margin-right: -10px;
62
	margin-bottom: -10px;
63 61
}
64 62

  
65 63
.timeperiods .timeperiod {
chrono/manager/static/js/chrono.manager.js
49 49
    })
50 50
  }
51 51

  
52
  window.addEventListener('DOMContentLoaded', function() {
53
    /* focus tab from #open:<tab slug> anchor, to point to open panel */
54
    if (document.location.hash && document.location.hash.indexOf('#open:') == 0) {
55
      const $tab_button = $('#tab-' + document.location.hash.substring(6) + '[role=tab]');
56
      if ($tab_button.length) {
57
        $('.pk-tabs')[0].tabs.selectTab($tab_button[0]);
58
      }
52
  /* focus tab from #open:<tab slug> anchor, to point to open panel */
53
  if (document.location.hash && document.location.hash.indexOf('#open:') == 0) {
54
    const $tab_button = $('#tab-' + document.location.hash.substring(6) + '[role=tab]');
55
    if ($tab_button.length) {
56
      $('.pk-tabs')[0].tabs.selectTab($tab_button[0]);
59 57
    }
60
  });
58
  }
61 59
});
62
-