]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - themes/baggy/js/init.js
1 $.fn
.ready(function() {
3 var $listmode
= $('#listmode'),
4 $listentries
= $("#list-entries"),
6 $bagitForm
= $('#bagit-form');
8 /* ==========================================================================
10 ========================================================================== */
12 $("#menu").click(function(){
16 /* ==========================================================================
17 List mode or Table Mode
18 ========================================================================== */
20 $listmode
.click(function(){
21 if ( $.cookie("listmode") == 1 ) {
23 $.removeCookie("listmode");
25 $listentries
.removeClass("listmode");
26 $listmode
.removeClass("tablemode");
27 $listmode
.addClass("listmode");
31 $.cookie("listmode", 1, {expires: 365});
33 $listentries
.addClass("listmode");
34 $listmode
.removeClass("listmode");
35 $listmode
.addClass("tablemode");
40 /* ==========================================================================
42 ========================================================================== */
44 if ( $.cookie("listmode") == 1 ) {
45 $listentries
.addClass("listmode");
46 $listmode
.removeClass("listmode");
47 $listmode
.addClass("tablemode");
50 /* ==========================================================================
52 ========================================================================== */
54 $bagit
.click(function(){
58 /* ==========================================================================
60 ========================================================================== */
62 $(window
).keydown(function(e
){