Skip to content

Commit

Permalink
added style_class to date filter
Browse files Browse the repository at this point in the history
  • Loading branch information
vedmack committed Jun 20, 2018
1 parent 552d1e5 commit 1206827
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions ChangeLog.markdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Yet Another DataTables Column Filter (yadcf) Change-log




## 0.9.4 is in beta (grab latest stable from https://github.com/vedmack/yadcf/releases)

* Misc bug fixed issues:
https://github.com/vedmack/yadcf/issues/469 - Cannot apply style_class on date filter

## 0.9.3

* Added support for col reorder in range filters - https://github.com/vedmack/yadcf/issues/429
Expand Down
4 changes: 2 additions & 2 deletions src/jquery.dataTables.yadcf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Yet Another DataTables Column Filter - (yadcf)
*
* File: jquery.dataTables.yadcf.js
* Version: 0.9.3.beta.21 (grab latest stable from https://github.com/vedmack/yadcf/releases)
* Version: 0.9.4.beta.1
*
* Author: Daniel Reznick
* Info: https://github.com/vedmack/yadcf
Expand Down Expand Up @@ -1880,7 +1880,7 @@ if (!Object.entries) {
filterActionStr = '';
}

$(filter_selector_string).append("<input onkeydown=\"yadcf.preventDefaultForEnter(event);\" placeholder=\"" + filter_default_label + "\" id=\"" + dateId + "\" class=\"yadcf-filter-date\" " + filterActionStr + "></input>");
$(filter_selector_string).append("<input onkeydown=\"yadcf.preventDefaultForEnter(event);\" placeholder=\"" + filter_default_label + "\" id=\"" + dateId + "\" class=\"yadcf-filter-date " + columnObj.style_class + "\" " + filterActionStr + "></input>");

if (filter_reset_button_text !== false) {
$(filter_selector_string_tmp).append('<button type="button" id="' + dateId + '-reset" ' + 'onmousedown="yadcf.stopPropagation(event);" ' +
Expand Down

0 comments on commit 1206827

Please sign in to comment.