diff --git a/layouts/joomla/form/field/subform/repeatable-table.php b/layouts/joomla/form/field/subform/repeatable-table.php index 66f73fd072c0f..5b886e14e5b34 100644 --- a/layouts/joomla/form/field/subform/repeatable-table.php +++ b/layouts/joomla/form/field/subform/repeatable-table.php @@ -120,18 +120,25 @@ class="btn btn-mini button btn-success group-add group-add- - + diff --git a/layouts/joomla/form/field/subform/repeatable.php b/layouts/joomla/form/field/subform/repeatable.php index 4569b94af90f4..b091a6608b6de 100644 --- a/layouts/joomla/form/field/subform/repeatable.php +++ b/layouts/joomla/form/field/subform/repeatable.php @@ -70,18 +70,25 @@ endforeach; ?> - + diff --git a/media/system/js/subform-repeatable-uncompressed.js b/media/system/js/subform-repeatable-uncompressed.js index 123df96b80371..3fa83c33d2fef 100644 --- a/media/system/js/subform-repeatable-uncompressed.js +++ b/media/system/js/subform-repeatable-uncompressed.js @@ -68,14 +68,14 @@ // Find the template element and get its HTML content, this is our template. var $tmplElement = this.$container.find(this.options.rowTemplateSelector).last(); - // Move the template out of the form scope, for IE compatibility. - // But only a root template (!!!) - if (!$tmplElement.parents(this.options.rowTemplateSelector).length) { - $(document.body).append($tmplElement); - } - this.template = $.trim($tmplElement.html()) || ''; - this.$tmplElement = $tmplElement; + + // This is IE fix for