Created
July 16, 2016 00:35
-
-
Save teone/1d1dd67ab0f754f0522326713158dae3 to your computer and use it in GitHub Desktop.
returning...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(this.model.site){ | |
var options_list = this.config.fields.site.options; | |
var selectVal = _.find(options_list,['id',this.model.site]); | |
if(selectVal && this.model.name){ | |
return (this.model.name.toLowerCase().indexOf(selectVal.label.toLowerCase()) === 0) ; | |
} | |
else{ | |
return false; | |
} | |
} | |
else{ | |
return false; | |
} | |
// can be | |
if(this.model.site){ | |
var options_list = this.config.fields.site.options; | |
var selectVal = _.find(options_list,['id',this.model.site]); | |
if(selectVal && this.model.name){ | |
return (this.model.name.toLowerCase().indexOf(selectVal.label.toLowerCase()) === 0) ; | |
} | |
} | |
return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment