updated app

This commit is contained in:
2012-05-30 23:00:06 -04:00
parent 6a753904b7
commit da6ad88d48
5545 changed files with 1101709 additions and 60 deletions

View File

@@ -0,0 +1,15 @@
<connectionAlert:>
<div class="connection">
{#unless connected}
<p class="alert">
{#if canConnect}
Offline
{#unless :self.hideReconnect}
&ndash; <a x-bind="click:connect">Reconnect</a>
{/}
{else}
Unable to reconnect &ndash; <a x-bind="click:reload">Reload</a>
{/}
</p>
{/}
</div>

View File

@@ -0,0 +1,15 @@
exports.create = function(model, self) {
exports.connect = function() {
// Hide the reconnect link for a second after clicking it
self.set('hideReconnect', true)
setTimeout(function() {
self.set('hideReconnect', false)
}, 1000)
model.socket.socket.connect()
}
exports.reload = function() {
window.location.reload()
}
}