Skip to content

Commit

Permalink
Bug 825592 - Followup 814460 - Add icon from Everything.me on Homescreen
Browse files Browse the repository at this point in the history
  • Loading branch information
samjoch committed Dec 31, 2012
1 parent 7fae199 commit 1901b71
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/homescreen/everything.me/js/etmmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ var EvmeManager = (function EvmeManager() {
GridManager.install(new Bookmark({
bookmarkURL: params.originUrl,
name: params.title,
icon: params.icon
icon: params.icon,
iconable: false
}));
}

Expand Down
6 changes: 6 additions & 0 deletions apps/homescreen/js/bookmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
var Bookmark = function Bookmark(params) {
this.removable = true;

if ('iconable' in params) {
this.iconable = params.iconable;
} else {
this.iconable = true;
}

this.isBookmark = true;
this.url = this.bookmarkURL = this.origin = params.bookmarkURL;

Expand Down
4 changes: 2 additions & 2 deletions apps/homescreen/js/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Icon.prototype = {
},

renderImage: function icon_renderImage(img) {
if( this.app && this.app.isBookmark ) {
if( this.app && this.app.iconable ) {
this.renderImageForBookMark(img);
return;
}
Expand Down Expand Up @@ -730,7 +730,7 @@ Page.prototype = {
};

function getDefaultIcon(app){
if (app && app.isBookmark) {
if (app && app.iconable) {
return Icon.prototype.DEFAULT_BOOKMARK_ICON_URL;
} else {
return Icon.prototype.DEFAULT_ICON_URL;
Expand Down

0 comments on commit 1901b71

Please sign in to comment.