Skip to content

Commit

Permalink
add pages for support and rating extension
Browse files Browse the repository at this point in the history
  • Loading branch information
opus1269 committed Apr 7, 2015
1 parent b34efa9 commit ebbcbb3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions options.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ t.addEventListener('template-bound', function (e) {
{name: 'Settings',hash: 'one', icon: 'settings', url: '/settings.html'},
{name: 'Google+ Photo Albums', hash: 'two', icon: 'cloud-queue', url: '/sources.html'},
{name: 'Preview (click to close)', hash: 'three', icon: 'pageview', url: null},
{name: 'Information for Nerds', hash: 'four', icon: 'info-outline', url: '/info.html'}
];
{name: 'Information for Nerds', hash: 'four', icon: 'info-outline', url: '/info.html'},
{ name: 'Request Support / Report Bug', hash: 'five', icon: 'help', url: null },
{ name: 'Rate This Extension', hash: 'six', icon: 'grade', url: null }
];

t.albumList = [];

Expand Down Expand Up @@ -187,7 +189,13 @@ t.menuItemSelected = function (e, detail, sender) {
localStorage.isPreview = 'true';
chrome.extension.getBackgroundPage().showScreenSaver();
}
}
else if (detail.item.id === 'menuItem4') {
chrome.tabs.create({url: 'https://chrome.google.com/webstore/detail/photo-screen-saver/kohpcmlfdjfdggcjmjhhbcbankgmppgc/support'});
}
else if (detail.item.id === 'menuItem5') {
chrome.tabs.create({ url: 'https://chrome.google.com/webstore/detail/photo-screen-saver/kohpcmlfdjfdggcjmjhhbcbankgmppgc/reviews' });
}
}
};

t.ajaxLoad = function (e, detail, sender) {
Expand Down

0 comments on commit ebbcbb3

Please sign in to comment.