14 New, 1 Updated patches
[webos-internals:imagineer1981s-modifications.git] / browser / browser-new-card-button.patch
1 diff --git a/usr/palm/applications/com.palm.app.browser/app/controllers/page-controls.js b/usr/palm/applications/com.palm.app.browser/app/controllers/page-controls.js
2 index 965e167..fad83d5 100644
3 --- a/usr/palm/applications/com.palm.app.browser/app/controllers/page-controls.js
4 +++ b/usr/palm/applications/com.palm.app.browser/app/controllers/page-controls.js
5 @@ -26,6 +26,13 @@ PageControls = Class.create({
6                         command: MenuData.NavigationMenu.Forward.command
7                 };
8  
9 +               this._newcardModel = {
10 +                       disabled: false,
11 +                       label: MenuData.NavigationMenu.NewCard.label,
12 +                       icon: MenuData.NavigationMenu.NewCard.icon,
13 +                       command: MenuData.NavigationMenu.NewCard.command
14 +               };
15 +
16                 this._model = {
17                         visible: true,
18                         items: [this._backModel, {}, {}]
19 @@ -48,6 +55,7 @@ PageControls = Class.create({
20                         this._model.items.push(idleModel);
21                 }
22  
23 +               this._model.items.push(this._newcardModel);
24                 this._controller.setupWidget(Mojo.Menu.commandMenu, {menuClass: 'no-fade'}, this._model);
25         },
26  
27 @@ -74,6 +82,7 @@ PageControls = Class.create({
28  
29                 // The spacer... right aligns the following button.
30                 items.push({});
31 +               items.push(this._newcardModel);
32  
33                 this._back = back;
34                 this._forward = forward;
35 diff --git a/usr/palm/applications/com.palm.app.browser/app/controllers/page-navigationmenu.js b/usr/palm/applications/com.palm.app.browser/app/controllers/page-navigationmenu.js
36 index 0271a5b..e82d1b1 100644
37 --- a/usr/palm/applications/com.palm.app.browser/app/controllers/page-navigationmenu.js
38 +++ b/usr/palm/applications/com.palm.app.browser/app/controllers/page-navigationmenu.js
39 @@ -22,6 +22,12 @@ MenuData.NavigationMenu = {
40                 command: 'stop'
41         },
42         
43 +       NewCard: {
44 +               label: $L('New Card'),
45 +               icon: 'new',
46 +               command: 'new-page-cmd'
47 +       },
48 +       
49         Reload: {
50                 label: $L('Reload'),
51                 icon: 'refresh',