Skip to content
Permalink
Browse files

https for gh-pages

  • Loading branch information...
Daniel Lerch
Daniel Lerch committed May 22, 2018
1 parent 1b3666f commit 088da1cb2b6e8ca7a46f729d41c7ef59ef18b1ed
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/TaskList.js
@@ -35,7 +35,7 @@ TaskList.prototype.render = function () {
*/
TaskList.prototype.save = function () {
var that = this;
var url = 'http://zhaw.herokuapp.com/task_lists/';
var url = 'https://zhaw.herokuapp.com/task_lists/';
if (this.id) {
url += this.id;
}
@@ -50,10 +50,10 @@ TaskList.prototype.save = function () {
*/
TaskList.load = function (id, callback) {
var taskList = new TaskList();
$.getJSON('http://zhaw.herokuapp.com/task_lists/' + id, function (returnedData) {
taskList.id = returnedData.id;
taskList.title = returnedData.title;
$.each(returnedData.tasks, function (index, task) {
$.getJSON('https://zhaw.herokuapp.com/task_lists/' + id, function (returnedData) {
taskList.id = returnedData.id;
taskList.title = returnedData.title;
$.each(returnedData.tasks, function (index, task) {
var t = taskList.createTask(task.title);
t.done = task.done;
});

0 comments on commit 088da1c

Please sign in to comment.
You can’t perform that action at this time.