| @@ -62,8 +62,9 @@ | ||
| 62 | 62 | |
| 63 | 63 | betterInput.style.display = ''; |
| 64 | 64 | valueInput.style.display = 'none'; |
| 65 | 65 | qualifierInput.style.display = ''; |
| 66 | + qualifierInput.querySelector('option[value="contains"]').style.display = 'none'; | |
| 66 | 67 | if (tnLoggedIn.parentNode) { |
| 67 | 68 | tnLoggedIn.parentNode.removeChild(tnLoggedIn); |
| 68 | 69 | } |
| 69 | 70 | |
| @@ -106,8 +107,9 @@ | ||
| 106 | 107 | }); |
| 107 | 108 | break; |
| 108 | 109 | |
| 109 | 110 | case 'is_url': |
| 111 | + qualifierInput.querySelector('option[value="contains"]').style.display = ''; | |
| 110 | 112 | betterInput.placeholder = i18n.enterCommaSeparatedRelativeUrls; |
| 111 | 113 | break; |
| 112 | 114 | |
| 113 | 115 | case 'is_post_in_category': |
| @@ -128,8 +130,12 @@ | ||
| 128 | 130 | betterInput.style.display = 'none'; |
| 129 | 131 | valueInput.parentNode.insertBefore(tnLoggedIn, valueInput.nextSibling); |
| 130 | 132 | break; |
| 131 | 133 | |
| 134 | + case 'is_referer': | |
| 135 | + qualifierInput.querySelector('option[value="contains"]').style.display = ''; | |
| 136 | + break; | |
| 137 | + | |
| 132 | 138 | } |
| 133 | 139 | } |
| 134 | 140 | |
| 135 | 141 | function addRuleFields() { |
| @@ -145,5 +151,5 @@ | ||
| 145 | 151 | 'Designer': Designer, |
| 146 | 152 | 'Option': Option, |
| 147 | 153 | 'events': events |
| 148 | 154 | }; |
| 149 | -})(); | |
| 155 | +})(); | |