sinatra-hexacta 1.7.8 → 1.7.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/extensions/date.rb +1 -1
- data/lib/sinatra/public/js/app.js +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4587ca3181eb451a3960b799cf333ca60765a5e51e16dc346511d1bdf985cbab
|
4
|
+
data.tar.gz: fc47b861237b1ec09fe4cf74212a0f4237a006a3d77a407d59922d5196e9bc9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee70d0bc863fe250171158654a7d2f2f35f45792df1485c42a64838cd65c9295e8f9e76f50b75ef48a54b5ae696f4e64fde6b7190c9c9ab2df18de2a52a7f849
|
7
|
+
data.tar.gz: 57b153fb80898c27dc0d125722dc2491904067b6e4f91a01e8420a3d8a9dc3b58ae0e04d7f207d4edea9cc10d0440738c0e6dc93c36134a335f9927bb8e34c55
|
@@ -35,7 +35,7 @@ class Date
|
|
35
35
|
|
36
36
|
def add_working_days(days=1)
|
37
37
|
new_date = self + days
|
38
|
-
while (new_date.wday % 7 == 0) or (new_date.wday % 7 == 6)
|
38
|
+
while (new_date.wday % 7 == 0) or (new_date.wday % 7 == 6) do
|
39
39
|
new_date += 1
|
40
40
|
end
|
41
41
|
new_date
|
@@ -337,7 +337,7 @@ function update_html_elements() {
|
|
337
337
|
|
338
338
|
if ($('.date-range')[0]) {
|
339
339
|
// to_data_source method is compliant with the calendar library used in holidays
|
340
|
-
$('.date-range').daterangepicker({
|
340
|
+
$('.date-range').not('.initialized').daterangepicker({
|
341
341
|
"parentEl" : $(this).id,
|
342
342
|
"autoApply": true,
|
343
343
|
"locale": {
|
@@ -355,6 +355,7 @@ function update_html_elements() {
|
|
355
355
|
},
|
356
356
|
opens: 'center'
|
357
357
|
});
|
358
|
+
$('.date-range').addClass('initialized');
|
358
359
|
}
|
359
360
|
|
360
361
|
/*
|
@@ -658,7 +659,7 @@ function buildFilterMap(offset) {
|
|
658
659
|
function advance_search(url,offset,format) {
|
659
660
|
filter_map = buildFilterMap(offset);
|
660
661
|
filter_map["format"] = format;
|
661
|
-
if (format != 'xls') {
|
662
|
+
if (format != 'xls' && !format.includes('reports')) {
|
662
663
|
window.location.href = url + "?" + encodeQueryData(filter_map);
|
663
664
|
} else {
|
664
665
|
window.open(
|