Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixed search filters addition/deletion #375

Merged
merged 2 commits into from Nov 7, 2012
Jump to file or symbol
Failed to load files and symbols.
+4 −1
Split
View
@@ -453,7 +453,10 @@ $.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','true');
+ $(ruleDataInput).attr('disabled','true');
+ } //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);