apply the edit dialog class in the dialog, not the editpane
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Feb 2009 15:36:34 +0000 (15:36 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Feb 2009 15:36:34 +0000 (15:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12305 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/EditDialog.js
Open-ILS/web/js/dojo/openils/widget/EditPane.js

index 3db5a13..68f8434 100644 (file)
@@ -13,6 +13,7 @@ if(!dojo._hasResource['openils.widget.EditDialog']) {
     dojo.provide('openils.widget.EditDialog');
     dojo.require('openils.widget.EditPane');
     dojo.require('dijit.Dialog');
+    dojo.require('openils.Util');
 
     /**
      * Given a fieldmapper object, this builds a pop-up dialog used for editing the object
@@ -49,6 +50,7 @@ if(!dojo._hasResource['openils.widget.EditDialog']) {
                 this.inherited(arguments);
                 this.editPane.startup();
                 this.domNode.appendChild(this.editPane.domNode);
+                openils.Util.addCSSClass(this.editPane.table, 'oils-fm-edit-dialog');
             }
         }
     );
index 3d02e21..aef97bc 100644 (file)
@@ -32,7 +32,7 @@ if(!dojo._hasResource['openils.widget.EditPane']) {
                 if(this.readOnly)
                     this.hideActionButtons = true;
 
-                var table = document.createElement('table');
+                var table = this.table = document.createElement('table');
                 var tbody = document.createElement('tbody');
                 this.domNode.appendChild(table);
                 table.appendChild(tbody);
@@ -80,8 +80,6 @@ if(!dojo._hasResource['openils.widget.EditPane']) {
                 }
                 if(!this.hideActionButtons)
                     this.buildActionButtons(tbody);
-    
-                openils.Util.addCSSClass(table, 'oils-fm-edit-dialog');
             },
 
             applySaveOnEnter : function(widget) {