update
[webos-internals:modifications.git] / memos / memos-open-memos-app-to-new-memo-page.patch
1 diff --git a/usr/palm/applications/com.palm.app.notes/app/controllers/grid-assistant.js b/usr/palm/applications/com.palm.app.notes/app/controllers/grid-assistant.js
2 index aa69a78..bcd7d8c 100644
3 --- a/usr/palm/applications/com.palm.app.notes/app/controllers/grid-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.notes/app/controllers/grid-assistant.js
5 @@ -2,7 +2,7 @@
6  /*global Globalization, Class: false, Mojo: false, $L: false, Template: false, Event: false, Form: false, Weave: false, GridList: false, Note: false*/
7  
8  /* Copyright 2009 Palm, Inc.  All rights reserved. */
9 -
10 +var count = 1;
11  var GridAssistant = Class.create(
12  {
13         $widget_noteGrid: null,
14 @@ -52,7 +52,11 @@ var GridAssistant = Class.create(
15         {
16                 //this.controller.listen(this.controller.get("filterField"), Mojo.Event.filter, this.filter.bind(this), true);
17                 this.controller.listen(this.controller.get("filterField"), Mojo.Event.filterImmediate, this.$filter_filterField.bind(this), true);
18 -               if (newMemoText){
19 +               if (count == 1){
20 +                       this._handleNewNote(newMemoText);       
21 +                        count++;                       
22 +               }
23 +                if (newMemoText){
24                         this._handleNewNote(newMemoText);                               
25                 }
26         },