aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/material/index.js
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-01-19 22:08:29 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-01-19 22:24:10 +0100
commit50f35f0db2be9586205e793f315608eec59c9666 (patch)
tree0f88f3ab6ad32db026494a7104341c45ee997515 /app/Resources/static/themes/material/index.js
parent9a57653aec85b0f5220436d5cb76545e66c24a11 (diff)
downloadwallabag-50f35f0db2be9586205e793f315608eec59c9666.tar.gz
wallabag-50f35f0db2be9586205e793f315608eec59c9666.tar.zst
wallabag-50f35f0db2be9586205e793f315608eec59c9666.zip
Move icon into the top menu bar
Change the way to select a random entry: - select all ids from the given user (with filters) - choose randomly one in php - find that entry
Diffstat (limited to 'app/Resources/static/themes/material/index.js')
-rwxr-xr-xapp/Resources/static/themes/material/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js
index 96310d81..05794597 100755
--- a/app/Resources/static/themes/material/index.js
+++ b/app/Resources/static/themes/material/index.js
@@ -8,7 +8,7 @@ import 'materialize-css/dist/js/materialize';
8import '../_global/index'; 8import '../_global/index';
9 9
10/* Tools */ 10/* Tools */
11import { initExport, initFilters } from './js/tools'; 11import { initExport, initFilters, initRandom } from './js/tools';
12 12
13/* Import shortcuts */ 13/* Import shortcuts */
14import './js/shortcuts/main'; 14import './js/shortcuts/main';
@@ -32,8 +32,10 @@ $(document).ready(() => {
32 format: 'dd/mm/yyyy', 32 format: 'dd/mm/yyyy',
33 container: 'body', 33 container: 'body',
34 }); 34 });
35
35 initFilters(); 36 initFilters();
36 initExport(); 37 initExport();
38 initRandom();
37 39
38 const toggleNav = (toShow, toFocus) => { 40 const toggleNav = (toShow, toFocus) => {
39 $('.nav-panel-actions').hide(100); 41 $('.nav-panel-actions').hide(100);