updates and additions
[webos-internals:djcin7s-modifications.git] / messaging / messaging-send-memo-to-text-message.patch
1 diff --git a/usr/palm/applications/com.palm.app.notes/app/controllers/note-assistant.js b/usr/palm/applications/com.palm.app.notes/app/controllers/note-assistant.js
2 index e6a5050..753688f 100644
3 --- a/usr/palm/applications/com.palm.app.notes/app/controllers/note-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.notes/app/controllers/note-assistant.js
5 @@ -212,6 +212,22 @@ var NoteAssistant = Class.create(
6                         }
7                 }));
8         },
9 +        
10 +        $menu_text_memo_cmd: function(event)
11 +       {
12 +               (new Mojo.Service.Request('palm://com.palm.applicationManager',
13 +               {
14 +                       method: 'open',
15 +                       parameters:
16 +                       {
17 +                               id: 'com.palm.app.messaging',
18 +                               params:
19 +                               {
20 +                                       messageText: this._getTEXTNote()
21 +                               }
22 +                       }
23 +               }));
24 +       },
25         
26         $menu_delete_memo_cmd: function(event)
27         {
28 @@ -415,5 +431,11 @@ var NoteAssistant = Class.create(
29                 // Convert multiple spaces into  ...
30                 val = val.replace(/ {2}/g, "  ");
31                 return val;
32 +       },
33 +        
34 +        _getTEXTNote: function()
35 +       {
36 +               var val = this.$widget_noteText.getValue();
37 +               return val;
38         }
39  });
40 diff --git a/usr/palm/applications/com.palm.app.notes/app/views/note/note-scene.html b/usr/palm/applications/com.palm.app.notes/app/views/note/note-scene.html
41 index 38257c8..a438dec 100644
42 --- a/usr/palm/applications/com.palm.app.notes/app/views/note/note-scene.html
43 +++ b/usr/palm/applications/com.palm.app.notes/app/views/note/note-scene.html
44 @@ -7,6 +7,7 @@
45                         <div x-mojo-action="palm-paste-cmd">Paste</div>
46                 </div>
47                 <div x-mojo-loc="" x-mojo-action="email-memo-cmd">Email memo...</div>
48 +                <div x-mojo-loc="" x-mojo-action="text-memo-cmd">Text memo...</div>
49                 <div x-mojo-loc="" x-mojo-action="delete-memo-cmd">Delete</div>
50                 <div x-mojo-loc="" x-mojo-action="palm-help-cmd">Help</div>
51         </div>