MCPcopy Create free account
hub / github.com/breck7/scroll / searchFn

Function searchFn

external/.datatables.js:12202–12221  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

12200 __searchCounter++
12201
12202 var searchFn = function (event) {
12203 var val = this.value
12204
12205 if (previousSearch.return && event.key !== "Enter") {
12206 return
12207 }
12208
12209 /* Now do the filter */
12210 if (val != previousSearch.search) {
12211 _fnProcessingRun(settings, opts.processing, function () {
12212 previousSearch.search = val
12213
12214 _fnFilterComplete(settings, previousSearch)
12215
12216 // Need to redraw, without resorting
12217 settings._iDisplayStart = 0
12218 _fnDraw(settings)
12219 })
12220 }
12221 }
12222
12223 var searchDelay = settings.searchDelay !== null ? settings.searchDelay : 0
12224

Callers

nothing calls this directly

Calls 3

_fnProcessingRunFunction · 0.85
_fnFilterCompleteFunction · 0.85
_fnDrawFunction · 0.85

Tested by

no test coverage detected