From 627d4edca38667bf812e03f70927fdc536fbe3a5 Mon Sep 17 00:00:00 2001 From: pines Date: Mon, 23 Apr 2007 14:49:12 +0000 Subject: [PATCH] let set_text handle some HTML elements git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@7157 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/util/widgets.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/widgets.js b/Open-ILS/xul/staff_client/chrome/content/util/widgets.js index 97ba5b6406..57f9e7a436 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/widgets.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/widgets.js @@ -305,6 +305,7 @@ util.widgets.set_text = function(n,t) { n.setAttribute('value',t); break; case 'description' : + case 'H1': case 'H2': case 'H3': case 'H4': case 'SPAN': case 'P': case 'BLOCKQUOTE': util.widgets.remove_children(n); n.appendChild( document.createTextNode(t) ); break; -- 2.11.0