5 new, 1 updated patches.
[webos-internals:modifications.git] / browser / browser-auto-hide-all-icons-after-page-load.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..a87dbc1 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 @@ -27,7 +27,7 @@ PageControls = Class.create({
6                 };
7  
8                 this._model = {
9 -                       visible: true,
10 +                       visible: false,
11                         items: [this._backModel, {}, {}]
12                 };
13  
14 @@ -63,7 +63,7 @@ PageControls = Class.create({
15  
16                 var items = $A();
17                 this._backModel.disabled = !back;
18 -               items.push(this._backModel);
19 +               items.push(false);
20  
21                 if (forward) {
22                         this._forwardModel.disabled = !forward;
23 @@ -73,7 +73,7 @@ PageControls = Class.create({
24                 }
25  
26                 // The spacer... right aligns the following button.
27 -               items.push({});
28 +               items.push(false);
29  
30                 this._back = back;
31                 this._forward = forward;
32 @@ -84,7 +84,7 @@ PageControls = Class.create({
33         updateBackForward: function(back, forward) {
34  
35                 // Add the back/forward buttons
36 -               this._model.items = this._setBackForward(back, forward);
37 +               this._model.items = this._setBackForward(false);
38                 // The spacer... right aligns the following button.
39                 this._model.items.push(this._currentPageModel);
40  
41 @@ -107,11 +107,13 @@ PageControls = Class.create({
42                 }
43  
44                 // Add the back/forward buttons
45 -               this._model.items = this._setBackForward(this._back, this._forward);
46 +               this._model.items = this._setBackForward(false);
47                 // The spacer... right aligns the following button.
48                 this._model.items.push(idleModel);
49                 this._controller.modelChanged(this._model);
50  
51 +               this._controller.setMenuVisible(Mojo.Menu.commandMenu, false);
52 +               
53                 this._currentPageModel = idleModel;
54         },
55  
56 @@ -137,11 +139,13 @@ PageControls = Class.create({
57                         });
58  
59                         // Add the back/forward buttons
60 -                       this._model.items = this._setBackForward(this._back, this._forward);
61 +                       this._model.items = this._setBackForward(false);
62                         this._model.items.push(progressModel);
63                         this._controller.modelChanged(this._model);
64                         this._animation.start(0);
65  
66 +                   this._controller.setMenuVisible(Mojo.Menu.commandMenu, true);
67 +               
68                         this._currentPageModel = progressModel;
69  
70                 } catch (e) {
71 @@ -182,11 +186,13 @@ PageControls = Class.create({
72                         });
73  
74                         // Add the back/forward buttons
75 -                       this._model.items = this._setBackForward(this._back, this._forward);
76 +                       this._model.items = this._setBackForward(false);
77                         this._model.items.push(searchModel);
78                         this._controller.modelChanged(this._model);
79                         this._animation.start();
80  
81 +               this._controller.setMenuVisible(Mojo.Menu.commandMenu, true);                   
82 +                       
83                         this._currentPageModel = searchModel;
84  
85                 } catch (e) {