[evolution/webkit: 161/182] Remove obsolete JavaScript for priting



commit 078c6fdddc546928477a6c315301ae397711f57f
Author: Dan VrÃtil <dvratil redhat com>
Date:   Tue Feb 21 15:53:39 2012 +0100

    Remove obsolete JavaScript for priting

 mail/em-format-html.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 05a71a7..3d54a3c 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -1314,25 +1314,6 @@ efh_write_message (EMFormat *emf,
                 "<style type=\"text/css\">\n"
                 "  table th { color: #000; font-weight: bold; }\n"
                 "</style>\n"
-                "<script type=\"text/javascript\">\n"
-                "function set_header_visible(header,value,visible) { // Printing\n"
-                "  var hdrs=window.document.getElementsByClassName('header-item');\n"
-                "  for (var i = 0; i < hdrs.length; i++) { \n"
-                "    var hdr = hdrs[i]; \n"
-                "    if (hdr.className.indexOf('rtl') == -1) { \n"
-                "      if ((hdr.firstChild.textContent == header) && \n"
-                "          (hdr.firstChild.nextSibling.textContent == value)) { \n"
-                "        hdr.style.display=(visible ? 'block' : 'none');\n"
-                "      }\n"
-                "    } else { \n"
-                "      if ((hdr.firstChild.textContent == value) && \n"
-                "          (hdr.firstChild.nextSibling.textContent == header)) { \n"
-                "        hdr.style.display=(visible ? 'block' : 'none');\n"
-                "      }\n"
-                "    }\n"
-                "  }\n"
-                "}\n"
-                "</script>\n"
                 "</head><body bgcolor=\"%06x\">",
                 e_color_to_value (&efh->priv->colors[
                 EM_FORMAT_HTML_COLOR_BODY]));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]