Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
OPH-1478: Korjaa enumValikko-direktiivi
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxu committed Aug 11, 2015
1 parent 421c347 commit 5d4e378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttk/resources/public/js/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ angular.module('directives', ['services', 'resources', 'ngCookies'])
.directive('enumValikko', ['i18n', 'EnumResource', '$compile', function (i18n, EnumResource, $compile) {

var template = '<select ng-model="arvo" ng-required="pakollinen" ng-options="arvo.nimi as arvo.label for arvo in arvot">';
template += '<option value="" ng-if="(pakollinen && !arvo) || !pakollinen" ng-bind="pakollinen ? i18n.yleiset[\'valitse\'] : i18n.yleiset[\'ei-valintaa\']"></option></select>';
template += '<option value="" ng-show="(pakollinen && !arvo) || !pakollinen" ng-bind="pakollinen ? i18n.yleiset[\'valitse\'] : i18n.yleiset[\'ei-valintaa\']"></option></select>';

return {
restrict: 'E',
Expand Down

0 comments on commit 5d4e378

Please sign in to comment.