Procházet zdrojové kódy

Fixes #3914: Interface filter field when unauthenticated

Saria Hajjar před 6 roky
rodič
revize
9d0da0f45a

+ 8 - 0
docs/release-notes/version-2.6.md

@@ -1,3 +1,11 @@
+# v2.6.13 (FUTURE)
+
+## Bug Fixes
+
+* [#3914](https://github.com/netbox-community/netbox/issues/3914) - Fix interface filter field when unauthenticated
+
+---
+
 # v2.6.12 (2020-01-13)
 
 ## Enhancements

+ 1 - 1
netbox/project-static/js/interface_toggles.js

@@ -15,7 +15,7 @@ $('button.toggle-ips').click(function() {
 $('input.interface-filter').on('input', function() {
     var filter = new RegExp(this.value);
 
-    for (interface of $(this).closest('form').find('tbody > tr')) {
+    for (interface of $(this).closest('div.panel').find('tbody > tr')) {
         // Slice off 'interface_' at the start of the ID
         if (filter && filter.test(interface.id.slice(10))) {
             // Match the toggle in case the filter now matches the interface