Created
November 27, 2012 00:51
-
-
Save bamarni/4151688 to your computer and use it in GitHub Desktop.
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 addNextUserExperience() { | |
var $userExperiencesList = $('#bundle_account_settings_type_user_experiences'); | |
var newField = $userExperiencesList.attr('data-prototype'); | |
var newSelect = newField; | |
var $newSelect = $(newSelect.replace(/__name__/g, userExperiencesCount)); | |
userExperiencesCount++; | |
$('#user-experiences-list').append($newSelect); | |
$newSelect.find('.account-date-picker').each(function(){ | |
$field = $(this); | |
{{ form_javascript(form1.children.form2.children.datefield.vars.prototype, true) }} | |
}); | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment