EditPane setFieldValue method
authorBill Erickson <berick@esilibrary.com>
Fri, 20 Jul 2012 17:53:35 +0000 (13:53 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 31 Jul 2012 20:02:40 +0000 (16:02 -0400)
Signed-off-by: Bill Erickson <berick@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({