Skip to content

Commit

Permalink
removed animation from repeat addition (solves Jasmine test failing)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn van de Rijdt committed Mar 26, 2013
1 parent 1eeb97f commit c258b40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drishti/js/source/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -2655,11 +2655,12 @@ function Form (formSelector, dataStr, dataStrToEdit){

//if not done asynchronously, this code causes a style undefined exception in Jasmine unit tests with jQuery 1.9 and 2.0
//but this breaks loading of default values inside repeats
//this is caused by show() not being able to find the 'property "style" of undefined'
//setTimeout(function(){
$clone.hide().clearInputs('').show(duration, function(){
$clone.clearInputs('');//.show(duration, function(){
//re-initiate widgets in clone
that.formO.widgets.init($clone);
});
//});
//}, 0);

//note: in http://formhub.org/formhub_u/forms/hh_polio_survey_cloned/form.xml a parent group of a repeat
Expand Down

0 comments on commit c258b40

Please sign in to comment.