From 1f075a4a166b32e9d3ab0ceda9c9bc7beb187880 Mon Sep 17 00:00:00 2001
From: Raman Gupta
Date: Sat, 18 Jan 2014 01:56:23 -0500
Subject: [PATCH] Added link to delicious.com in popup footer
---
assets/javascripts/popup.js | 6 ++++++
popup.html | 1 +
updated.html | 4 ++++
3 files changed, 11 insertions(+)
diff --git a/assets/javascripts/popup.js b/assets/javascripts/popup.js
index 1e40297..047a50f 100644
--- a/assets/javascripts/popup.js
+++ b/assets/javascripts/popup.js
@@ -502,6 +502,10 @@
var manifest = chrome.runtime.getManifest();
return manifest.name + ' ' + manifest.version;
};
+
+ $scope.username = function() {
+ return localStorage.getItem('chrome-ext-delicious-username');
+ };
});
controllers.controller('LoginCtrl', function($scope, $rootScope, $location, delicious) {
@@ -510,10 +514,12 @@
delicious.authenticate($scope.username, $scope.password)
.success(function(data) {
+ localStorage.setItem('chrome-ext-delicious-username', $scope.username);
$rootScope.loggedIn = true;
$location.path('/new');
})
.error(function(data) {
+ localStorage.removeItem('chrome-ext-delicious-username', $scope.username);
$rootScope.loginFailed = true;
$location.path('/new');
});
diff --git a/popup.html b/popup.html
index 2a2f150..4c63a1f 100644
--- a/popup.html
+++ b/popup.html
@@ -23,6 +23,7 @@
| Options
| Follow
| Beer me
+ | Delicious.com
| Logout
diff --git a/updated.html b/updated.html
index d4a49d1..f1ec3ae 100644
--- a/updated.html
+++ b/updated.html
@@ -21,6 +21,9 @@ Note: When using Delicious.com and this extension, multiple t
New Features
+ -
+ Added link to delicious.com in popup. Thanks @Rocketraman
+
-
Added option to single-space delimit tags when user's tags contain no spaces. Thanks @Rocketraman
@@ -71,6 +74,7 @@ Changelog
Version 2.9.6 (in development)
+ - Feature - add link to delicious.com.
- Feature - handle single space delimited tags via user option.