]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/js/dojo/openils/widget/FlattenerFilterDialog.js
LP#1482400: when activating a PO, provide better progress updates
[working/Evergreen.git] / Open-ILS / web / js / dojo / openils / widget / FlattenerFilterDialog.js
1 if (!dojo._hasResource["openils.widget.FlattenerFilterDialog"]) {
2     dojo.provide("openils.widget.FlattenerFilterDialog");
3     dojo.require("openils.widget.FlattenerFilterPane");
4     dojo.require("dijit.Dialog");
5
6     dojo.declare(
7         "openils.widget.FlattenerFilterDialog", [
8             dijit.Dialog, openils.widget.FlattenerFilterPane
9         ], {
10             "constructor": function() {
11                 dojo.connect(
12                     this, "postCreate", this,
13                     function() {
14                         /* Of course I don't *want* to hardcode 400px below,
15                          * but without some kind of maxHeight, this dialog
16                          * can just grow forever, until it's no longer
17                          * possible to access the close button on the top or
18                          * the buttons at the bottom. */
19                         dojo.style(
20                             this.domNode, {
21                                 "maxHeight": "400px", "overflow": "auto"
22                             }
23                         );
24                     }
25                 );
26             }
27         }
28     );
29 }