From 6e5a5e26c19197582a42dc6f6c8f38274be74e98 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 10 Mar 2006 22:13:54 +0000 Subject: [PATCH] font scaling does nothing if the font size is regular git-svn-id: svn://svn.open-ils.org/ILS/trunk@3332 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/utils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Open-ILS/web/opac/common/js/utils.js b/Open-ILS/web/opac/common/js/utils.js index 79959c295d..18c68b3bbc 100644 --- a/Open-ILS/web/opac/common/js/utils.js +++ b/Open-ILS/web/opac/common/js/utils.js @@ -395,12 +395,17 @@ function setActivateStyleSheet(name) { /* ----------------------------------------------------- */ +var currentFontSize; function scaleFonts(type) { var size = ""; var ssize = ""; var size2 = ""; var a; + + if(!currentFontSize) currentFontSize = 'regular'; + if(currentFontSize == 'regular' && type == 'regular' ) return; + currentFontSize = type; switch(type) { case "large": /* these are arbitrary.. but they seem to work ok in FF/IE */ -- 2.43.2