some reverts

This commit is contained in:
Jeena 2014-02-21 11:35:58 +01:00
parent 5d3be078b4
commit 01cb207b65
4 changed files with 20 additions and 31 deletions

View file

@ -46,7 +46,7 @@ Pond.prototype.doOperation = function(method, operation, new_options, callback)
body = a.join("&");
}
var xhr = new XMLHttpRequest();
var xhr = new XMLHttpRequest({mozSystem: true});
xhr.onreadystatechange = function() {
if(xhr.readyState == 4) {
if(xhr.status == 200) {
@ -76,7 +76,7 @@ Pond.prototype.reload = function(callback) {
Pond.prototype.getUnreadFeeds = function(callback, skip) {
var options = {
status: "unread",
status: "all",
limit: 100
};
@ -134,6 +134,8 @@ Pond.prototype.normalizeArticle = function(article) {
var timestamp = new Date(article.published_at).getTime() / 1000;
console.log(article.read)
return {
id: article.id,
guid_hash: article.url + article.id,
@ -207,7 +209,7 @@ Pond.login = function(server_url, user, password, callback) {
var password_hash = md5(user + ':' + password)
var options = "username=" + user.toLowerCase() + "&" + "password=" + password_hash;
var xhr = new XMLHttpRequest();
var xhr = new XMLHttpRequest({mozSystem: true});
xhr.onreadystatechange = function() {
if(xhr.readyState == 4) {
if(xhr.status == 201) {