diff --git a/supysonic/static/css/supysonic.css b/supysonic/static/css/supysonic.css index eab0969..2e84c4c 100644 --- a/supysonic/static/css/supysonic.css +++ b/supysonic/static/css/supysonic.css @@ -1,8 +1,11 @@ /* - * supysonic.css - * Copyright (C) 2017 Óscar García Amor + * This file is part of Supysonic. + * Supysonic is a Python implementation of the Subsonic server API. * - * Distributed under terms of the GNU GPLv3 license. + * Copyright (C) 2017 Óscar García Amor + * 2017 Alban 'spl0k' Féron + * + * Distributed under terms of the GNU AGPLv3 license. */ body { diff --git a/supysonic/static/js/supysonic.js b/supysonic/static/js/supysonic.js new file mode 100644 index 0000000..e207c69 --- /dev/null +++ b/supysonic/static/js/supysonic.js @@ -0,0 +1,17 @@ +/* + * This file is part of Supysonic. + * Supysonic is a Python implementation of the Subsonic server API. + * + * Copyright (C) 2017 Óscar García Amor + * 2017 Alban 'spl0k' Féron + * + * Distributed under terms of the GNU AGPLv3 license. + */ + +$(function () { + $('[data-toggle="tooltip"]').tooltip() +}); + +$('#confirm-delete').on('show.bs.modal', function(e) { + $(this).find('.btn-ok').attr('href', $(e.relatedTarget).data('href')); +}); diff --git a/supysonic/templates/folders.html b/supysonic/templates/folders.html index 3369cef..109da30 100644 --- a/supysonic/templates/folders.html +++ b/supysonic/templates/folders.html @@ -24,9 +24,9 @@ {% for folder in folders %}