Created
June 6, 2012 11:35
-
-
Save s0ber/2881405 to your computer and use it in GitHub Desktop.
Простановка чекбокса при отрисовке шаболона (для группы чекбоксов). data.weekItem - данные модели, data.weekDays - чекбоксы. Если элемент в модели true, то и чекбокс будет отмечен.
This file contains 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
(function() { | |
for (var j = 0; j < weekDays; j++) { | |
if (data.weekItem[j].Day == data.weekDays[i].Id) { | |
return true; | |
} | |
}; | |
return false; | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment