Skip to content

Commit d17225f

Browse files
author
d47081
committed
[untested] change html blocks position HelloZeroNet#131
1 parent 99fd2ab commit d17225f

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

js/PostCreate.coffee

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ class PostCreate extends Class
6363
# Registered user
6464
h("div.post-create.post", {classes: {editing: @is_editing}},
6565
h("div.user", user.renderAvatar()),
66-
h("a.icon-image.link", {href: "#", onclick: @handleUploadClick}),
67-
@field_post.render(),
68-
if @image.base64uri
69-
h("div.image", {style: "background-image: url(#{@image.base64uri}); height: #{@image.getSize(530, 600)[1]}px", classes: {empty: false}}, [
70-
h("a.close", {href: "#", onclick: @handleImageClose}, "×")
71-
])
72-
else
73-
h("div.image", {style: "height: 0px", classes: {empty: true}})
7466
h("div.postbuttons",
67+
h("a.icon-image.link", {href: "#", onclick: @handleUploadClick}),
68+
@field_post.render(),
69+
if @image.base64uri
70+
h("div.image", {style: "background-image: url(#{@image.base64uri}); height: #{@image.getSize(530, 600)[1]}px", classes: {empty: false}}, [
71+
h("a.close", {href: "#", onclick: @handleImageClose}, "×")
72+
])
73+
else
74+
h("div.image", {style: "height: 0px", classes: {empty: true}})
7575
h("a.button.button-submit", {href: "#Submit", onclick: @handlePostSubmit}, "Submit new post"),
7676
),
7777
h("div", {style: "clear: both"})

js/all.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,17 @@
162162
s = Date.now()
163163
log = (text) ->
164164
console.log Date.now()-s, Array.prototype.slice.call(arguments).join(", ")
165-
165+
166166
log "Started"
167-
167+
168168
cmd = (query) ->
169169
p = new Promise()
170170
setTimeout ( ->
171171
p.resolve query+" Result"
172172
), 100
173173
return p
174-
175-
174+
175+
176176
back = cmd("SELECT * FROM message").then (res) ->
177177
log res
178178
p = new Promise()
@@ -185,13 +185,13 @@
185185
return cmd("SELECT * FROM users")
186186
.then (res) ->
187187
log "End result", res
188-
188+
189189
log "Query started", back
190-
191-
190+
191+
192192
q1 = cmd("SELECT * FROM anything")
193193
q2 = cmd("SELECT * FROM something")
194-
194+
195195
Promise.join(q1, q2).then (res1, res2) ->
196196
log res1, res2
197197
*/
@@ -304,7 +304,7 @@
304304
window.load = (done, num) ->
305305
console.log "Loading #{num}...", Date.now()-window.s
306306
setTimeout (-> done()), 1000
307-
307+
308308
RateLimit 500, window.load, [0] # Called instantly
309309
RateLimit 500, window.load, [1]
310310
setTimeout (-> RateLimit 500, window.load, [300]), 300
@@ -4955,7 +4955,7 @@ function clone(obj) {
49554955
classes: {
49564956
editing: this.is_editing
49574957
}
4958-
}, h("div.user", user.renderAvatar()), h("a.icon-image.link", {
4958+
}, h("div.user", user.renderAvatar()), h("div.postbuttons", h("a.icon-image.link", {
49594959
href: "#",
49604960
onclick: this.handleUploadClick
49614961
}), this.field_post.render(), this.image.base64uri ? h("div.image", {
@@ -4973,7 +4973,7 @@ function clone(obj) {
49734973
classes: {
49744974
empty: true
49754975
}
4976-
}), h("div.postbuttons", h("a.button.button-submit", {
4976+
}), h("a.button.button-submit", {
49774977
href: "#Submit",
49784978
onclick: this.handlePostSubmit
49794979
}, "Submit new post")), h("div", {

0 commit comments

Comments
 (0)