You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2012/11/19 22:23:30 UTC

[2/2] spec commit: CB-1855: Add device.model to Device API. Adding the test

CB-1855: Add device.model to Device API.  Adding the test


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/commit/56a11aa3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/56a11aa3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/56a11aa3

Branch: refs/heads/master
Commit: 56a11aa35946cb60fb67a87f5d27a1dd87db90bc
Parents: 32ead05
Author: Joe Bowser <bo...@apache.org>
Authored: Mon Nov 19 13:22:53 2012 -0800
Committer: Joe Bowser <bo...@apache.org>
Committed: Mon Nov 19 13:22:53 2012 -0800

----------------------------------------------------------------------
 index.html |    1 +
 main.js    |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/56a11aa3/index.html
----------------------------------------------------------------------
diff --git a/index.html b/index.html
index 3aba97c..9cfde7e 100644
--- a/index.html
+++ b/index.html
@@ -38,6 +38,7 @@
         <h4>Version: <span id="version"> </span></h4>
         <h4>UUID: <span id="uuid">  </span></h4>
         <h4>Name: <span id="name"> </span></h4>
+        <h4>Model: <span id="model"> </span></h4>
         <h4>Width: <span id="width">  </span>,   Height: <span id="height"> 
                    </span>, Color Depth: <span id="colorDepth"></span></h4>
      </div>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/56a11aa3/main.js
----------------------------------------------------------------------
diff --git a/main.js b/main.js
index 8f99dcc..cc4d97d 100644
--- a/main.js
+++ b/main.js
@@ -24,6 +24,7 @@ var deviceInfo = function() {
     document.getElementById("version").innerHTML = device.version;
     document.getElementById("uuid").innerHTML = device.uuid;
     document.getElementById("name").innerHTML = device.name;
+    document.getElementById("model").innerHTML = device.model;
     document.getElementById("width").innerHTML = screen.width;
     document.getElementById("height").innerHTML = screen.height;
     document.getElementById("colorDepth").innerHTML = screen.colorDepth;