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 98-115 Link Here
98
                label: __("Tomorrow")
98
                label: __("Tomorrow")
99
              }
99
              }
100
            ],
100
            ],
101
            label: "or",
101
            label: __("or"),
102
            onClick: (index, fp) => {
102
            onClick: (index, fp) => {
103
              let date;
103
              let date;
104
              switch (index) {
104
              switch (index) {
105
                case 0:
105
                case 0:
106
                  date = new Date(Date.now() - 24 * 60 * 60 * 1000);
106
                  date = new Date().fp_incr(-1);
107
                  break;
107
                  break;
108
                case 1:
108
                case 1:
109
                  date = new Date();
109
                  date = new Date();
110
                  break;
110
                  break;
111
                case 2:
111
                case 2:
112
                  date = new Date(Date.now() + 24 * 60 * 60 * 1000);
112
                  date = new Date().fp_incr(1);
113
                  break;
113
                  break;
114
              }
114
              }
115
              date.setHours(23, 59, 0, 0);
115
              date.setHours(23, 59, 0, 0);
116
- 

Return to bug 29478