aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2015-01-30 10:17:43 +1100
committerRedMatrix <info@friendica.com>2015-01-30 10:17:43 +1100
commit1ec6e62ed34ed8665da188f8a8427bf470bcc02e (patch)
tree89a552b7974f7832d8aa36c8da36fb2496d75885
parent872b165eb2bb5d632a12f2d7e1a28e195c2d5348 (diff)
parent05ce141ecc13d2af754b1e055b1856e73a65d7dd (diff)
downloadvolse-hubzilla-1ec6e62ed34ed8665da188f8a8427bf470bcc02e.tar.gz
volse-hubzilla-1ec6e62ed34ed8665da188f8a8427bf470bcc02e.tar.bz2
volse-hubzilla-1ec6e62ed34ed8665da188f8a8427bf470bcc02e.zip
Merge pull request #880 from redswede/master
fixes
-rw-r--r--doc/sv/roles.md (renamed from doc/sv/roles.bb)0
-rw-r--r--mod/tagger.php6
-rw-r--r--view/js/autocomplete.js2
-rwxr-xr-xview/tpl/event_form.tpl2
4 files changed, 4 insertions, 6 deletions
diff --git a/doc/sv/roles.bb b/doc/sv/roles.md
index 47147c6bf..47147c6bf 100644
--- a/doc/sv/roles.bb
+++ b/doc/sv/roles.md
diff --git a/mod/tagger.php b/mod/tagger.php
index a93609c3c..aafad58cf 100644
--- a/mod/tagger.php
+++ b/mod/tagger.php
@@ -12,11 +12,9 @@ function tagger_content(&$a) {
}
$observer_hash = get_observer_hash();
-
+ //strip html-tags
$term = notags(trim($_GET['term']));
- // no commas allowed
- $term = str_replace(array(',',' '),array('','_'),$term);
-
+ //check if empty
if(! $term)
return;
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index 86847cb35..b93cc16b3 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -77,7 +77,7 @@ function editor_replace(item) {
// 16 chars is also the minimum length in the backend (otherwise it's interpreted as a local id).
if(id.length > 16)
id = item.id.substring(0,16);
- return '$1$2'+item.nick.replace(' ','') + '+' + id;
+ return '$1$2'+item.nick.replace(' ','') + '+' + id + ' ';
}
function basic_replace(item) {
diff --git a/view/tpl/event_form.tpl b/view/tpl/event_form.tpl
index a4717415e..2479068f3 100755
--- a/view/tpl/event_form.tpl
+++ b/view/tpl/event_form.tpl
@@ -41,7 +41,7 @@
{{if $catsenabled}}
<div id="event-category-wrap">
- <input name="category" id="event-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" class="event-cats" style="display: block;" />
+ <input name="category" id="event-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" class="event-cats" style="display: block;" data-role="tagsinput" />
</div>
{{/if}}