-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
2,052 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/etc/hosts b/etc/hosts | ||
index 6d85b45..8c76832 100644 | ||
--- a/etc/hosts | ||
+++ b/etc/hosts | ||
@@ -1,2 +1,12 @@ | ||
127.0.0.1 localhost.localdomain localhost | ||
+127.0.0.1 rrmprod.amobee.com | ||
+127.0.0.1 vfdeprod.amobee.com | ||
+127.0.0.1 akamai.smartadserver.com | ||
+127.0.0.1 www4.smartadserver.com | ||
+127.0.0.1 img.ads.mocean.mobi | ||
+127.0.0.1 img.ads1.mocean.mobi | ||
+127.0.0.1 img.ads2.mocean.mobi | ||
+127.0.0.1 im.banner.t-online.de | ||
+127.0.0.1 dynimages.handy.de | ||
+127.0.0.1 adserver.yoc.mobi | ||
127.0.0.1 palm-webos | ||
\ No newline at end of file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js b/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js | ||
index 388cffc..4ab3150 100644 | ||
--- a/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js | ||
+++ b/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js | ||
@@ -1828,12 +1828,12 @@ PageAssistant.prototype._shareUrl = function(url, title, withCapture) { | ||
this._webView.mojo.saveViewToFile(captureFile); | ||
} | ||
|
||
- var msg = $L("Here's a website I think you'll like: <a href='#{src}'>#{title}</a>").interpolate( | ||
+ var msg = $L("<br><br><br> <a href='#{src}'>#{title}</a>").interpolate( | ||
{src: url, title: title}); | ||
var parameters = { | ||
id: 'com.palm.app.email', | ||
params: { | ||
- summary: $L('Check out this web page...'), | ||
+ summary: $L(''), | ||
text: msg | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
diff --git a/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js b/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js | ||
index 388cffc..828696d 100644 | ||
--- a/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js | ||
+++ b/usr/palm/applications/com.palm.app.browser/app/controllers/page-assistant.js | ||
@@ -224,7 +224,7 @@ PageAssistant.prototype.orientationChanged = function(event) { | ||
// Switch the orientation of the menu spacer or other components.. | ||
//Mojo.Log.info("ORIENTATIONCHANGED: old: %s, new: %s", this._orientation, orientation); | ||
var targetWindow = this.controller.window; | ||
- if (this._orientation === event.orientation) { | ||
+ if (this._orientation) { | ||
return; | ||
} | ||
|
||
@@ -455,7 +455,7 @@ PageAssistant.prototype.ready = function() { | ||
|
||
// Update the web preferences. | ||
AppAssistant.WebPreferences.activate(this._webView.mojo); | ||
- | ||
+ this._orientation = "free"; | ||
// Set the initial orientation. | ||
this._setOrientation(this._orientation); | ||
|
||
@@ -629,6 +629,7 @@ PageAssistant.prototype._onWebViewSingleTap = function(event) { | ||
if (event.altKey) { | ||
|
||
var popupItems = [ | ||
+ {label: $L('Lock Screen'), command:'lockScreen'}, | ||
{label: $L('Open In New Card'), command:'openNew'}, | ||
{label: $L('Share Link'), command:'shareUrl'}, | ||
{label: $L('Copy URL'), command:'copyUrl'}, | ||
@@ -674,6 +675,9 @@ PageAssistant.prototype._onWebViewSingleTap = function(event) { | ||
var popupSelectFunc = function(value) { | ||
selectedCommand = value; | ||
switch (value) { | ||
+ case 'lockScreen': | ||
+ this.lockScreen(urlInfo.url); | ||
+ break; | ||
case 'openNew': | ||
this._newBrowserPage(urlInfo.url); | ||
break; | ||
@@ -700,6 +704,7 @@ PageAssistant.prototype._onWebViewSingleTap = function(event) { | ||
imageInfo = response; | ||
var usedItems = []; | ||
if (urlInfo.url) { | ||
+ usedItems.push( findItem('lockScreen') ); | ||
usedItems.push( findItem('openNew') ); | ||
usedItems.push( findItem('shareUrl') ); | ||
usedItems.push( findItem('copyUrl') ); | ||
@@ -1846,6 +1851,16 @@ PageAssistant.prototype._shareUrl = function(url, title, withCapture) { | ||
method: 'open', | ||
parameters: parameters | ||
}); | ||
+};PageAssistant.prototype.lockScreen = function(link) { | ||
+ if (this.controller.stageController.setWindowOrientation) { | ||
+ if(this.isWindowLocked){ | ||
+ this.controller.stageController.setWindowOrientation(Mojo.Controller.appController.getScreenOrientation()); | ||
+ this.isWindowLocked = false; | ||
+ }else{ | ||
+ this.controller.stageController.setWindowOrientation("free"); | ||
+ this.isWindowLocked = true; | ||
+ } | ||
+ } | ||
}; | ||
|
||
PageAssistant.prototype._setWallpaper = function(pathToImage) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
diff --git a/usr/palm/applications/com.palm.app.calendar/app/controllers/edit-assistant.js b/usr/palm/applications/com.palm.app.calendar/app/controllers/edit-assistant.js | ||
index 7b4c244..e1fdca5 100644 | ||
--- a/usr/palm/applications/com.palm.app.calendar/app/controllers/edit-assistant.js | ||
+++ b/usr/palm/applications/com.palm.app.calendar/app/controllers/edit-assistant.js | ||
@@ -581,20 +581,62 @@ var EditAssistant = Class.create({ | ||
list: [ 'none', // Do NOT Localize | ||
'-PT0M', //DO NOT Localize | ||
'-PT5M', // Do Not Localize | ||
- '-PT10M', //Do not localize | ||
'-PT15M', // Do NOT Localize | ||
'-PT30M', // Do NOT Localize | ||
'-PT1H', // Do NOT Localize | ||
- '-P1D' // Do NOT Localize | ||
+ '-PT90M', // Do NOT Localize | ||
+ '-PT2H', // Do NOT Localize | ||
+ '-PT3H', // Do NOT Localize | ||
+ '-PT4H', // Do NOT Localize | ||
+ '-PT6H', // Do NOT Localize | ||
+ '-PT8H', // Do NOT Localize | ||
+ '-PT10H', // Do NOT Localize | ||
+ '-PT12H', // Do NOT Localize | ||
+ '-PT23H', // Do NOT Localize | ||
+ '-P1D', // Do NOT Localize | ||
+ '-P36H', // Do NOT Localize | ||
+ '-P2D', // Do NOT Localize | ||
+ '-P60H', // Do NOT Localize | ||
+ '-P3D', // Do NOT Localize | ||
+ '-P84H', // Do NOT Localize | ||
+ '-P4D', // Do NOT Localize | ||
+ '-P5D', // Do NOT Localize | ||
+ '-P6D', // Do NOT Localize | ||
+ '-P1W', // Do NOT Localize | ||
+ '-P2W', // Do NOT Localize | ||
+ '-P3W', // Do NOT Localize | ||
+ '-P4W', // Do NOT Localize | ||
+ '-P8W', // Do NOT Localize | ||
+ '-P12W', // Do NOT Localize | ||
+ '-P16W', // Do NOT Localize | ||
+ '-P20W', // Do NOT Localize | ||
+ '-P24W', // Do NOT Localize | ||
+ '-P52W' // Do NOT Localize | ||
] | ||
}, | ||
alarmsAllday: { | ||
list: [ 'none', // Do NOT Localize | ||
'-PT0M',// DO NOT Localize | ||
+ '-PT12H', // DO NOT Localize | ||
'-P1D', // Do NOT Localize | ||
+ '-PT36H', // DO NOT Localize | ||
'-P2D', // Do NOT Localize | ||
+ '-PT60H', // DO NOT Localize | ||
'-P3D', // Do NOT Localize | ||
- '-P1W' // Do NOT Localize | ||
+ '-PT84H', // DO NOT Localize | ||
+ '-P4D', // Do NOT Localize | ||
+ '-P5D', // Do NOT Localize | ||
+ '-P6D', // Do NOT Localize | ||
+ '-P1W', // Do NOT Localize | ||
+ '-P2W', // Do NOT Localize | ||
+ '-P3W', // Do NOT Localize | ||
+ '-P4W', // Do NOT Localize | ||
+ '-P8W', // Do NOT Localize | ||
+ '-P12W', // Do NOT Localize | ||
+ '-P16W', // Do NOT Localize | ||
+ '-P20W', // Do NOT Localize | ||
+ '-P24W', // Do NOT Localize | ||
+ '-P52W' // Do NOT Localize | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/usr/palm/services/com.palm.service.calendar.google/javascript/utils/xhr.js b/usr/palm/services/com.palm.service.calendar.google/javascript/utils/xhr.js | ||
index 6240d9a..055e036 100644 | ||
--- a/usr/palm/services/com.palm.service.calendar.google/javascript/utils/xhr.js | ||
+++ b/usr/palm/services/com.palm.service.calendar.google/javascript/utils/xhr.js | ||
@@ -30,6 +30,9 @@ var XMLHttpRequest = Class.create({ | ||
|
||
setRequestHeader: function (name, value) { | ||
//Utils.log("\n\n\n--->>> new request header. name: " + name + " value: " + value + " \n\n"); | ||
+ if (name == "Content-Length") { | ||
+ return; | ||
+ } | ||
this.options.headers[name] = value; | ||
}, | ||
|
Oops, something went wrong.