[open-ils-commits] r17078 - in trunk/Open-ILS/xul/staff_client/server: cat skin (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Aug 4 15:56:31 EDT 2010


Author: phasefx
Date: 2010-08-04 15:56:26 -0400 (Wed, 04 Aug 2010)
New Revision: 17078

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
   trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.xul
   trunk/Open-ILS/xul/staff_client/server/skin/cat.css
   trunk/Open-ILS/xul/staff_client/server/skin/global.css
Log:
tweak to item attribute editor to support hiding of fields with cat_custom.css

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2010-08-04 19:46:59 UTC (rev 17077)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2010-08-04 19:56:26 UTC (rev 17078)
@@ -1057,8 +1057,8 @@
                 }
                 if (typeof g.changed[fn] != 'undefined') groupbox.setAttribute('class','copy_editor_field_changed');
                 caption = document.createElement('caption'); groupbox.appendChild(caption);
-                caption.setAttribute('label',fn); caption.setAttribute('id','caption_'+fn);
-                vbox = document.createElement('vbox'); groupbox.appendChild(vbox);
+                caption.setAttribute('label',fn); 
+                vbox = document.createElement('vbox'); groupbox.appendChild(vbox); // main display widget goes here
                 grid = util.widgets.make_grid( [ { 'flex' : 1 }, {}, {} ] ); vbox.appendChild(grid);
                 grid.setAttribute('flex','1');
                 rows = grid.lastChild;
@@ -1085,10 +1085,11 @@
                     }
                     label2.appendChild( document.createTextNode(copy_count) );
                 }
-                var hbox = document.createElement('hbox'); 
-                hbox.setAttribute('id',fn);
+                groupbox.setAttribute('id','groupbox_'+fn); // this id is meant to be referenced by cat_custom.css for hiding fields
+                var hbox = document.createElement('hbox'); // main input controls go here
+                hbox.setAttribute('id',fn); // this id gets used to color areas green, etc.
                 groupbox.appendChild(hbox);
-                var hbox2 = document.createElement('hbox');
+                var hbox2 = document.createElement('hbox'); // cancel/apply buttons go here
                 groupbox.appendChild(hbox2);
 
                 /**************************************************************************************/

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.xul	2010-08-04 19:46:59 UTC (rev 17077)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.xul	2010-08-04 19:56:26 UTC (rev 17078)
@@ -6,6 +6,7 @@
 <!-- STYLESHEETS -->
 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
+<?xml-stylesheet href="/xul/server/skin/cat.css" type="text/css"?>
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- LOCALIZATION -->

Modified: trunk/Open-ILS/xul/staff_client/server/skin/cat.css
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/skin/cat.css	2010-08-04 19:46:59 UTC (rev 17077)
+++ trunk/Open-ILS/xul/staff_client/server/skin/cat.css	2010-08-04 19:56:26 UTC (rev 17078)
@@ -4,3 +4,6 @@
 @namespace html url("http://www.w3.org/TR/REC-html40"); 
 
 .has_copies { color: black; background-color: lightgreen; font-weight: bold; }
+
+.copy_editor_field_changed { background: lightgreen; }
+

Modified: trunk/Open-ILS/xul/staff_client/server/skin/global.css
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/skin/global.css	2010-08-04 19:46:59 UTC (rev 17077)
+++ trunk/Open-ILS/xul/staff_client/server/skin/global.css	2010-08-04 19:56:26 UTC (rev 17078)
@@ -111,8 +111,6 @@
 
 listitem { border-bottom: solid thin black; }
 
-.copy_editor_field_changed { background: lightgreen; }
-
 /*
  * disable Edit Hold Range and Edit Hold Focus by default; should probably be using perms/settings for this
  */



More information about the open-ils-commits mailing list