aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-29 15:19:16 -0800
committerfriendica <info@friendica.com>2015-01-29 15:19:16 -0800
commitd7dae3c72a5d22cd29d4ba8cfd18e7139ede09ff (patch)
treebad34a3b7174a81f5b479c6653da39344f8df0fe
parente2edc2c96841588ade355890c49ff7a3c900078d (diff)
parent1ec6e62ed34ed8665da188f8a8427bf470bcc02e (diff)
downloadvolse-hubzilla-d7dae3c72a5d22cd29d4ba8cfd18e7139ede09ff.tar.gz
volse-hubzilla-d7dae3c72a5d22cd29d4ba8cfd18e7139ede09ff.tar.bz2
volse-hubzilla-d7dae3c72a5d22cd29d4ba8cfd18e7139ede09ff.zip
Merge https://github.com/friendica/red into pending_merge
-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}}