updates and additions
[webos-internals:jeffrotulls-modifications.git] / browser / browser-fix-no-bookmarks-displayed-bug.patch
1 diff --git a/usr/palm/applications/com.palm.app.browser/app/controllers/bookmarks-assistant.js b/usr/palm/applications/com.palm.app.browser/app/controllers/bookmarks-assistant.js
2 index 1310a2a..92e10a0 100644
3 --- a/usr/palm/applications/com.palm.app.browser/app/controllers/bookmarks-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.browser/app/controllers/bookmarks-assistant.js
5 @@ -31,7 +31,7 @@ BookmarksAssistant.prototype.setup = function() {
6                                                  listTemplate:'bookmarks/bookmarks-container',
7                                                  itemsCallback:this._retrieveItemsCallback.bind(this),
8                                                  swipeToDelete:true,
9 -                                                reorderable:true});
10 +                                                reorderable:true}, this.bookmarksModel);
11                 this.bookmarksListWidget = this.controller.get('bookmarksList');
12  
13                 this._onListSelectionHandler = this._onListSelection.bind(this);
14 @@ -178,6 +178,8 @@ BookmarksAssistant.prototype._onBookmarksReadSuccess = function(bookmarkFolder)
15                 }
16  
17                 this.bookmarksListWidget.mojo.setLength(this.bookmarksModel.length);
18 +               this.controller.setWidgetModel('bookmarksList', this.bookmarksModel)
19 +               this.controller.modelChanged(this.bookmarksModel, this);
20         }
21         finally {
22                 this.usingBookmarksDb = false;