Skip to content
Snippets Groups Projects
Commit 14ef9e8a authored by Robert Goldmann's avatar Robert Goldmann
Browse files

chips input: show placeholder text even if already chips added

parent 435f691b
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,7 @@ $(document).ready(function()
minLength: 1
},
placeholder: tagsPlaceholder,
secondaryPlaceholder: tagsPlaceholder,
data: initialTags
});
......
......@@ -40,7 +40,7 @@
</div>
<div id="hidden-transaction-name-keywords"></div>
<script>
tagsPlaceholder = "${locale.getString("settings.transactions.keywords.placeholder")}";
keywordsPlaceholder = "${locale.getString("settings.transactions.keywords.placeholder")}";
var initialKeywords = [
<#list transactionNameKeywords as keyword>
{tag: '${keyword.getValue()?replace("'", "\\'")}'},
......@@ -70,7 +70,8 @@
<script>
M.Chips.init(document.querySelectorAll('.chips'), {
placeholder: tagsPlaceholder,
placeholder: keywordsPlaceholder,
secondaryPlaceholder: keywordsPlaceholder,
data: initialKeywords,
onChipAdd: onKeywordsChange,
onChipDelete: onKeywordsChange
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment