From c0fea003c99dcb3acdbeb92b97bffa121da2fbef Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 5 Dec 2012 14:56:08 +0530 Subject: [PATCH] fix in print format eval --- public/js/legacy/widgets/form/print_format.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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