Merged with master

This commit is contained in:
José Carlos Cuevas 2015-02-25 09:49:20 +01:00
commit b8cd4a405c
7 changed files with 89 additions and 4 deletions

View file

@ -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.

View file

@ -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

View file

@ -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

BIN
img/icons/icon512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View file

@ -1,4 +1,19 @@
<!DOCTYPE html>
<!-- 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 http://www.gnu.org/licenses/.
-->
<html>
<head>
<meta charset="utf-8">
@ -67,7 +82,7 @@
<div style="width: 30%; margin: 0 auto;">
<img src="img/icons/icon.svg" style="width: 100%; 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

View file

@ -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 <http://www.gnu.org/licenses/>.
*/
// 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
});
});
}
});

View file

@ -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 <http://www.gnu.org/licenses/>.
*/
$.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(){