Blob Blame History Raw
% # vim:set sts=4 sw=4 ts=4 ft=javascript expandtab:
% if (defined($self->config('fixed_domain')) && $self->config('fixed_domain')) {
    var baseURL = '<%= url_for('/')->host($self->config('fixed_domain'))->to_abs() %>';
% } else {
    var baseURL = '<%= url_for('/')->to_abs() %>';
% }
var actionURL = '<%= url_for('/')->to_abs() %>';
var counterURL = '<%== url_for('counter') %>';
var i18n       = {
    noExpiration:             '<%= l('No expiration delay') %>',
    importProcessed:          '<%= l('The data has been successfully imported.') %>',
    importFilesWithoutPrefix: "<%= l('Lufi recently changed its way to store files information.\n\nNo files have been found in the new localStorage location but we found files in the old one.\nDo you want to import those informations?\n\nPlease note that this is the only time that we will ask you this.') %>",
};
$(document).ready(function() {
    populateFilesTable();
    $('#invertSelection').on('click', invertSelection);
    $('#exportStorage').on('click', exportStorage);
    $('#purgeExpired').on('click', purgeExpired);
    $('#clickImport').on('click', clickImport);
    $('#mass-delete').on('click', massDelete);
});