aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/baggy/public/js/init.js
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-21 16:04:05 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-21 16:04:05 +0100
commit0440249631164a378981d014bf71b617c082bf5a (patch)
tree740d4e798c954374f115927ebc434d393368ab46 /themes/baggy/public/js/init.js
parent3eb951572d3f22ad37395afceb4a739ad8cd0fd6 (diff)
downloadwallabag-0440249631164a378981d014bf71b617c082bf5a.tar.gz
wallabag-0440249631164a378981d014bf71b617c082bf5a.tar.zst
wallabag-0440249631164a378981d014bf71b617c082bf5a.zip
move templates into resources
Diffstat (limited to 'themes/baggy/public/js/init.js')
-rwxr-xr-xthemes/baggy/public/js/init.js51
1 files changed, 0 insertions, 51 deletions
diff --git a/themes/baggy/public/js/init.js b/themes/baggy/public/js/init.js
deleted file mode 100755
index 74cbae68..00000000
--- a/themes/baggy/public/js/init.js
+++ /dev/null
@@ -1,51 +0,0 @@
1$.fn.ready(function() {
2
3 var $listmode = $('#listmode'),
4 $listentries = $("#list-entries");
5
6 /* ==========================================================================
7 Menu
8 ========================================================================== */
9
10 $("#menu").click(function(){
11 $("#links").toggleClass('menu--open');
12 if ($('#content').hasClass('opacity03')) {
13 $('#content').removeClass('opacity03');
14 }
15 });
16
17 /* ==========================================================================
18 List mode or Table Mode
19 ========================================================================== */
20
21 $listmode.click(function(){
22 if ( $.cookie("listmode") == 1 ) {
23 // Cookie
24 $.removeCookie("listmode");
25
26 $listentries.removeClass("listmode");
27 $listmode.removeClass("tablemode");
28 $listmode.addClass("listmode");
29 }
30 else {
31 // Cookie
32 $.cookie("listmode", 1, {expires: 365});
33
34 $listentries.addClass("listmode");
35 $listmode.removeClass("listmode");
36 $listmode.addClass("tablemode");
37 }
38
39 });
40
41 /* ==========================================================================
42 Cookie listmode
43 ========================================================================== */
44
45 if ( $.cookie("listmode") == 1 ) {
46 $listentries.addClass("listmode");
47 $listmode.removeClass("listmode");
48 $listmode.addClass("tablemode");
49 }
50
51});