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 booleanSelect-direktiivi
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxu committed Aug 11, 2015
1 parent 5d4e378 commit d80f136
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 @@ -667,7 +667,7 @@ angular.module('directives', ['services', 'resources', 'ngCookies'])
.directive('booleanSelect', ['boolValues', 'i18n', function(boolValues, i18n){

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

return {
restrict: 'E',
Expand Down

0 comments on commit d80f136

Please sign in to comment.