font scaling does nothing if the font size is regular
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Mar 2006 22:13:54 +0000 (22:13 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Mar 2006 22:13:54 +0000 (22:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3332 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/utils.js

index 79959c2..18c68b3 100644 (file)
@@ -395,12 +395,17 @@ function setActivateStyleSheet(name) {
 
 
 /* ----------------------------------------------------- */
 
 
 /* ----------------------------------------------------- */
+var currentFontSize;
 function scaleFonts(type) {
 
        var size                = "";
        var ssize       = "";
        var size2       = "";
        var a;
 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 */
 
        switch(type) {
                case "large":  /* these are arbitrary.. but they seem to work ok in FF/IE */