From 510009979024efc6de4acc82389eaaae584b74e2 Mon Sep 17 00:00:00 2001 From: InesSuess Date: Tue, 22 Jan 2019 16:25:45 +0100 Subject: [PATCH] groups und items werden ordentlich angezeigt + farbe wird angezeigt --- express-server/public/javascripts/ajax.js | 22 ++++++++++++++++----- express-server/public/stylesheets/style.css | 7 +++++++ express-server/views/dash.ejs | 2 +- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/express-server/public/javascripts/ajax.js b/express-server/public/javascripts/ajax.js index 0fafd6a8..7e9cfebb 100644 --- a/express-server/public/javascripts/ajax.js +++ b/express-server/public/javascripts/ajax.js @@ -261,7 +261,7 @@ function Detail(){

${neu[0].name} @@ -269,9 +269,19 @@ function Detail(){ `); for (let i = 0; i < res.groups.length; i++) { const el = res.groups[i]; - $(".card-body").append(` -

${el.name}: ${el.content[0].name}
+ $(".gruppeninhalt").append(`
+
${el.name}
+
+
+
+
`); + for(let x = 0; x < el.content.length; x++){ + const el2 = el.content[x] + $(`.${el.name}`).append(`
+ + `); + } } ItemAdden() }, @@ -300,7 +310,7 @@ function ItemAdden(){ let id = getid.attr('id'); globaleAddZwischenID = id; console.log(id); - $('.custom-select-groups').remove('#select-group'); + $('.select').remove(); $('.GroupItemAdd').modal('show'); @@ -354,6 +364,8 @@ $(".itemhinzu").click(function(){ },error(err){ } - }) + }); + + Detail(); }); \ No newline at end of file diff --git a/express-server/public/stylesheets/style.css b/express-server/public/stylesheets/style.css index f418d6cf..863bbcb0 100644 --- a/express-server/public/stylesheets/style.css +++ b/express-server/public/stylesheets/style.css @@ -49,4 +49,11 @@ position: absolute; right:5px; border: 0px; +} +.seemore{ + background: transparent; + position: absolute; + right:5px; + margin-top:-40px; + border: 0px; } \ No newline at end of file diff --git a/express-server/views/dash.ejs b/express-server/views/dash.ejs index 77108eb4..bd02fb31 100644 --- a/express-server/views/dash.ejs +++ b/express-server/views/dash.ejs @@ -44,7 +44,7 @@
-
+