diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-03-31 09:26:58 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-03-31 09:26:58 +0200 |
commit | 6433ce70a19be8c57edbc72f8df3a4c7ef52f389 (patch) | |
tree | cc0bc0abe91a2facd379097ade99439498da7b2d /view | |
parent | 6822415ee2efd4e2d3e5458c36cd5f582887969a (diff) | |
parent | 1c3e6697615b70d2528856b6c8e69962a14763dc (diff) | |
download | volse-hubzilla-6433ce70a19be8c57edbc72f8df3a4c7ef52f389.tar.gz volse-hubzilla-6433ce70a19be8c57edbc72f8df3a4c7ef52f389.tar.bz2 volse-hubzilla-6433ce70a19be8c57edbc72f8df3a4c7ef52f389.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'view')
-rw-r--r-- | view/js/autocomplete.js | 2 | ||||
-rw-r--r-- | view/tpl/wiki.tpl | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index f7570523e..7a1a7673d 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -210,7 +210,7 @@ function string2bb(element) { tags = { match: /(^|\s)(\#)([^ \n]{2,})$/, index: 3, - search: function(term, callback) { $.getJSON('/hashtags/' + '$f=&t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.indexOf(term) === 0 ? entry : null; })); }); }, + search: function(term, callback) { $.getJSON('/hashtags/' + '$f=&t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.toLowerCase().indexOf(term.toLowerCase()) === 0 ? entry : null; })); }); }, replace: function(item) { return "$1$2" + item.text + ' '; }, context: function(text) { return text.toLowerCase(); }, template: tag_format diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl index 2be323deb..6ca4b0c77 100644 --- a/view/tpl/wiki.tpl +++ b/view/tpl/wiki.tpl @@ -15,6 +15,7 @@ </div> </div> {{/if}} + <button type="button" class="btn btn-outline-secondary btn-sm" title="{{$sharePage}}" onclick="window.location.href='rpost?f=&body={{$shareLink}}';"><i class="fa fa-fw fa-share"></i></button> <button id="fullscreen-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(); adjustFullscreenEditorHeight();"><i class="fa fa-expand"></i></button> <button id="inline-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(false); adjustInlineEditorHeight()"><i class="fa fa-compress"></i></button> </div> |