live reload bug

minor sanity check for phone
This commit is contained in:
Sam Saffron 2013-02-20 16:03:46 +11:00
parent 0c085059c9
commit 70058c9ebe
2 changed files with 26 additions and 3 deletions

View File

@ -195,12 +195,10 @@ window.Discourse = Ember.Application.createWithMixins
window.probes.clear()
Ember.View.prototype.renderToBuffer = window.probes.measure Ember.View.prototype.renderToBuffer, "renderToBuffer"
Discourse.routeTo = topLevel(Discourse.routeTo, "Discourse.routeTo")
Ember.run.end = topLevel(Ember.run.end, "Ember.run.end")
return
authenticationComplete: (options)->
@ -239,7 +237,7 @@ window.Discourse = Ember.Application.createWithMixins
# possibly move this to dev only
Discourse.MessageBus.subscribe "/file-change", (data)->
Ember.TEMPLATES["empty"] = Handlebars.compile("")
Ember.TEMPLATES["empty"] = Handlebars.compile("<div></div>")
data.each (me)->
if me == "refresh"
document.location.reload(true)

View File

@ -0,0 +1,25 @@
@media only screen
and (min-width : 320px)
and (max-width : 480px) {
// and (min-device-width : 320px)
// and (max-device-width : 480px) {
#reply-control {
.toggle-preview { display:none; }
#reply-title { width: 250px; }
.wmd-controls {
#wmd-input {
width: 100%;
border-top: 0;
}
.preview-wrapper {
display: none;
}
.textarea-wrapper {
width: 100%;
}
.wmd-button-bar {
display: none;
}
}
}
}