aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-06-09 13:08:14 +0200
committerMario Vavti <mario@mariovavti.com>2018-06-09 13:08:14 +0200
commite37ccb7a63ed9c0c67ebe1600109fe82258615df (patch)
tree6bac8824f99ca54e29527704b7513fcb901bca49
parentafaa8012c8040a431ff0f1a0908f6e51546cfd32 (diff)
downloadvolse-hubzilla-e37ccb7a63ed9c0c67ebe1600109fe82258615df.tar.gz
volse-hubzilla-e37ccb7a63ed9c0c67ebe1600109fe82258615df.tar.bz2
volse-hubzilla-e37ccb7a63ed9c0c67ebe1600109fe82258615df.zip
move cid filter js to the widget
-rw-r--r--view/js/mod_network.js3
-rw-r--r--view/tpl/activity_filter_widget.tpl6
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>