Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Merge pull request #328 from mykmelez/release-3.0pre1
Browse files Browse the repository at this point in the history
update version for 3.0pre1 release
  • Loading branch information
mykmelez committed Feb 23, 2013
2 parents 087064f + eab2694 commit 2c43523
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 3 additions & 1 deletion addon/data/content/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ <h5>
<span id="commands-preference-default-app"></span>
</label>
</fieldset>
<h5 id="device-status"><img src="device.png" alt="Device"> Device connected.</h5>
<h5 id="device-status" style="opacity: 0">
<img src="device.png" alt="Device"> Device connected.
</h5>
<nav>
<ul>
<li><a href="#dashboard">Dashboard</a></li>
Expand Down
8 changes: 2 additions & 6 deletions addon/data/content/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ var Simulator = {
$("<button>")
.addClass("pushButton")
.append("<img src='device.png' height='14'> Push")
.css("opacity", Simulator.deviceConnected ? 1 : 0)
.click(function(evt) {
window.postMessage({ name: "pushAppToDevice", id: id }, "*");
})
Expand Down Expand Up @@ -228,19 +229,14 @@ var Simulator = {
// FIXME: Make an actual list, add a template engine
container.append(entry);
});

// Now that we have the list of apps, we check if a device
// is connected so we know whether or not to enable the Push buttons
// for each app (and the overall "device connected" indicator).
window.postMessage({ name: "getDeviceConnected" }, "*");

break;
}
},
false
);

window.postMessage({ name: "getIsRunning" }, "*");
window.postMessage({ name: "getDeviceConnected" }, "*");
// Clears removed apps on reload
window.postMessage({ name: "listApps", flush: true }, "*");
window.postMessage({ name: "listTabs" }, "*");
Expand Down
2 changes: 1 addition & 1 deletion addon/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "r2d2b2g@mozilla.org",
"name": "r2d2b2g",
"version": "3.0pre1dev",
"version": "3.0pre2dev",
"fullName": "Firefox OS Simulator",
"description": "a Firefox OS simulator",
"author": "Myk Melez (https://github.com/mykmelez)",
Expand Down

0 comments on commit 2c43523

Please sign in to comment.