Fix pattern wizard
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 26 Jul 2012 20:18:02 +0000 (16:18 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 30 Jul 2012 14:54:38 +0000 (10:54 -0400)
CSS3 selectors break things. And some height would be nice.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/xul/staff_client/server/serial/pattern_wizard.js
Open-ILS/xul/staff_client/server/serial/scap_editor.js

index 6874719..68c58d3 100644 (file)
@@ -245,7 +245,7 @@ function RegularityRow() {
 
     this.allow_year_split = function(yes) {
         dojo.attr(
-            dojo.query("[name='type_and_code_pattern'] [value='y:YYYY']")[0],
+            dojo.query("[value='y:YYYY']",dojo.query("[name='type_and_code_pattern']")[0])[0],
             "disabled",
             !yes
         );
@@ -423,10 +423,11 @@ function CalendarChangeEditor() {
         this.template.removeAttribute("id");
 
         [
-            dojo.query("[name='month'] menupopup", this.template)[0],
-            dojo.query("[name='date_month'] menupopup", this.template)[0]
+            dojo.query("[name='month']", this.template)[0],
+            dojo.query("[name='date_month']", this.template)[0]
         ].forEach(
             function(menupopup) {
+                menupopup = dojo.query("menupopup", menupopup)[0];
                 _menulist(
                     _chronstants.month.values,
                     _chronstants.month.names,
index fef8a0f..31b1e52 100644 (file)
@@ -142,7 +142,7 @@ serial.scap_editor.prototype = {
         window.openDialog(
             xulG.url_prefix("XUL_SERIAL_PATTERN_WIZARD"),
             "pattern_wizard",
-            "width=800",
+            "width=800,height=400",
             onsubmit
         );
     },