diff --git a/public/js/legacy/widgets/form/print_format.js b/public/js/legacy/widgets/form/print_format.js index ba41ec0078..8c00f7b31e 100644 --- a/public/js/legacy/widgets/form/print_format.js +++ b/public/js/legacy/widgets/form/print_format.js @@ -289,11 +289,15 @@ $.extend(_p, { // This is used to calculate and substitude values in the HTML run_embedded_js: function(container, doc) { - $(container).find("script").each(function(element) { - var code = this.innerHTML; + script_list = $(container).find("script"); + for(var i=0; i