From 1f05b66a78899496b87716399d1093c399e93fea Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 20 Jul 2012 13:53:35 -0400 Subject: [PATCH] EditPane setFieldValue method Signed-off-by: Bill Erickson --- Open-ILS/web/js/dojo/openils/widget/EditPane.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Open-ILS/web/js/dojo/openils/widget/EditPane.js b/Open-ILS/web/js/dojo/openils/widget/EditPane.js index ee4a9395ee..7318ceca2a 100644 --- a/Open-ILS/web/js/dojo/openils/widget/EditPane.js +++ b/Open-ILS/web/js/dojo/openils/widget/EditPane.js @@ -221,6 +221,15 @@ if(!dojo._hasResource['openils.widget.EditPane']) { } }, + setFieldValue : function(field, val) { + for(var i in this.fieldList) { + if(field == this.fieldList[i].name) { + this.fieldList[i].widget.widget.attr('value', val); + } + } + }, + + performAutoEditAction : function() { var self = this; self.performEditAction({ -- 2.11.0