Skip to content

Commit 94ae1a2

Browse files
committed
small change
1 parent 1d80f76 commit 94ae1a2

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

css/jquery.filters.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@
88

99
.gray{
1010
color: lightgray;
11+
}
12+
13+
14+
.filters-date-range-picker{
15+
width: 170px;
16+
margin-left: 5px;
17+
1118
}

jquery.filters.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
}
180180

181181
return '<div id="daterange" style="float: left; margin: 5px 0;" class="selectbox active">' +
182-
'<input type="text" data-time-picker="true" value="'+value+'" name="'+dateRangeName+'" style="width: 170px; margin-left: 5px;">' +
182+
'<input type="text" data-time-picker="true" value="'+value+'" name="'+dateRangeName+'" class="filters-date-range-picker">' +
183183
'</div>';
184184
}
185185

@@ -971,9 +971,11 @@
971971
humanValue = decodeURIComponent(humanValue);
972972
// possible bug here
973973
humanValue = humanValue.replace("/", "");
974-
selectedValue = selectedData.options[humanValue].value;
975-
dataToPush = buildElementData({name: humanValue, value: selectedValue}, rawObject);
976-
filterModal.selectedFilterParameters[key].values.push(dataToPush)
974+
if (selectedData.options[humanValue]) {
975+
selectedValue = selectedData.options[humanValue].value;
976+
dataToPush = buildElementData({name: humanValue, value: selectedValue}, rawObject);
977+
filterModal.selectedFilterParameters[key].values.push(dataToPush)
978+
}
977979
});
978980
}
979981
})

0 commit comments

Comments
 (0)