mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-01 19:12:48 +00:00
32da2a70ef
Re-defined the config / user relation to be OneToOne bidirectionnal. ConfigType is now a service so I can inject the list of available themes that are also used by LiipThemeBundle Force sqlite for test In case of people use a different driver in parameter.yml (yes I do :))
52 lines
1.4 KiB
JavaScript
Executable file
52 lines
1.4 KiB
JavaScript
Executable file
$.fn.ready(function() {
|
|
|
|
var $listmode = $('#listmode'),
|
|
$listentries = $("#list-entries");
|
|
|
|
/* ==========================================================================
|
|
Menu
|
|
========================================================================== */
|
|
|
|
$("#menu").click(function(){
|
|
$("#links").toggleClass('menu--open');
|
|
if ($('#content').hasClass('opacity03')) {
|
|
$('#content').removeClass('opacity03');
|
|
}
|
|
});
|
|
|
|
/* ==========================================================================
|
|
List mode or Table Mode
|
|
========================================================================== */
|
|
|
|
$listmode.click(function(){
|
|
if ( $.cookie("listmode") == 1 ) {
|
|
// Cookie
|
|
$.removeCookie("listmode");
|
|
|
|
$listentries.removeClass("listmode");
|
|
$listmode.removeClass("tablemode");
|
|
$listmode.addClass("listmode");
|
|
}
|
|
else {
|
|
// Cookie
|
|
$.cookie("listmode", 1, {expires: 365});
|
|
|
|
$listentries.addClass("listmode");
|
|
$listmode.removeClass("listmode");
|
|
$listmode.addClass("tablemode");
|
|
}
|
|
|
|
});
|
|
|
|
/* ==========================================================================
|
|
Cookie listmode
|
|
========================================================================== */
|
|
|
|
if ( $.cookie("listmode") == 1 ) {
|
|
$listentries.addClass("listmode");
|
|
$listmode.removeClass("listmode");
|
|
$listmode.addClass("tablemode");
|
|
}
|
|
|
|
});
|