Complete the label font settings namespace change and replace some debug values for...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 30 Aug 2010 14:56:55 +0000 (14:56 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 30 Aug 2010 14:56:55 +0000 (14:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17372 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/spine_labels.js

index 9d6e029..f1d9263 100644 (file)
@@ -99,7 +99,7 @@
                 }
                 label_cfg.spine_left_margin = Number($('lm').value); /* left margin */
                 if (!label_cfg.spine_left_margin) {
-                    label_cfg.spine_left_margin = g.data.hash.aous['cat.spine.line.margin'] || 11;
+                    label_cfg.spine_left_margin = g.data.hash.aous['cat.spine.line.margin'] || 0;
                     $('lm').value = label_cfg.spine_left_margin;
                 }
                 label_cfg.font_size = Number( $('pt').value );  /* font size */
                     netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
                     var pt = Number( $('pt').value );  /* font size */
                     if (!pt) {
-                        pt = g.data.hash.aous['cat.spine.font.size'] || 10;
+                        pt = g.data.hash.aous['cat.label.font.size'] || 10;
                         $('pt').value = pt;
                     }
-                    var ff = g.data.hash.aous['cat.spine.font.family'] || 'monospace';
+                    var ff = g.data.hash.aous['cat.label.font.family'] || 'monospace';
                     var fw = $('font_weight').value;  /* font weight */
                     if (!fw) {
                         fw = g.data.hash.aous['cat.label.font.weight'] || 'normal';
                     }
                     var lm = Number($('lm').value); /* left margin */
                     if (!lm) {
-                        lm = g.data.hash.aous['cat.spine.line.margin'] || 11;
+                        lm = g.data.hash.aous['cat.spine.line.margin'] || 0;
                     }
                     var mm = Number($('mm').value); if (mm == NaN) mm = 2; /* middle margin */
                     var lw = Number($('lw').value); /* spine label width */