mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-22 09:01:01 +00:00
Added shortcut
This commit is contained in:
parent
32f455c131
commit
995c204428
7 changed files with 19 additions and 5 deletions
|
@ -0,0 +1,7 @@
|
|||
$(document).ready(() => {
|
||||
Mousetrap.bind('s', () => {
|
||||
$('#search').trigger('click');
|
||||
$('#search_entry_term').focus();
|
||||
return false;
|
||||
});
|
||||
});
|
|
@ -30,6 +30,12 @@ $(document).ready(() => {
|
|||
/* Actions */
|
||||
Mousetrap.bind('g n', () => {
|
||||
$('#nav-btn-add').trigger('click');
|
||||
return false;
|
||||
});
|
||||
|
||||
Mousetrap.bind('s', () => {
|
||||
$('#nav-btn-search').trigger('click');
|
||||
return false;
|
||||
});
|
||||
|
||||
Mousetrap.bind('esc', () => {
|
||||
|
|
|
@ -364,3 +364,4 @@ fos_js_routing:
|
|||
- developer
|
||||
- howto
|
||||
- logout
|
||||
- new
|
||||
|
|
|
@ -1034,7 +1034,7 @@ class EntryControllerTest extends WallabagCoreTestCase
|
|||
|
||||
$crawler = $client->submit($form, $data);
|
||||
|
||||
$this->assertCount(4, $crawler->filter('div[class=entry]'));
|
||||
$this->assertCount(5, $crawler->filter('div[class=entry]'));
|
||||
|
||||
// Search on starred list
|
||||
$crawler = $client->request('GET', '/starred/list');
|
||||
|
@ -1078,7 +1078,7 @@ class EntryControllerTest extends WallabagCoreTestCase
|
|||
|
||||
$form = $crawler->filter('form[name=search]')->form();
|
||||
$data = [
|
||||
'search_entry[term]' => 'pocket',
|
||||
'search_entry[term]' => 'wxcvbnqsdf', // a string not available in the database
|
||||
];
|
||||
|
||||
$crawler = $client->submit($form, $data);
|
||||
|
|
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