andlio

Untitled

May 11th, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function(mocs){
  2.     Array.forEach(mocs, function(mocObj, mocIdx){
  3.         _this.mocsSelect.addOption({label: mocObj.name, value: mocObj.id});
  4.     });
  5.    
  6.     // Default selection
  7.     if(_this.formObject && _this.formObject.mocId > 0){
  8.         _this.mocsSelect.set("value", _this.formObject.mocId);
  9.         //_this.mocsSelect.attr("value", _this.formObject.mocId);
  10.     }
  11.    
  12.     _this.areMocsLoaded = true;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment