diff --git a/README.md b/README.md index 50fc9c8..9fef2fd 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ # ToDo List -A simple ToDo webapp, tested on FirefoxOS 1.3. +Manage and take care of your list of things to do, with this little app. + +## Multiple list support + +Don't mix things up: You can have multiple lists, each with their own "to dos" or tasks so +it's great if your're into GTD or simply want to have your personal and your work tasks +separate. + +## Language support + +Right now, we only support english and spanish. But we're open to other languages, feel free to +translate. + +## Free as in freedom + +This program has been licensed under the GPLv3 license. No spying you, no hidden costs, all freedom +to study, improve and share. \ No newline at end of file diff --git a/data/en-US.properties b/data/en-US.properties index 95cf3eb..a287627 100644 --- a/data/en-US.properties +++ b/data/en-US.properties @@ -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 . about_text_4 = Started and written originally by José Carlos Cuevas +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 diff --git a/data/es.properties b/data/es.properties index e4e8416..64d0781 100644 --- a/data/es.properties +++ b/data/es.properties @@ -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 . about_text_4 = Iniciado y escrito originalmente por José Carlos Cuevas ; - +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(){