Skip to content

Commit 401c1c7

Browse files
committed
Merge pull request #18 from lustercr/master
fetchData Allow customize filter parameters.
2 parents a35a0b2 + 1276dc9 commit 401c1c7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

stream_table.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,12 @@
300300
};
301301

302302
_F.fetchData = function(){
303-
var _self = this, params = {q: this.last_search_text}
303+
var _self = this,
304+
params = this.opts.params || {};
305+
306+
if (!params['q']) {
307+
params['q'] = this.last_search_text;
308+
}
304309

305310
if (this.opts.fetch_data_limit) {
306311
params['limit'] = this.opts.fetch_data_limit;

0 commit comments

Comments
 (0)