From 7e73bc98e7a7c42651a8c8c4ef10788106387bb0 Mon Sep 17 00:00:00 2001 From: Zhang Chi Date: Thu, 14 Jul 2011 21:58:43 +0800 Subject: [PATCH] fix login bug and up to 1.0.6 --- background.js | 5 ++++- manifest.json | 2 +- popup.html | 3 ++- popup.js | 11 +++++++++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index d4beb99..73106d7 100644 --- a/background.js +++ b/background.js @@ -67,6 +67,7 @@ var updatePageInfo = function (url) { var login = function (name, pwd) { // test auth + pwd = encodeURIComponent(pwd); var path = 'https://' + name + ':' + pwd + at + pathBody + 'posts/update'; var jqxhr = $.ajax({url: path, type : 'GET', @@ -89,7 +90,9 @@ var login = function (name, pwd) { }); _getTags(); } else { - // error + // error + var popup = chrome.extension.getViews({type: 'popup'})[0]; + popup.loginFailed(); } }); }; diff --git a/manifest.json b/manifest.json index 9f17cbf..152693f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Pinboard Plus", - "version": "1.0.5", + "version": "1.0.6", "description": "A better chrome extension for Pinboard (http://pinboard.in). Easy to know current page has been saved or not.", "browser_action": { "default_icon": "icon_grey_19.png", diff --git a/popup.html b/popup.html index 4ab09f7..faa4988 100644 --- a/popup.html +++ b/popup.html @@ -125,6 +125,7 @@
Loading...