Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Nov 5, 2023
1 parent ac48df8 commit 35702fb
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions inst/htmlwidgets/jstreer.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,32 +253,13 @@ HTMLWidgets.widget({
var $searchFields = $searchBoxesSelector;
var searchValues = {};
//create for each input a key value pair with the key in the name attribute of the input (also being the index of the column)
$searchFields.each(function(){
$searchFields.each(function() {
var field = $(this);
searchValues[field.attr("name")] = field.val();
});
//use the new searchColumn method
$el.jstree(true).searchColumn(searchValues);
});


/* var $div = $(gridSearchBoxes(el.id));
var $midWrapper = $el.closest(".jstree-grid-midwrapper");
$div.insertBefore($midWrapper);
var divSelector = "#" + el.id + "-searchFields";
//add search functionality to the input fields
$(divSelector + " input").keyup(function(e) {
//get all input fields
var inputFields = $(divSelector + " input");
var searchValues = {};
//create for each input a key value pair with the key in the name attribute of the input (also being the index of the column)
inputFields.each(function(){
var field = $(this);
searchValues[field.attr('name')] = field.val();
});
//use the new searchColumn method
$el.jstree(true).searchColumn(searchValues);
}); */
} else {
var $input = $(
"<input type='search' id='" +
Expand Down

0 comments on commit 35702fb

Please sign in to comment.