Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for inline script, repeating hierselects work

  • Loading branch information...
commit 1eb7a1970f8245f690402001326decee05539064 1 parent 157c0ee
@sad-spirit sad-spirit authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 js/src/repeat.js
View
4 js/src/repeat.js
@@ -150,6 +150,10 @@ qf.Repeat.prototype = {
if (element.htmlFor) {
element.htmlFor = element.htmlFor.replace(':idx:', index);
}
+ // inline script found, eval() 'em
+ if ('script' == element.nodeName.toLowerCase()) {
+ eval(element.innerHTML.replace(/:idx:/g, index));
+ }
if (qf.classes.has(element, 'repeatAdd')) {
qf.events.addListener(element, 'click', qf.Repeat.handleAdd);
}
Please sign in to comment.
Something went wrong with that request. Please try again.