This commit is contained in:
Chris Van 2011-10-05 19:31:09 -07:00
Родитель fc854a105a
Коммит aca30f2959
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1,6 +1,6 @@
function updateTotalForms(prefix, inc) {
var $totalForms = $('#id_' + prefix + '-TOTAL_FORMS'),
$maxForms = $('#id_' + prefix + '-MAX_FORMS'),
$maxForms = $('#id_' + prefix + '-MAX_NUM_FORMS'),
inc = inc || 1,
num = parseInt($totalForms.val(), 10) + inc;
if ($maxForms.length) {
@ -76,7 +76,7 @@ $.fn.zAutoFormset = function(o) {
searchField = o.searchField,
excludePersonas = o.excludePersonas,
minLength = o.minSearchLength,
$maxForms = $('#id_' + formsetPrefix + '-MAX_FORMS'),
$maxForms = $('#id_' + formsetPrefix + '-MAX_NUM_FORMS'),
width = o.width,
addedCB = o.addedCB,
removedCB = o.removedCB,