diff options
author | Phil Hughes <me@iamphill.com> | 2016-09-07 11:29:37 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2016-10-14 03:39:04 +0300 |
commit | ba4e6376e1a6284286d2af46a9f5f1afa6382fd0 (patch) | |
tree | 86838b858b91f7cfb1e82e32f8f465e9058c41d2 /app/assets/javascripts | |
parent | ef5a76f68a89b9bee9070800ceb19753d0c602fe (diff) |
Fixed appending jQuery elements
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js index 06b31b9b24b..e94e7cd8be8 100644 --- a/app/assets/javascripts/gl_dropdown.js +++ b/app/assets/javascripts/gl_dropdown.js @@ -505,6 +505,10 @@ for (var i = 0; i < html.length; i++) { var el = html[i]; + if (el instanceof jQuery) { + el = el.get(0); + } + if (typeof el === 'string') { ul.innerHTML += el; } else { |