source: main/kofacustom.sampleuni/trunk/layout/static/js/kofa-button-rowadd.js @ 11711

Last change on this file since 11711 was 11706, checked in by Henrik Bettermann, 11 years ago
  • Remove waeup.kofa from sources. Use waeup.kofa PyPI package instead.
  • Copy layout folder from waeup.kofa. kofacustom.sampleuni uses its own Diazo layout.
File size: 261 bytes
Line 
1$("button.rowadd").click(function (evt) {
2   /* Do not submit the form really */
3   evt.preventDefault();
4   /* Add first .form-field after last .form-field... */
5   $(".variable-form:last").after(
6       $(".variable-form:first").clone().hide().fadeIn());
7});
Note: See TracBrowser for help on using the repository browser.