diff options
-rw-r--r-- | view/js/mod_network.js | 3 | ||||
-rw-r--r-- | view/tpl/activity_filter_widget.tpl | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/view/js/mod_network.js b/view/js/mod_network.js index 734e572bb..2899bbacd 100644 --- a/view/js/mod_network.js +++ b/view/js/mod_network.js @@ -1,7 +1,4 @@ $(document).ready(function() { $("#search-text").contact_autocomplete(baseurl + '/search_ac','',true); - $("#cid-filter").name_autocomplete(baseurl + '/acl', 'a', true, function(data) { - $("#cid").val(data.id); - }); }); diff --git a/view/tpl/activity_filter_widget.tpl b/view/tpl/activity_filter_widget.tpl index 1b1e2c880..1eb11c10f 100644 --- a/view/tpl/activity_filter_widget.tpl +++ b/view/tpl/activity_filter_widget.tpl @@ -16,6 +16,10 @@ <input id="cid-filter" class="form-control form-control-sm{{if $name.sel}} {{$name.sel}}{{/if}}" type="text" value="" placeholder="{{$name.label}}" name="name" title="" /> </form> </div> + <script> + $("#cid-filter").name_autocomplete(baseurl + '/acl', 'a', true, function(data) { + $("#cid").val(data.id); + }); + </script> {{/if}} - </div> |