6 new, 4 modified for 1.3.5
[webos-internals:djcin7s-modifications.git] / messaging / messaging-audio-video-attachments.patch
1 --- .orig/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
2 +++ /usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
3 @@ -60,7 +60,7 @@
4                 this.messageTemplatePath = 'chatview/message/';
5                 
6                 this.appMenuAddPictureItem = {
7 -                       label: $L('Add picture...'),
8 +                       label: $L('Attach...'),
9                         command: 'addPicture',
10                         disabled: false
11                 };
12 @@ -2422,7 +2422,7 @@
13         attachFilePicker: function(event){
14                 var params = {
15                         actionType: 'attach',
16 -                       kinds: ['image'], // TODO: integrate other media types
17 +                       kinds: ['image','audio','video'], // TODO: integrate other media types
18                         defaultKind: 'image',
19                         onSelect: this.handleFilePickerSelect.bind(this)
20                 };
21 \ No newline at end of file
22 --- .orig/usr/palm/applications/com.palm.app.messaging/app/controllers/compose-assistant.js
23 +++ /usr/palm/applications/com.palm.app.messaging/app/controllers/compose-assistant.js
24 @@ -15,7 +15,7 @@
25                         this.toggleDebugMenu = listviewSceneAssistant.toggleDebugMenu.bind(listviewSceneAssistant,true);
26                 }
27  
28 -               this.appMenuAddPictureItem = {label: $L('Add picture...'), command:'addPicture', enabled:true};
29 +               this.appMenuAddPictureItem = {label: $L('Attach...'), command:'addPicture', enabled:true};
30  
31                 this.appMenuAttrs = {omitDefaultItems: true};   
32                 this.appMenuModel = { visible:true, label: $L('Chat view menu'), items: [Mojo.Menu.editItem,this.appMenuAddPictureItem,Mojo.Menu.helpItem]};   
33 @@ -330,7 +330,7 @@
34    attachFilePicker: function(event) {   
35      var params = {
36                 actionType: 'attach',
37 -        kinds: ['image'], // TODO: integrate other media types
38 +        kinds: ['image','audio','video'], // TODO: integrate other media types
39          defaultKind: 'image',
40          onSelect: this.handleFilePickerSelect.bind(this)
41      };