mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
live reload bug
minor sanity check for phone
This commit is contained in:
parent
0c085059c9
commit
70058c9ebe
2 changed files with 26 additions and 3 deletions
|
@ -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)
|
||||
|
|
25
app/assets/stylesheets/application/mobile.scss
Normal file
25
app/assets/stylesheets/application/mobile.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue