diff --git a/main/coverage-report/index.html b/main/coverage-report/index.html index eb943d4f3a..4127350522 100644 --- a/main/coverage-report/index.html +++ b/main/coverage-report/index.html @@ -5,7 +5,7 @@ - + @@ -106,8 +106,8 @@

teal coverage - 72.50%

-
- +
+
diff --git a/main/coverage-report/lib/datatables-binding-0.28/datatables.js b/main/coverage-report/lib/datatables-binding-0.30/datatables.js similarity index 99% rename from main/coverage-report/lib/datatables-binding-0.28/datatables.js rename to main/coverage-report/lib/datatables-binding-0.30/datatables.js index aee8ab54ae..d968d8be0d 100644 --- a/main/coverage-report/lib/datatables-binding-0.28/datatables.js +++ b/main/coverage-report/lib/datatables-binding-0.30/datatables.js @@ -2,7 +2,7 @@ // some helper functions: using a global object DTWidget so that it can be used // in JS() code, e.g. datatable(options = list(foo = JS('code'))); unlike R's -// dynamic scoping, when 'code' is eval()'ed, JavaScript does not know objects +// dynamic scoping, when 'code' is eval'ed, JavaScript does not know objects // from the "parent frame", e.g. JS('DTWidget') will not work unless it was made // a global object var DTWidget = {}; @@ -493,7 +493,9 @@ HTMLWidgets.widget({ $input.parent().hide(); $x.show().trigger('show'); filter[0].selectize.focus(); }, input: function() { - if ($input.val() === '') filter[0].selectize.setValue([]); + var v1 = JSON.stringify(filter[0].selectize.getValue()), v2 = $input.val(); + if (v1 === '[]') v1 = ''; + if (v1 !== v2) filter[0].selectize.setValue(v2 === '' ? [] : JSON.parse(v2)); } }); var $input2 = $x.children('select'); @@ -1398,7 +1400,7 @@ HTMLWidgets.widget({ console.log('The search keyword for column ' + i + ' is undefined') return; } - $(td).find('input').first().val(v); + $(td).find('input').first().val(v).trigger('input'); searchColumn(i, v); }); table.draw();