Fix some Serial Control text boxes which were too small to use effectively.
[evergreen-equinox.git] / Open-ILS / xul / staff_client / server / serial / scap_editor.js
index 3131794..44f4627 100644 (file)
@@ -98,7 +98,7 @@ serial.scap_editor.prototype = {
             [
                 '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'
                 }
             ]