Skip to content

Commit

Permalink
Fix IE8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Nov 7, 2015
1 parent 5bdf190 commit c8638a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion media/system/js/subform-repeatable-uncompressed.js
Expand Up @@ -66,7 +66,8 @@
$.subformRepeatable.prototype.prepareTemplate = function(){
// create from template
if(this.options.rowTemplateSelector){
this.template = $.trim(this.$container.find(this.options.rowTemplateSelector).text());
var tmplElement = this.$container.find(this.options.rowTemplateSelector)[0] || {};
this.template = $.trim(tmplElement.text || tmplElement.textContent); //(text || textContent) is IE8 fix
}
// create from existing rows
else {
Expand Down
2 changes: 1 addition & 1 deletion media/system/js/subform-repeatable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c8638a0

Please sign in to comment.