Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Commit

Permalink
Nosta max lisäkysymkset viiteenkymmeneen
Browse files Browse the repository at this point in the history
  • Loading branch information
Joonas Pesonen authored and Tapio Jaakkola committed Feb 26, 2016
1 parent 85eb683 commit 580e1dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aipal/frontend/src/js/kysely/kyselyui.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ angular.module('kysely.kyselyui', ['rest.kysely', 'rest.kyselypohja',

$scope.tallenna = function () {
poistaKysymysryhmat();
var maxKysymyksia = 10;
var maxKysymyksia = 50;
if (!apu.valtakunnallisiaRyhmia($scope.kysely)) {
maxKysymyksia = 30;
maxKysymyksia = 50;
}
if (apu.laskeLisakysymykset($scope.kysely) > maxKysymyksia) {
ilmoitus.virhe(i18n.hae('kysely.liian_monta_lisakysymysta'));
Expand Down

0 comments on commit 580e1dc

Please sign in to comment.