duplicati/Duplicati/Server/webroot/ngax/scripts/menu.js
Kenneth Skovhede e4d8058cd3 Rewrote parts of the user interface.
This adds landing pages to restore and add, as requested in #2282 and #2293.
Added the app icon, and re-arranged the text as requested in #2286
2017-02-07 21:51:14 +01:00

47 lines
1.7 KiB
JavaScript
Executable file

$(document).ready(function() {
$('html').on('click', function(e) {
$('#mainmenu').removeClass('mobile-open');
$('#threedotmenu_add_destination').removeClass('open');
$('#threedotmenu_add_destination_adv').removeClass('open');
$('#threedotmenu_add_source_folders').removeClass('open');
$('#threedotmenu_add_source_filters').removeClass('open');
$('#threedotmenu_add_options_adv').removeClass('open');
});
$('body').on('click', '.menubutton', function(e) {
e.stopPropagation();
e.preventDefault();
$('#mainmenu').toggleClass('mobile-open');
});
$('body').on('click', '#threedotmenubutton_add_destination', function(e) {
e.stopPropagation();
e.preventDefault();
$('#threedotmenu_add_destination').toggleClass('open');
});
$('body').on('click', '#threedotmenubutton_add_destination_adv', function(e) {
e.stopPropagation();
e.preventDefault();
$('#threedotmenu_add_destination_adv').toggleClass('open');
});
$('body').on('click', '#threedotmenubutton_add_source_folders', function(e) {
e.stopPropagation();
e.preventDefault();
$('#threedotmenu_add_source_folders').toggleClass('open');
});
$('body').on('click', '#threedotmenubutton_add_source_filters', function(e) {
e.stopPropagation();
e.preventDefault();
$('#threedotmenu_add_source_filters').toggleClass('open');
});
$('body').on('click', '#threedotmenubutton_add_options_adv', function(e) {
e.stopPropagation();
e.preventDefault();
$('#threedotmenu_add_options_adv').toggleClass('open');
});
});