mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-23 17:42:15 -05:00
fix for #830
This commit is contained in:
parent
8fd0512a3c
commit
48fb171d7a
@ -10,6 +10,14 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$("#search").click(function(){
|
$("#search").click(function(){
|
||||||
closeSearch();
|
closeSearch();
|
||||||
|
// if other popup is already shown
|
||||||
|
if ($("#bagit-form").length != 0) {
|
||||||
|
$("#bagit").removeClass("active-current");
|
||||||
|
$('#content').removeClass("opacity03");
|
||||||
|
$("#bagit").removeClass("current");
|
||||||
|
$("#bagit-arrow").removeClass("arrow-down");
|
||||||
|
$("#bagit-form").hide();
|
||||||
|
}
|
||||||
$('#searchfield').focus();
|
$('#searchfield').focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ $.fn.ready(function() {
|
|||||||
|
|
||||||
$bagit.toggleClass("active-current");
|
$bagit.toggleClass("active-current");
|
||||||
|
|
||||||
//only if bagiti link is not presented on page
|
//only if bag-it link is not presented on page
|
||||||
if ( $bagit.length === 0 ) {
|
if ( $bagit.length === 0 ) {
|
||||||
if ( event !== 'undefined' && event ) {
|
if ( event !== 'undefined' && event ) {
|
||||||
$bagitForm.css( {position:"absolute", top:event.pageY, left:event.pageX-200});
|
$bagitForm.css( {position:"absolute", top:event.pageY, left:event.pageX-200});
|
||||||
@ -23,6 +23,11 @@ $.fn.ready(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($("#search-form").length != 0) {
|
||||||
|
$("#search").removeClass("current");
|
||||||
|
$("#search-arrow").removeClass("arrow-down");
|
||||||
|
$("#search-form").hide();
|
||||||
|
}
|
||||||
$bagitForm.toggle();
|
$bagitForm.toggle();
|
||||||
$('#content').toggleClass("opacity03");
|
$('#content').toggleClass("opacity03");
|
||||||
if (url !== 'undefined' && url) {
|
if (url !== 'undefined' && url) {
|
||||||
|
Loading…
Reference in New Issue
Block a user