From 4d0e214a2943593f09bd0c82e3a097c710d2e005 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 12 Nov 2012 16:25:34 +0530 Subject: [PATCH] bugfix in printElement --- public/js/legacy/utils/printElement.js | 36 +++++++++++++------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/public/js/legacy/utils/printElement.js b/public/js/legacy/utils/printElement.js index 8ecf53b346..e0a154205b 100644 --- a/public/js/legacy/utils/printElement.js +++ b/public/js/legacy/utils/printElement.js @@ -151,24 +151,24 @@ var html = new Array(); html.push('' + opts["pageTitle"] + ''); - if (opts["overrideElementCSS"]) { - if (opts["overrideElementCSS"].length > 0) { - for (var x = 0; x < opts["overrideElementCSS"].length; x++) { - var current = opts["overrideElementCSS"][x]; - if (typeof (current) == 'string') - html.push(''); - else - html.push(''); - } - } - } - else { - $("link", document).filter(function () { - return $(this).attr("rel").toLowerCase() == "stylesheet"; - }).each(function () { - html.push(''); - }); - } + // if (opts["overrideElementCSS"]) { + // if (opts["overrideElementCSS"].length > 0) { + // for (var x = 0; x < opts["overrideElementCSS"].length; x++) { + // var current = opts["overrideElementCSS"][x]; + // if (typeof (current) == 'string') + // html.push(''); + // else + // html.push(''); + // } + // } + // } + // else { + // $("link", document).filter(function () { + // return $(this).attr("rel").toLowerCase() == "stylesheet"; + // }).each(function () { + // html.push(''); + // }); + // } //Ensure that relative links work html.push(''); html.push('');