Skip to content

Commit

Permalink
#1807 b) locale placeholder for keyword form input fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed May 8, 2017
1 parent eaa83e3 commit 31a3756
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/form/keywordInput.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
*}
{assign var="uniqId" value="-"|concat:$FBV_uniqId|escape}
{if $FBV_multilingual && count($formLocales) > 1}
{foreach from=$formLocales key=thisFormLocale item=thisFormLocaleName}
{foreach name=formLocales from=$formLocales key=thisFormLocale item=thisFormLocaleName}
<script>
$(document).ready(function(){ldelim}
$("#{$thisFormLocale|escape:jqselector}-{$FBV_id}{$uniqId}").tagit({ldelim}
fieldName: "keywords[{$thisFormLocale|escape}-{$FBV_id|escape}][]",
{if !$smarty.foreach.formLocales.first && empty($FBV_currentKeywords.$thisFormLocale)}placeholderText: "{$thisFormLocale|escape}",{/if}
allowSpaces: true,
{if $FBV_sourceUrl && !$FBV_disabled}
tagSource: function(search, showChoices) {ldelim}
Expand Down

0 comments on commit 31a3756

Please sign in to comment.