Date filter added income, expense, banking
This commit is contained in:
7
public/css/app.css
vendored
7
public/css/app.css
vendored
@ -46,6 +46,7 @@
|
||||
|
||||
.btn-filter {
|
||||
margin-bottom: 1px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.setting-buttons {
|
||||
@ -729,3 +730,9 @@ input[type="number"] {
|
||||
#role-permissions .nav-tabs-custom .tab-content .form-group.col-md-12 .col-md-3 .input-checkbox {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.btn-filter.date-range-btn {
|
||||
background-color: inherit;
|
||||
border-radius: 0px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
19
public/js/app.js
vendored
19
public/js/app.js
vendored
@ -291,3 +291,22 @@ $(document).on('change', '.input-group-recurring #recurring_frequency', function
|
||||
recurring_count.removeClass('hidden');
|
||||
}
|
||||
});
|
||||
|
||||
function convertDateFormat(date, split_character) {
|
||||
var result = [];
|
||||
var formats = {
|
||||
'd': 'DD',
|
||||
'M': 'MMM',
|
||||
'Y': 'YYYY',
|
||||
'F': 'MMMM',
|
||||
'm': 'MM'
|
||||
};
|
||||
|
||||
dates = date.split(split_character);
|
||||
|
||||
dates.forEach(function(value) {
|
||||
result.push(formats[value]);
|
||||
});
|
||||
|
||||
return result.join(split_character);
|
||||
}
|
||||
|
Reference in New Issue
Block a user