]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - app/Resources/static/themes/baggy/js/uiTools.js
1 import $ from 'jquery';
3 function toggleSaveLinkForm(url
, event
) {
4 $('#add-link-result').empty();
6 const $bagit
= $('#bagit');
7 const $bagitForm
= $('#bagit-form');
9 $bagit
.toggleClass('active-current');
11 // only if bag-it link is not presented on page
12 if ($bagit
.length
=== 0) {
13 if (event
!== 'undefined' && event
) {
14 $bagitForm
.css({ position: 'absolute', top: event
.pageY
, left: event
.pageX
- 200 });
16 $bagitForm
.css({ position: 'relative', top: 'auto', left: 'auto' });
20 const searchForm
= $('#search-form');
21 const plainUrl
= $('#plainurl');
22 if (searchForm
.length
!== 0) {
23 $('#search').removeClass('current');
24 $('#search-arrow').removeClass('arrow-down');
28 $('#content').toggleClass('opacity03');
29 if (url
!== 'undefined' && url
) {
35 export default toggleSaveLinkForm
;