9210bd36 by Zelig

网查删除多余代码

1 parent 6c920149
...@@ -102,25 +102,6 @@ ...@@ -102,25 +102,6 @@
102 ] 102 ]
103 }); 103 });
104 104
105 $.fn.dataTableExt.afnFiltering.push(
106 function (oSettings, aData, iDataIndex) {
107 var min = document.getElementById('min').value;
108 var max = document.getElementById('max').value;
109 var iDateCol = 12;
110
111 var dateMin = new Date(aData[iDateCol]);
112 var dateMax = new Date(aData[iDateCol]);
113
114 if (min === '' && max === '')
115 return true;
116 else if (new Date(min).getTime() <= dateMin.getTime() && max === '')
117 return true;
118 else if (new Date(min).getTime() <= dateMin.getTime() && new Date(max).getTime() >= dateMax.getTime())
119 return true;
120 return false;
121 }
122 );
123
124 $('.table_search').on('keyup', function () { 105 $('.table_search').on('keyup', function () {
125 search = $(this).val(); 106 search = $(this).val();
126 column = $(this).attr('column'); 107 column = $(this).attr('column');
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!