EditPane setFieldValue method
authorBill Erickson <berick@esilibrary.com>
Fri, 20 Jul 2012 17:53:35 +0000 (13:53 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 1 Aug 2012 18:23:28 +0000 (14:23 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/web/js/dojo/openils/widget/EditPane.js

index 887015d..6876dd3 100644 (file)
@@ -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({