1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-24 10:37:23 +00:00

Add sendtokindle-drop to click-off array

This commit is contained in:
hexeth 2019-01-18 11:07:50 -08:00 committed by GitHub
parent 16e23cb1fe
commit d83ba315f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,8 @@ return $(this).text().replace(/^\s+|^\t+|\t+|\s+$/g, "");
$( '<button id="btnGroupDrop1" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-download"></span>Download :<span class="caret"></span></button><ul class="dropdown-menu leramslist aria-labelledby="btnGroupDrop1"></ul>' ).insertBefore( downloads[downloads.length-1] );
$( downloads ).detach();
$.each(downloads, function(i, val) {
$( '<li>' + downloads[i].outerHTML + '</li>' ).appendTo( '.leramslist' );
$( '<li>' + downloads[i].outerHTML + '</li>' ).appendTo( '.lerams
' );
});
$( '.leramslist' ).find( 'span' ).remove();
$( '.leramslist a' ).removeClass( 'btn btn-primary' ).removeAttr( 'role' );
@ -292,6 +293,7 @@ $(document).mouseup(function (e) {
var container = new Array();
container.push($('ul[aria-labelledby="read-in-browser"]'));
container.push($('.leramslist'));
container.push($('sendtokindle-drop'));
container.push($('#add-to-shelves'));
container.push($('.navbar-collapse.collapse.in'));