Created
January 14, 2013 16:00
-
-
Save rizkysyazuli/4531081 to your computer and use it in GitHub Desktop.
jQuery: SheepIt Config
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
// jQuery SheepIt Configuration - http://goo.gl/7VrJu | |
// SheepIt plugin defaults | |
var defaults = { | |
separator: '', | |
// controls | |
allowRemoveLast: true, | |
allowRemoveCurrent: true, | |
allowRemoveAll: false, | |
allowAdd: true, | |
allowAddN: false, | |
// Limits | |
maxFormsCount: 5, | |
minFormsCount: 1, | |
iniFormsCount: 1 | |
}; | |
// forms enhanced with sheepit plugins | |
var $sheepit = $(".sheepit"); | |
if ($sheepit.length) { | |
$sheepit.each(function(i) { | |
$(this).sheepIt(defaults); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment