[open-ils-commits] r20412 - trunk/Open-ILS/xul/staff_client/server/serial (dbwells)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed May 4 09:48:22 EDT 2011


Author: dbwells
Date: 2011-05-04 09:48:20 -0400 (Wed, 04 May 2011)
New Revision: 20412

Modified:
   trunk/Open-ILS/xul/staff_client/server/serial/sbsum_editor.js
   trunk/Open-ILS/xul/staff_client/server/serial/scap_editor.js
   trunk/Open-ILS/xul/staff_client/server/serial/siss_editor.js
   trunk/Open-ILS/xul/staff_client/server/serial/sisum_editor.js
   trunk/Open-ILS/xul/staff_client/server/serial/sssum_editor.js
Log:
Fix some Serial Control text boxes which were too small to use effectively.


Modified: trunk/Open-ILS/xul/staff_client/server/serial/sbsum_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/sbsum_editor.js	2011-05-04 05:30:29 UTC (rev 20411)
+++ trunk/Open-ILS/xul/staff_client/server/serial/sbsum_editor.js	2011-05-04 13:48:20 UTC (rev 20412)
@@ -76,7 +76,7 @@
             [
                 'textual_holdings',
                 { 
-                    input: 'c = function(v){ obj.apply("textual_holdings",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.setAttribute("size", 85); x.setAttribute("value",obj.editor_values.textual_holdings); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
+                    input: 'c = function(v){ obj.apply("textual_holdings",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.setAttribute("multiline",true); x.setAttribute("cols", 80); x.setAttribute("value",obj.editor_values.textual_holdings); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
                     value_key: 'textual_holdings'
                 }
             ],

Modified: trunk/Open-ILS/xul/staff_client/server/serial/scap_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/scap_editor.js	2011-05-04 05:30:29 UTC (rev 20411)
+++ trunk/Open-ILS/xul/staff_client/server/serial/scap_editor.js	2011-05-04 13:48:20 UTC (rev 20412)
@@ -98,7 +98,7 @@
             [
                 'pattern_code',
                 { 
-                    input: 'c = function(v){ obj.apply("pattern_code",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.setAttribute("value",obj.editor_values.pattern_code); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
+                    input: 'c = function(v){ obj.apply("pattern_code",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.setAttribute("multiline",true); x.setAttribute("cols",40); x.setAttribute("value",obj.editor_values.pattern_code); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
                     value_key: 'pattern_code'
                 }
             ]

Modified: trunk/Open-ILS/xul/staff_client/server/serial/siss_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/siss_editor.js	2011-05-04 05:30:29 UTC (rev 20411)
+++ trunk/Open-ILS/xul/staff_client/server/serial/siss_editor.js	2011-05-04 13:48:20 UTC (rev 20412)
@@ -137,7 +137,7 @@
             [
                 'holding_code',
                 {
-                    input: 'c = function(v){ obj.apply("holding_code",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.setAttribute("value",obj.editor_values.holding_code); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
+                    input: 'c = function(v){ obj.apply("holding_code",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.setAttribute("multiline",true); x.setAttribute("cols",40); x.setAttribute("value",obj.editor_values.holding_code); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
                     value_key: 'holding_code'
                 }
             ],

Modified: trunk/Open-ILS/xul/staff_client/server/serial/sisum_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/sisum_editor.js	2011-05-04 05:30:29 UTC (rev 20411)
+++ trunk/Open-ILS/xul/staff_client/server/serial/sisum_editor.js	2011-05-04 13:48:20 UTC (rev 20412)
@@ -76,7 +76,7 @@
             [
                 'textual_holdings',
                 { 
-                    input: 'c = function(v){ obj.apply("textual_holdings",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.setAttribute("size", 85); x.setAttribute("value",obj.editor_values.textual_holdings); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
+                    input: 'c = function(v){ obj.apply("textual_holdings",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.setAttribute("multiline",true); x.setAttribute("cols", 80); x.setAttribute("value",obj.editor_values.textual_holdings); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
                     value_key: 'textual_holdings'
                 }
             ],

Modified: trunk/Open-ILS/xul/staff_client/server/serial/sssum_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/sssum_editor.js	2011-05-04 05:30:29 UTC (rev 20411)
+++ trunk/Open-ILS/xul/staff_client/server/serial/sssum_editor.js	2011-05-04 13:48:20 UTC (rev 20412)
@@ -76,7 +76,7 @@
             [
                 'textual_holdings',
                 { 
-                    input: 'c = function(v){ obj.apply("textual_holdings",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.setAttribute("size", 85); x.setAttribute("value",obj.editor_values.textual_holdings); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
+                    input: 'c = function(v){ obj.apply("textual_holdings",v); if (typeof post_c == "function") post_c(v); }; x = document.createElement("textbox"); x.setAttribute("multiline",true); x.setAttribute("cols", 80); x.setAttribute("value",obj.editor_values.textual_holdings); x.addEventListener("apply",function(f){ return function(ev) { f(ev.target.value); } }(c), false);',
                     value_key: 'textual_holdings'
                 }
             ],



More information about the open-ils-commits mailing list