Fix filter dialog for pkey fields, scrolliness issue, saved filters issue
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 21 Sep 2012 21:05:08 +0000 (17:05 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 21 Sep 2012 21:05:08 +0000 (17:05 -0400)
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/templates/url_verify/review_attempt.tt2
Open-ILS/web/js/dojo/openils/widget/FlattenerFilterDialog.js
Open-ILS/web/js/dojo/openils/widget/PCrudFilterPane.js

index d232589..21118a0 100644 (file)
@@ -40,6 +40,7 @@
         autoCoreFields="true"
         autoCoreFieldsFilter="true"
         autoCoreFieldsUnsorted="true"
+        savedFiltersInterface="'url_verify'"
         fetchLock="true"
         mapExtras="{attempt_id:{path:'attempt.id',filter:true,_label:'[% l("Attempt ID") %]'}}"
         showLoadFilter="true"
index 187b69f..bad2762 100644 (file)
@@ -6,6 +6,24 @@ if (!dojo._hasResource["openils.widget.FlattenerFilterDialog"]) {
     dojo.declare(
         "openils.widget.FlattenerFilterDialog", [
             dijit.Dialog, openils.widget.FlattenerFilterPane
-        ]
+        ], {
+            "constructor": function() {
+                dojo.connect(
+                    this, "postCreate", this,
+                    function() {
+                        /* Of course I don't *want* to hardcode 400px below,
+                         * but without some kind of maxHeight, this dialog
+                         * can just grow forever, until it's no longer
+                         * possible to access the close button on the top or
+                         * the buttons at the bottom. */
+                        dojo.style(
+                            this.domNode, {
+                                "maxHeight": "400px", "overflow": "auto"
+                            }
+                        );
+                    }
+                );
+            }
+        }
     );
 }
index 9aaa0b1..e19099a 100644 (file)
@@ -526,6 +526,7 @@ if (!dojo._hasResource['openils.widget.PCrudFilterPane']) {
                 var widg = new constr({
                     "fmClass": this.selected_field_fm_class,
                     "fmField": this.selected_field_fm_field,
+                    "noDisablePkey": true,
                     "parentNode": dojo.create("span", {}, this.value_slot),
                     "dijitArgs": {"scrollOnFocus": false}
                 });