Added clearing database functionality and fixed link in about

master
José Carlos Cuevas 9 years ago
parent 8e0e8f6f89
commit 53b14ec674

@ -21,3 +21,7 @@ about_text_1 = ToDoList is free software: you can redistribute it and/or modify
about_text_2 = ToDoList 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 General Public License for more details.
about_text_3 = You should have received a copy of the GNU General Public License along with ToDoList. If not, see <http://www.gnu.org/licenses/>.
about_text_4 = Started and written originally by José Carlos Cuevas <reset (dot) reboot (at) gmail (dot) com>
warning_popup_title = Warning - All data will be lost
warning_popup_message = This will erase all data and it cannot be undone. Are you sure you want to reset the app?
warning_popup_cancel = Cancel
warning_popup_done = Ok

@ -21,4 +21,7 @@ about_text_1 = ToDoList is free software: you can redistribute it and/or modify
about_text_2 = ToDoList 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 General Public License for more details.
about_text_3 = You should have received a copy of the GNU General Public License along with ToDoList. If not, see <http://www.gnu.org/licenses/>.
about_text_4 = Iniciado y escrito originalmente por José Carlos Cuevas <reset (punto) reboot (arroba) gmail (punto) com>;
warning_popup_title = Peligro - Toda la información se perderá
warning_popup_message = Esto borrará toda la información y no se puede deshacer. ¿Está seguro de que quiere reiniciar la aplicación?
warning_popup_cancel = Cancelar
warning_popup_done = Aceptar

@ -67,7 +67,7 @@
<div style="width: 60px; margin: 0 auto;">
<img src="img/icons/icon60x60.png" style="width: 60px; margin: auto;"/>
</div>
<a href="https://github.com/resetreboot/todolist" style="margin: 0 auto;" data-l10n-id="visit_repo">Visit the source code</a>
<a href="https://github.com/resetreboot/todolist" style="margin: 0 auto;" data-ignore="true" target="_blank" data-l10n-id="visit_repo">Visit the source code</a>
<p data-l10n-id="about_text_1">
ToDoList is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

@ -175,5 +175,20 @@ window.addEventListener('DOMContentLoaded', function() {
var listID = $('#delete_list').data('currentlist');
deleteListClicked(listID);
});
$('#reset_app').click(function() {
$.afui.popup({
title: translate('warning_popup_title'),
message: translate('warning_popup_message'),
cancelText: translate('warning_popup_cancel'),
doneText: translate('warning_popup_done'),
doneCallback: function() {
$('ul#list_of_lists').find('[id^=list_]').parent().remove();
db.lists.clear();
db.items.clear();
},
cancelOnly: false
});
});
}
});

Loading…
Cancel
Save