Changeset 232

Show
Ignore:
Timestamp:
05/10/07 16:26:24 (6 years ago)
Author:
stefanp
Message:

added a reduced setValue method to Component.File:
previously, the mime object from the file upload was saved as a property.
no we either have a setter for the upload component or nothing is done with the uploaded file.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • jala/trunk/code/Form.js

    r231 r232  
    20432043}; 
    20442044 
    2045  
    2046  
     2045/** 
     2046 * Overrides Component.Input#setValue. For file uploads, there is no 
     2047 * default property saving. A file upload can either be handled using 
     2048 * a setter method or saved from outside the save method. 
     2049 * @param {Object} destObj (optional) object whose values will be changed. 
     2050 * @param {Object} value The value to set the property to 
     2051 * @returns True in case the update was successful, false otherwise. 
     2052 * @see jala.Form#setter 
     2053 */ 
     2054jala.Form.Component.File.prototype.setValue = function(destObj, value) { 
     2055   if (this.setter) { 
     2056      this.setter.call(destObj, this.name, value); 
     2057   } 
     2058   return; 
     2059}; 
    20472060 
    20482061