Testbeds list: fix network_hrn with \. in their name
authorLoic Baron <loic.baron@lip6.fr>
Fri, 21 Mar 2014 09:24:54 +0000 (10:24 +0100)
committerLoic Baron <loic.baron@lip6.fr>
Fri, 21 Mar 2014 09:24:54 +0000 (10:24 +0100)
plugins/testbeds/static/js/testbeds.js

index dfe8855..f26602e 100644 (file)
                 e.stopPropagation();
 
                 value = this.dataset['platform'];
+                // handle the hrn that include . in their name (has to be in sync with the data from SFA)
+                value = value.replace(/\./g,"\\.");
                 key = "network_hrn";
                 op = "included";
                 return $(this).hasClass('active') ? self._addFilter(key, op, value) : self._removeFilter(key, op, value);