Skip to content

Commit

Permalink
Added version update notifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis.gid committed May 16, 2010
1 parent 8386033 commit ca63243
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
11 changes: 10 additions & 1 deletion js/popup.js
@@ -1,4 +1,5 @@
var selectedTags = [];
var version = '1.1.3';
var selectedTags = [];
var delicious = chrome.extension.getBackgroundPage().delicious;
var notifications;
var postList = null;
Expand Down Expand Up @@ -69,6 +70,14 @@ document.addEvent('domready', function(){
new SortMenu('post_sort', postList);
new SortMenu('tag_sort', tagList);

//Notifications

//dont't show version update notification on install
if(localStorage['version'] && localStorage['version'] < version){
notifications.add('felicious has been updated (<a href="javascript:chrome.tabs.create({url: \'options.html\'});">changelog</a>)');
}
localStorage['version'] = version;

chrome.extension.onRequest.addListener(function(request){
if(request == 'updated'){
notifications.add('Your bookmarks have been updated');
Expand Down
8 changes: 8 additions & 0 deletions options.html
Expand Up @@ -57,10 +57,18 @@ <h3>Credits</h3>
</p>

<h3>Changelog</h3>
<h4>0.1.3</h4>
<p>
Improved startup time of the popup menu and added a tag cloud view.
</p>
<h4>0.1.2</h4>
<p>
Added an edit button for each bookmark and fixed tab navigation when a search term is entered.
</p>

<p>
Mercurial repository at <a href="http://bitbucket.org/dennis.gid/felicious">http://bitbucket.org/dennis.gid/felicious</a>
</p>
</div>
</body>
</html>

0 comments on commit ca63243

Please sign in to comment.