From c258b40164007e0c25dd938a3f29cb3901ffab9e Mon Sep 17 00:00:00 2001 From: Martijn van de Rijdt Date: Tue, 26 Mar 2013 17:05:42 -0600 Subject: [PATCH] removed animation from repeat addition (solves Jasmine test failing) --- drishti/js/source/form.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drishti/js/source/form.js b/drishti/js/source/form.js index c67b8c5d..361438eb 100755 --- a/drishti/js/source/form.js +++ b/drishti/js/source/form.js @@ -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