add heading 'Kommentieren' etc.
This commit is contained in:
parent
18ebf6f95a
commit
9484a8fa6f
@ -165,6 +165,7 @@ define(["lib/q", "lib/HTML", "helper/utils", "helper/identicons", "./api", "./fo
|
|||||||
var init = function() {
|
var init = function() {
|
||||||
|
|
||||||
var rootmsgbox = forms.msgbox({});
|
var rootmsgbox = forms.msgbox({});
|
||||||
|
var h4 = HTML.query("#isso-thread").add("h4")
|
||||||
HTML.query("#isso-thread").add("div#isso-root").add(rootmsgbox);
|
HTML.query("#isso-thread").add("div#isso-root").add(rootmsgbox);
|
||||||
rootmsgbox.query("input[type=submit]").addEventListener("click", function(event) {
|
rootmsgbox.query("input[type=submit]").addEventListener("click", function(event) {
|
||||||
forms.validate(rootmsgbox) && api.create({
|
forms.validate(rootmsgbox) && api.create({
|
||||||
@ -183,11 +184,14 @@ define(["lib/q", "lib/HTML", "helper/utils", "helper/identicons", "./api", "./fo
|
|||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
});
|
});
|
||||||
|
|
||||||
api.fetchall()
|
api.fetchall().then(function(comments) {
|
||||||
.then(function(comments) {
|
h4.textContent = comments.length + " Kommentare zu \"" + utils.heading() + "\"";
|
||||||
for (var i in comments) {
|
for (var i in comments) {
|
||||||
insert(comments[i])
|
insert(comments[i])
|
||||||
}})
|
}
|
||||||
|
}).fail(function(rv) {
|
||||||
|
h4.textContent = "Kommentiere \"" + utils.heading() + "\"";
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -8,11 +8,17 @@
|
|||||||
margin-top: 18px;
|
margin-top: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#isso-thread > h4 {
|
||||||
|
color: #555;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: "Helvetica", Arial, sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#isso-root > .isso-comment > .isso-follow-up {
|
#isso-root > .isso-comment > .isso-follow-up {
|
||||||
margin-left: 64px;
|
margin-left: 64px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.isso-comment footer a, .isso-comment header a {
|
.isso-comment footer a, .isso-comment header a {
|
||||||
color: #111111;
|
color: #111111;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
Loading…
Reference in New Issue
Block a user