From: phasefx Date: Thu, 5 Feb 2009 04:55:54 +0000 (+0000) Subject: put font_helper in the marc editor, to honor font size changes. Need to test this... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9d303c41281acf33daee0e03976d354ccc5a1866;p=Evergreen.git put font_helper in the marc editor, to honor font size changes. Need to test this in Vandelay; and I'm not sure if it'll work with a standalone marc editor (do we support that still?) git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12075 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index 32953b5eb7..f2b594aa1b 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -79,6 +79,12 @@ function xml_escape_unicode ( str ) { function my_init() { try { + + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); } + JSAN.errorLevel = "die"; // none, warn, or die + JSAN.addRepository('/xul/server/'); + // Fake xulG for standalone... try { window.xulG.record; @@ -227,6 +233,7 @@ function my_init() { loadRecord(xml_record); + font_helper(); } catch(E) { alert('FIXME, MARC Editor, my_init: ' + E); diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.xul b/Open-ILS/xul/staff_client/server/cat/marcedit.xul index 126da262f2..37990514f5 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.xul +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.xul @@ -9,15 +9,17 @@ ]> + + + +