diff options
author | Phil Hughes <me@iamphill.com> | 2016-12-07 18:27:14 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-12-07 18:27:14 +0300 |
commit | 19fb84e3a897f5b251fb3f437fe365c6ec342c34 (patch) | |
tree | cd721dd07a28c4df5e7ba31665acd9a139326437 /app/assets/javascripts/gl_dropdown.js | |
parent | e09c6df0682c499e221a0da41ac263482fbcf568 (diff) |
Updated members dropdowns
This ports some code over from EE to reduce conflicts
Diffstat (limited to 'app/assets/javascripts/gl_dropdown.js')
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js index 969778dded7..9a91018a8e4 100644 --- a/app/assets/javascripts/gl_dropdown.js +++ b/app/assets/javascripts/gl_dropdown.js @@ -650,6 +650,11 @@ } else if(value) { field = this.dropdown.parent().find("input[name='" + fieldName + "'][value='" + value.toString().replace(/'/g, '\\\'') + "']"); } + + if (this.options.isSelectable && !this.options.isSelectable(selectedObject, el)) { + return; + } + if (el.hasClass(ACTIVE_CLASS)) { el.removeClass(ACTIVE_CLASS); if (field && field.length) { |