From: erickson Date: Thu, 26 Feb 2009 15:36:34 +0000 (+0000) Subject: apply the edit dialog class in the dialog, not the editpane X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e1e2a799a8a088f5e20780cba0c6c1e45eb895e4;p=evergreen%2Ftadl.git apply the edit dialog class in the dialog, not the editpane git-svn-id: svn://svn.open-ils.org/ILS/trunk@12305 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/widget/EditDialog.js b/Open-ILS/web/js/dojo/openils/widget/EditDialog.js index 3db5a136b8..68f84340f5 100644 --- a/Open-ILS/web/js/dojo/openils/widget/EditDialog.js +++ b/Open-ILS/web/js/dojo/openils/widget/EditDialog.js @@ -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'); } } ); diff --git a/Open-ILS/web/js/dojo/openils/widget/EditPane.js b/Open-ILS/web/js/dojo/openils/widget/EditPane.js index 3d02e218e6..aef97bc267 100644 --- a/Open-ILS/web/js/dojo/openils/widget/EditPane.js +++ b/Open-ILS/web/js/dojo/openils/widget/EditPane.js @@ -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) {