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
www-data
committed
Jun 16, 2011
1 parent
b5b5ca9
commit 8779e97
Showing
3 changed files
with
100 additions
and
10 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
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,51 @@ | ||
diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js | ||
index 2cb234a..5bb1ce3 100644 | ||
--- a/usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js | ||
+++ b/usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js | ||
@@ -480,15 +480,17 @@ var CalllogAssistant = Class.create({ | ||
}; | ||
view_contact = Mojo.View.render({template: 'calllog/listitem_contact', object: template_model}); | ||
} | ||
- | ||
+ | ||
var element = Mojo.View.convertToNode('<div name="rowdrawer" class="calllogdetails" x-mojo-element="Drawer"> ' | ||
- + call_details + '<div name="contact_numbers_placeholder"></div>' + view_contact | ||
+ + call_details + '<div name="contact_numbers_placeholder"></div>' | ||
+ + '<div class="palm-row" x-mojo-touch-feedback="momentary" name="dolookup" value="' + itemModel.contactId + '" number="' + itemModel.number + '"><div class="palm-row-wrapper"><div class="title truncating-text">Reverse Lookup (AU)</div></div></div>' | ||
+ + view_contact | ||
+ '</div>', this.controller.window.document); | ||
|
||
itemNode.querySelector(".palm-row-wrapper").appendChild(element); | ||
|
||
this.loadContactNumbers(element, itemModel, is_valid); | ||
- | ||
+ | ||
// no 'add to contact' or altnum row | ||
if ( ! is_valid && itemModel.contactId == -1 ) { | ||
element.querySelector('div[name="call-log-details-row"]').removeClassName('first').addClassName('single'); | ||
@@ -620,6 +622,25 @@ var CalllogAssistant = Class.create({ | ||
this.dialNumber(details.number, itemModel.contactId, details.label); | ||
} | ||
return; | ||
+ | ||
+ case "dolookup": | ||
+ // Launch the Browser with Reverse Australia lookup | ||
+ TheLookupURL = "http://www.reverseaustralia.com/lookup/" + target.getAttribute('number') + "/"; | ||
+ TheLookupURL = TheLookupURL.replace("+","00"); | ||
+ | ||
+ | ||
+ this.controller.serviceRequest("palm://com.palm.applicationManager", { | ||
+ method: "open", | ||
+ parameters: { | ||
+ id: 'com.palm.app.browser', | ||
+ params: { | ||
+ target: TheLookupURL | ||
+ } | ||
+ } | ||
+ }); | ||
+ | ||
+ return; | ||
+ | ||
|
||
case "contact": | ||
if ( target.getAttribute('value') == -1 ) { |
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,48 @@ | ||
diff --git a/usr/palm/applications/com.palm.app.phone/app/views/pin/pin-scene.html b/usr/palm/applications/com.palm.app.phone/app/views/pin/pin-scene.html | ||
index c95e0d3..4909458 100644 | ||
--- a/usr/palm/applications/com.palm.app.phone/app/views/pin/pin-scene.html | ||
+++ b/usr/palm/applications/com.palm.app.phone/app/views/pin/pin-scene.html | ||
@@ -40,7 +40,9 @@ | ||
<div x-phone-digit="9" class="key glassbutton nine" id="nine_button" x-mojo-touch-feedback="spontaneous"> | ||
<p class="keypad-digit">9</p> | ||
</div> | ||
- <div class="key glassbutton star"></div> | ||
+ <div class="key glassbutton star" id="done_pin" x-mojo-touch-feedback="spontaneous"> | ||
+ <p class="keypad-digit">Done</p> | ||
+ </div> | ||
<div x-phone-digit="0" class="key glassbutton zero" id="zero_button" x-mojo-touch-feedback="spontaneous"> | ||
<p class="keypad-digit">0</p> | ||
</div> | ||
@@ -49,11 +51,11 @@ | ||
</div> | ||
</div> | ||
</div> | ||
- <div class="pin-menu-short"> | ||
+ <!-- <div class="pin-menu-short"> | ||
<div id="done_pin" x-mojo-touch-feedback="immediate" class="pin-menu-button short" x-mojo-loc=''> | ||
Done | ||
</div> | ||
- </div> | ||
+ </div> --> | ||
<div class="firstuse-top-corners"></div> | ||
<div class="firstuse-bottom-corners"></div> | ||
<div class="firstuse-banner-container"> | ||
diff --git a/usr/palm/applications/com.palm.app.phone/stylesheets/pinpad.css b/usr/palm/applications/com.palm.app.phone/stylesheets/pinpad.css | ||
index 6ff93cd..cc4a4ca 100644 | ||
--- a/usr/palm/applications/com.palm.app.phone/stylesheets/pinpad.css | ||
+++ b/usr/palm/applications/com.palm.app.phone/stylesheets/pinpad.css | ||
@@ -196,6 +196,14 @@ input[type=password].floating { | ||
width: 106px; | ||
} | ||
|
||
+.pin-main-scene .keypad-flex .star > .keypad-digit { | ||
+ font-size: 24px; | ||
+} | ||
+ | ||
+.pin-main-scene .keypad-flex .star.selected{ | ||
+ -webkit-border-image: url(../images/empty-down.png) 2 0 6 0; | ||
+} | ||
+ | ||
.pin-main-scene .keypad-flex .zero { | ||
-webkit-border-image: url(../images/zero-down.png) 2 0 6 0; | ||
-webkit-border-image: url(../images/zero.png) 2 0 6 0; |