update
[webos-internals:modifications.git] / browser / browser-no-clear-history.patch
1 diff --git a/usr/palm/applications/com.palm.app.browser/app/controllers/history-assistant.js b/usr/palm/applications/com.palm.app.browser/app/controllers/history-assistant.js
2 index 7f6d335..a344d59 100644
3 --- a/usr/palm/applications/com.palm.app.browser/app/controllers/history-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.browser/app/controllers/history-assistant.js
5 @@ -19,13 +19,13 @@ function HistoryAssistant(webPreferences) {
6         this.historyStore = new HistoryStore({});
7  }
8  
9 -HistoryAssistant.Menu = {
10 +//HistoryAssistant.Menu = {
11  
12 -       Clear: {
13 -               label: $L('Clear History'),
14 -               command: 'clear-history-command'
15 -       }
16 -};
17 +       //Clear: {
18 +       //      label: $L('Clear History'),
19 +       //      command: 'clear-history-command'
20 +       //}
21 +//};
22  
23  HistoryAssistant.prototype.setup = function() {
24         this.historyModel=[];
25 @@ -37,7 +37,7 @@ HistoryAssistant.prototype.setup = function() {
26                         items: [
27                                 MenuData.ApplicationMenu.ShowBookmarks,
28                                 MenuData.ApplicationMenu.ShowHistory,
29 -                               HistoryAssistant.Menu.Clear
30 +                               //HistoryAssistant.Menu.Clear
31                         ]
32                 };
33  
34 @@ -105,9 +105,9 @@ HistoryAssistant.prototype.handleCommand = function(event) {
35                                                 this._openBookmarkView();
36                                                 break;
37  
38 -                                       case HistoryAssistant.Menu.Clear.command:
39 -                                               this._clearHistory();
40 -                                               break;
41 +                                       //case HistoryAssistant.Menu.Clear.command:
42 +                                       //      this._clearHistory();
43 +                                       //      break;
44  
45                                         case Mojo.Menu.prefsCmd:
46                                                 this._openPreferencesView();
47 diff --git a/usr/palm/applications/com.palm.app.browser/app/views/preferences/preferences-scene.html b/usr/palm/applications/com.palm.app.browser/app/views/preferences/preferences-scene.html
48 index ede7991..dbb067e 100644
49 --- a/usr/palm/applications/com.palm.app.browser/app/views/preferences/preferences-scene.html
50 +++ b/usr/palm/applications/com.palm.app.browser/app/views/preferences/preferences-scene.html
51 @@ -50,7 +50,6 @@
52              </div>
53          </div>
54      </div>
55 -    <div class="palm-button" id="clear_history_button" x-mojo-tap-highlight="momentary" x-mojo-loc=''>Clear History</div>
56      <div class="palm-button" id="clear_cookies_button" x-mojo-tap-highlight="momentary" x-mojo-loc=''>Clear Cookies</div>
57      <div class="palm-button" id="clear_cache_button" x-mojo-tap-highlight="momentary" x-mojo-loc=''>Clear Cache</div>
58         <div class="scroll-fade-bottom" x-mojo-scroll-fade="bottom"></div>