From f502f9e4265603e47f9747d4dc30ee73c26dac07 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 Signed-off-by: Lebbeous Fogle-Weekley --- 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 887015dacd..6876dd3b69 100644 --- a/Open-ILS/web/js/dojo/openils/widget/EditPane.js +++ b/Open-ILS/web/js/dojo/openils/widget/EditPane.js @@ -237,6 +237,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.43.2