Skip to content
Permalink
Browse files

Merge pull request #1895 from internetarchive/hotfix/hide-add-list-cl…

…ickout

fixing click-outside readinglog btn
  • Loading branch information...
mekarpeles committed Feb 16, 2019
2 parents b840fc8 + 0466a9a commit 5fe3e192228c2c392b700c1e7ba3e4a2ca910321
Showing with 8 additions and 0 deletions.
  1. +8 −0 openlibrary/plugins/openlibrary/js/ol.js
@@ -405,6 +405,14 @@ $(function(){
$(this).closest('.arrow').toggleClass("up");
}, 300, false));

$(document).on('click', function(e) {
var container = $("#widget-add");
if (!container.is(e.target) && container.has(e.target).length === 0) {
$(container).find('.dropdown').slideUp(25);
$(container).find('.arrow').removeClass("up");
}
});

/* eslint-disable no-unused-vars */
// success function receives data on successful request
$('.reading-log-lite select').change(function(e) {

0 comments on commit 5fe3e19

Please sign in to comment.
You can’t perform that action at this time.