Changeset 438


Ignore:
Timestamp:
03/26/12 13:47:06 (12 years ago)
Author:
vmipsl
Message:

Select _ getValues()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tapas/web/resources/js/classesForJQuery/Select.js

    r382 r438  
    3939        this.isHover = false; 
    4040        this.arrayOptions = $(); 
     41        this.values = $(); 
    4142        this.className = objectParameter.className ? "select_container " + objectParameter.className : "select_container"; 
    4243        this.classNameOption = objectParameter.classNameOption ? "select_choicelist " + objectParameter.classNameOption : "select_choicelist"; 
     
    8687    { 
    8788        return this.itemValue; 
     89    }, 
     90 
     91    getValues: function() 
     92    { 
     93        return this.values; 
    8894    }, 
    8995 
     
    174180 
    175181        this.arrayOptions.push( divOptionMiddle ); 
     182        this.values.push( itemValue ); 
    176183    }, 
    177184 
     
    186193                var index = jQuery.inArray( divOption, this.arrayOptions ); 
    187194                this.arrayOptions.splice( index, 1 ); 
     195                this.values.splice( index, 1 ); 
    188196                return false; 
    189197            } 
     
    196204        this.divOption.empty(); 
    197205        this.arrayOptions = $(); 
     206        this.values = $(); 
    198207    }, 
    199208 
Note: See TracChangeset for help on using the changeset viewer.