From 7ab956fa4a1182ea1401a81fe0d0921b3948feb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 10 Oct 2016 07:37:41 +0200 Subject: [PATCH] minor fixes --- server/src/uds/static/adm/js/gui-form.coffee | 3 ++- server/src/uds/templates/uds/admin/tmpl/fld/choice.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/uds/static/adm/js/gui-form.coffee b/server/src/uds/static/adm/js/gui-form.coffee index 5b443998..b3ae9e95 100644 --- a/server/src/uds/static/adm/js/gui-form.coffee +++ b/server/src/uds/static/adm/js/gui-form.coffee @@ -165,7 +165,8 @@ $select.val originalValues[sel.name] # Refresh selectpicker if item is such - $select.selectpicker "refresh" if $select.hasClass("selectpicker") + if $select.hasClass("selectpicker") + $select.selectpicker "refresh" # Trigger change for the changed item $select.trigger "change" diff --git a/server/src/uds/templates/uds/admin/tmpl/fld/choice.html b/server/src/uds/templates/uds/admin/tmpl/fld/choice.html index 1f11e336..2eeecae9 100644 --- a/server/src/uds/templates/uds/admin/tmpl/fld/choice.html +++ b/server/src/uds/templates/uds/admin/tmpl/fld/choice.html @@ -3,7 +3,7 @@ {% comment %}The choice item MUST be a Select{% endcomment %} {% block field %} {% verbatim %} - {{#each values }} {{/each}}