From 11ba46c3e1afd6077aef7de61cf484556ecca056 Mon Sep 17 00:00:00 2001 From: Rafael Ostertag <rafael.ostertag@math.uzh.ch> Date: Thu, 16 Feb 2017 15:01:27 +0100 Subject: [PATCH] Do not use deprecated functions. --- mockup/fieldtemplates.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mockup/fieldtemplates.html b/mockup/fieldtemplates.html index 50b283d54..d5b4a5db4 100644 --- a/mockup/fieldtemplates.html +++ b/mockup/fieldtemplates.html @@ -29,7 +29,7 @@ </div> <div class="form-group"> <div class="col-md-1"> - <button type="button" onclick="QfqNS.addFields('#template', '#target', 10)">Add</button> + <button type="button" onclick="QfqNS.appendTemplate('#template', '#target', 10)">Add</button> </div> </div> </form> @@ -54,7 +54,7 @@ </div> <div class="form-group qfq-delete-button"> - <button type="button" onclick="QfqNS.removeFields(this)">Remove</button> + <button type="button" onclick="QfqNS.removeThisChild(this)">Remove</button> </div> </div> </script> @@ -75,7 +75,7 @@ $(function () { $(".qfq-fields").each( function () { - QfqNS.initializeFields(this); + QfqNS.initializeTemplateTarget(this); } ); }); -- GitLab