From 518f69e4da50342fd67d1428452fb3e8760db1a3 Mon Sep 17 00:00:00 2001 From: kartikeyakirar Date: Wed, 11 Oct 2023 13:50:45 +0000 Subject: [PATCH] deploy: 3d16439ea447c4a0aee910270aeab6ebe9dc61de --- main/coverage-report/index.html | 14 +++++++------- .../datatables.js | 8 +++++--- 2 files changed, 12 insertions(+), 10 deletions(-) rename main/coverage-report/lib/{datatables-binding-0.28 => datatables-binding-0.30}/datatables.js (99%) diff --git a/main/coverage-report/index.html b/main/coverage-report/index.html index 34b0f201..c0864abd 100644 --- a/main/coverage-report/index.html +++ b/main/coverage-report/index.html @@ -5,7 +5,7 @@ - + @@ -106,8 +106,8 @@

teal.modules.hermes coverage - 26.54%

-
- +
+
@@ -30337,21 +30337,21 @@

teal.modules.hermes coverage - 26.54%

41 - 14x + 16x
  assert_flag(null.ok)
42 - 13x + 15x
  ok <- (null.ok && test_null(x)) || test_class(x, "shiny.tag")
43 - 13x + 15x
  if (!ok) {
@@ -30372,7 +30372,7 @@

teal.modules.hermes coverage - 26.54%

46 - 12x + 14x
  return(TRUE)
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 aee8ab54..d968d8be 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();