;
-
+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
diff --git a/img/icons/icon512x512.png b/img/icons/icon512x512.png
new file mode 100644
index 0000000..ac3e5cc
Binary files /dev/null and b/img/icons/icon512x512.png differ
diff --git a/index.html b/index.html
index 2b2ad6a..2a1cab2 100644
--- a/index.html
+++ b/index.html
@@ -1,4 +1,19 @@
+
@@ -67,7 +82,7 @@
- Visit the source code
+ Visit the source code
ToDoList is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/js/app.js b/js/app.js
index 4fff16c..d6106d5 100644
--- a/js/app.js
+++ b/js/app.js
@@ -1,3 +1,19 @@
+/* This file is part of ToDo List.
+
+ ToDo List is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ToDo List 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.
+
+ You should have received a copy of the GNU General Public License
+ along with ToDo List. If not, see .
+ */
+
// DOMContentLoaded is fired once the document has been loaded and parsed,
// but without waiting for other external resources to load (css/images/etc)
// That makes the app more responsive and perceived as faster.
@@ -175,5 +191,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
+ });
+ });
}
});
diff --git a/js/init.js b/js/init.js
index d26176f..2d04b0e 100644
--- a/js/init.js
+++ b/js/init.js
@@ -1,4 +1,20 @@
- $.afui.autoLaunch = false; //By default, it is set to true and you're app will run right away. We set it to false to show a splashscreen
+/* This file is part of ToDo List.
+
+ ToDo List is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ ToDo List 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.
+
+ You should have received a copy of the GNU General Public License
+ along with ToDo List. If not, see .
+ */
+
+$.afui.autoLaunch = false; //By default, it is set to true and you're app will run right away. We set it to false to show a splashscreen
/* This function runs when the content is loaded.*/
$(document).ready(function(){
setTimeout(function(){