polish
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 7 Feb 2006 06:57:09 +0000 (06:57 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 7 Feb 2006 06:57:09 +0000 (06:57 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2997 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 4c9da50..12381cf 100644 (file)
@@ -612,8 +612,13 @@ g.render = function() {
                                        try {
                                                var spacer = document.createElement('spacer'); hbox.appendChild(spacer);
                                                spacer.setAttribute('flex','1');
+                                               var deck = document.createElement('deck'); hbox.appendChild(deck);
+                                               var btn = document.createElement('button'); deck.appendChild(btn);
+                                               deck.setAttribute('style','width: 200px; min-width: 200px;');
+                                               btn.setAttribute('label','Change');
+                                               btn.setAttribute('oncommand','this.parentNode.selectedIndex = 1;');
                                                var x; eval( f[1].input );
-                                               if (x) hbox.appendChild(x);
+                                               if (x) deck.appendChild(x);
 
                                        } catch(E) {
                                                g.error.sdump('D_ERROR',E + '\n');
@@ -674,8 +679,13 @@ g.render = function() {
                                        try {
                                                var spacer = document.createElement('spacer'); hbox.appendChild(spacer);
                                                spacer.setAttribute('flex','1');
+                                               var deck = document.createElement('deck'); hbox.appendChild(deck);
+                                               var btn = document.createElement('button'); deck.appendChild(btn);
+                                               deck.setAttribute('style','width: 200px; min-width: 200px;');
+                                               btn.setAttribute('label','Change');
+                                               btn.setAttribute('oncommand','this.parentNode.selectedIndex = 1;');
                                                var x; eval( f[1].input );
-                                               if (x) hbox.appendChild(x);
+                                               if (x) deck.appendChild(x);
 
                                        } catch(E) {
                                                g.error.sdump('D_ERROR',E + '\n');