Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed search filters addition/deletion

Issue
1. Select not null/is null from filter
2. Try adding another filter.
3. Notice the fields against not null/is null filter are not readonly anymore.

This fix maintains the readonly state for search ops involving null.
  • Loading branch information...
commit 2979caa536ba188031a93c3b8dd9b8caa4a43ff0 1 parent 7199172
@rohitggarg authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  js/grid.filter.js
View
3  js/grid.filter.js
@@ -453,7 +453,8 @@ $.fn.jqFilter = function( arg ) {
}
}
var ruleDataInput = $.jgrid.createEl(cm.inputtype,cm.searchoptions, rule.data, true, that.p.ajaxSelectOptions, true);
-
+ if(rule.op == 'nu' || rule.op == 'nn')
+ $(ruleDataInput).attr('readonly','readonly'); //retain the state of disabled text fields in case of null ops
// dropdown for: choosing operator
var ruleOperatorSelect = $("<select class='selectopts'></select>");
ruleOperatorTd.append(ruleOperatorSelect);
Please sign in to comment.
Something went wrong with that request. Please try again.