diff --git a/plinth/modules/backups/static/loading_button.js b/plinth/modules/backups/static/loading_button.js new file mode 100644 index 000000000..bc87c4ca1 --- /dev/null +++ b/plinth/modules/backups/static/loading_button.js @@ -0,0 +1,28 @@ +/* + This file is part of FreedomBox. + + @licstart The following is the entire license notice for the + JavaScript code in this page. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + + @licend The above is the entire license notice + for the JavaScript code in this page. +*/ + + +function swapWithLoadingButton() { + $("#restore_btn").addClass("sr-only"); + $("#loading_btn").removeClass("sr-only"); +} diff --git a/plinth/modules/backups/templates/backups_restore.html b/plinth/modules/backups/templates/backups_restore.html index 5a8ac624f..e940b691d 100644 --- a/plinth/modules/backups/templates/backups_restore.html +++ b/plinth/modules/backups/templates/backups_restore.html @@ -20,6 +20,7 @@ {% load bootstrap %} {% load i18n %} +{% load static %} {% block content %}

{{ title }}

@@ -36,10 +37,17 @@ {{ form|bootstrap }} - + + + + @@ -49,3 +57,8 @@

{% endblock %} + +{% block page_js %} + +{% endblock %} +