Augment the update example to turn black if the server is not responding.
This commit is contained in:
parent
e9731c7b1f
commit
19cbf37f5e
|
@ -23,6 +23,7 @@ var updateColor = function($http, server) {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
})
|
})
|
||||||
.error(function(data) {
|
.error(function(data) {
|
||||||
|
server.color = "#000";
|
||||||
console.log(data);
|
console.log(data);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue