Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(mocs){
- Array.forEach(mocs, function(mocObj, mocIdx){
- _this.mocsSelect.addOption({"label": mocObj.name, "value": mocObj.id});
- console.log("label:" + mocObj.name + " ; value:" + mocObj.id);
- });
- // Default selection
- if(_this.formObject && _this.formObject.mocId > 0){
- _this.mocsSelect.set("value", 741);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment