aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-06-08 23:03:05 +0200
committerMario Vavti <mario@mariovavti.com>2018-06-08 23:03:05 +0200
commit468af29e3e4fb5c59f44afe8e870e21b66153992 (patch)
treef92f91af92b761c5ee6733364596f395e00c098f /view
parent7c98aea52497ebbdd1880d98b0dbc26c32eaca39 (diff)
downloadvolse-hubzilla-468af29e3e4fb5c59f44afe8e870e21b66153992.tar.gz
volse-hubzilla-468af29e3e4fb5c59f44afe8e870e21b66153992.tar.bz2
volse-hubzilla-468af29e3e4fb5c59f44afe8e870e21b66153992.zip
new feature filter network by name
Diffstat (limited to 'view')
-rw-r--r--view/css/widgets.css1
-rw-r--r--view/js/mod_network.js3
-rw-r--r--view/tpl/activity_filter_widget.tpl10
3 files changed, 14 insertions, 0 deletions
diff --git a/view/css/widgets.css b/view/css/widgets.css
index 9730d6915..e330c38e1 100644
--- a/view/css/widgets.css
+++ b/view/css/widgets.css
@@ -182,6 +182,7 @@ a.wikilist {
.notifications-textinput {
padding: .75rem 0.85rem;
+ position: relative;
}
.notifications-textinput input {
diff --git a/view/js/mod_network.js b/view/js/mod_network.js
index 2899bbacd..734e572bb 100644
--- a/view/js/mod_network.js
+++ b/view/js/mod_network.js
@@ -1,4 +1,7 @@
$(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 7ff5a4f7e..1b1e2c880 100644
--- a/view/tpl/activity_filter_widget.tpl
+++ b/view/tpl/activity_filter_widget.tpl
@@ -8,4 +8,14 @@
{{/if}}
</h3>
{{$content}}
+ {{if $name}}
+ <div class="notifications-textinput">
+ <form method="get" action="{{$name.url}}" role="search">
+ <div class="text-muted notifications-textinput-filter"><i class="fa fa-fw fa-filter"></i></div>
+ <input id="cid" type="hidden" value="" name="cid" />
+ <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>
+ {{/if}}
+
</div>