Last active
July 28, 2016 06:22
-
-
Save almirsarajcic/85adda5f071edeb6f4be2e0ad91dba9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var KrizaljkaCtrl = angular.element('.krizaljka').scope(); | |
KrizaljkaCtrl.switchAutoProvjera(); | |
for (i = 0; i < KrizaljkaCtrl.krizaljka.odgovori.length; i++) { | |
var hash = KrizaljkaCtrl.krizaljka.odgovori[i]; | |
if (hash.tip == 'odgovor' || hash.tip == 'istaknutiodgovor') { | |
hash.inputValue = hash.val; | |
$('.kockica[x="' + hash.coords.x + '"][y="' + hash.coords.y + '"] input') | |
.focus() | |
.val(hash.val); | |
} | |
} | |
KrizaljkaCtrl.switchAutoProvjera(); | |
KrizaljkaCtrl.provjeriRjesenja(); | |
$('body').removeClass('disabled-scroll'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment