[open-ils-commits] r11937 - trunk/Open-ILS/web/js/dojo/openils/widget
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 23 12:10:10 EST 2009
Author: erickson
Date: 2009-01-23 12:10:07 -0500 (Fri, 23 Jan 2009)
New Revision: 11937
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/EditDialog.js
trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js
Log:
allow config settings to be passed in via args object to constructor
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/EditDialog.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/EditDialog.js 2009-01-23 16:40:58 UTC (rev 11936)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/EditDialog.js 2009-01-23 17:10:07 UTC (rev 11937)
@@ -14,8 +14,8 @@
{
editPane : null, // reference to our EditPane object
- constructor : function() {
- this.editPane = new openils.widget.EditPane();
+ constructor : function(args) {
+ this.editPane = new openils.widget.EditPane(args);
var self = this;
this.editPane.onCancel = function() { self.hide(); }
this.editPane.onPostApply = function() { self.hide(); }
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js 2009-01-23 16:40:58 UTC (rev 11936)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/EditPane.js 2009-01-23 17:10:07 UTC (rev 11937)
@@ -22,6 +22,11 @@
onCancel : null, // cancel callback
hideActionButtons : false,
+ constructor : function(args) {
+ for(var k in args)
+ this[k] = args[k];
+ },
+
/**
* Builds a basic table of key / value pairs. Keys are IDL display labels.
* Values are dijit's, when values set
More information about the open-ils-commits
mailing list