View | Details | Raw Unified | Return to bug 29478
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss (+33 lines)
Lines 963-965 span.flatpickr-weekday { Link Here
963
.flatpickr_wrapper {
963
.flatpickr_wrapper {
964
    white-space: nowrap;
964
    white-space: nowrap;
965
}
965
}
966
967
/* Shortcut buttons plugin */
968
969
.shortcut-buttons-flatpickr-wrapper {
970
    display: flex;
971
    justify-content: center;
972
    padding: 5px;
973
974
    .shortcut-buttons-flatpickr-label {
975
        align-content: center;
976
        display: flex;
977
        justify-content: center;
978
        flex-direction: column;
979
        padding: 0 5px;
980
    }
981
982
    .shortcut-buttons-flatpickr-buttons {
983
        display: flex;
984
        flex-flow: row wrap;
985
986
        .shortcut-buttons-flatpickr-button {
987
            background: transparent none;
988
            border: 0;
989
            color: #004D99;
990
            font-size: 90%;
991
            margin: 2px;
992
993
            &:hover {
994
                color: #538200;
995
            }
996
        }
997
    }
998
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc (-4 / +3 lines)
Lines 91-108 Link Here
91
                label: __("Tomorrow")
91
                label: __("Tomorrow")
92
              }
92
              }
93
            ],
93
            ],
94
            label: "or",
94
            label: __("or"),
95
            onClick: (index, fp) => {
95
            onClick: (index, fp) => {
96
              let date;
96
              let date;
97
              switch (index) {
97
              switch (index) {
98
                case 0:
98
                case 0:
99
                  date = new Date(Date.now() - 24 * 60 * 60 * 1000);
99
                  date = new Date().fp_incr(-1);
100
                  break;
100
                  break;
101
                case 1:
101
                case 1:
102
                  date = new Date();
102
                  date = new Date();
103
                  break;
103
                  break;
104
                case 2:
104
                case 2:
105
                  date = new Date(Date.now() + 24 * 60 * 60 * 1000);
105
                  date = new Date().fp_incr(1);
106
                  break;
106
                  break;
107
              }
107
              }
108
              date.setHours(23, 59, 0, 0);
108
              date.setHours(23, 59, 0, 0);
109
- 

Return to bug 29478