mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-30 04:51:01 +00:00
Fixed entry shortcuts available in list view
This commit is contained in:
parent
7c6b7a40d1
commit
0df2a4b021
7 changed files with 70 additions and 62 deletions
|
@ -1,6 +1,8 @@
|
||||||
import Mousetrap from 'mousetrap';
|
import Mousetrap from 'mousetrap';
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
|
|
||||||
|
$(document).ready(() => {
|
||||||
|
if ($('#article').length > 0) {
|
||||||
/* Article view */
|
/* Article view */
|
||||||
Mousetrap.bind('o', () => {
|
Mousetrap.bind('o', () => {
|
||||||
$('div#article_toolbar ul.links a.original')[0].click();
|
$('div#article_toolbar ul.links a.original')[0].click();
|
||||||
|
@ -20,3 +22,5 @@ Mousetrap.bind('a', () => {
|
||||||
Mousetrap.bind('del', () => {
|
Mousetrap.bind('del', () => {
|
||||||
$('div#article_toolbar ul.links a.delete')[0].click();
|
$('div#article_toolbar ul.links a.delete')[0].click();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
import Mousetrap from 'mousetrap';
|
import Mousetrap from 'mousetrap';
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
|
|
||||||
|
$(document).ready(() => {
|
||||||
|
if ($('#article').length > 0) {
|
||||||
/* open original article */
|
/* open original article */
|
||||||
Mousetrap.bind('o', () => {
|
Mousetrap.bind('o', () => {
|
||||||
$('ul.side-nav a.original i')[0].click();
|
$('ul.side-nav a.original i')[0].click();
|
||||||
|
@ -20,3 +22,5 @@ Mousetrap.bind('a', () => {
|
||||||
Mousetrap.bind('del', () => {
|
Mousetrap.bind('del', () => {
|
||||||
$('ul.side-nav a.delete i')[0].click();
|
$('ul.side-nav a.delete i')[0].click();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
|
@ -90,7 +90,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a title="{{ 'menu.top.search'|trans }}" class="waves-effect" href="javascript: void(null);" id="nav-btn-search">
|
<a class="waves-effect tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.search'|trans }}" href="javascript: void(null);" id="nav-btn-search">
|
||||||
<i class="material-icons">search</i>
|
<i class="material-icons">search</i>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue