diff --git a/public/js/icinga/ui.js b/public/js/icinga/ui.js index 670a353a3..9bc35d23e 100644 --- a/public/js/icinga/ui.js +++ b/public/js/icinga/ui.js @@ -497,7 +497,7 @@ $target.contents().filter(function() { return this.nodeType === 3; }).remove(); // has three states? - var triState = $target.find('input[value="unchanged"]').size() > 0 ? 1 : 0; + var triState = $target.find('input[value="unchanged"]').length > 0 ? 1 : 0; // fetch current value from radiobuttons var value = $target.find('input:checked').first().val();