diff --git a/tools/events.tool b/tools/events.tool index 1a566e61cce1ff1c3ce55dcc71ca2ebb34a746e5..3b40b0a60608eb3ac68cf83956fe7dd34f723bd0 100644 --- a/tools/events.tool +++ b/tools/events.tool @@ -169,22 +169,22 @@ <div class="form-group"> <label for="img_infoscreen">Infoscreen Image</label> <input type="file" id="img_infoscreen" name="myFile"/> - <img src="" id="actual_img_infoscreen"> + <img class="event-image" visibility="invisble" src="" id="actual_img_infoscreen"> </div> - <div class="form-group"> + <div class="form-group"> <label for="img_banner">Banner Image</label> <input type="file" id="img_banner"/> - <img src="" id="actual_img_banner"> + <img class="event-image" visibility="invisble" src="" id="actual_img_banner"> </div> <div class="form-group"> <label for="img_poster">Poster Image</label> <input type="file" id="img_poster"/> - <img src="" id="actual_img_poster"> + <img class="event-image" visibility="invisble" src="" id="actual_img_poster"> </div> <div class="form-group"> <label for="img_thumbnail">Thumbnail</label> <input type="file" id="img_thumbnail"/> - <img src="" id="actual_img_thumbnail"> + <img class="event-image" visibility="invisble" src="" id="actual_img_thumbnail"> </div> @@ -242,6 +242,11 @@ white-space: nowrap; max-width: none; } + + .event-image { + margin-top: 10px; + width: 100%; + } </style> <script type="text/javascript"> @@ -534,11 +539,13 @@ console.log(JSON.stringify(newEvent)); if(isNew) { - var response = amivcore.events.POST(form, function(ret) { + var response = amivcore.events.POST(newEvent, function(ret) { if (!ret.hasOwnProperty('_status') || ret['_status'] != 'OK') tools.log(JSON.stringify(ret.responseJSON['_issues']), 'e'); else { - events.uploadCallback(); + console.log(ret); + curEventData = ret; + events.uploadCallback(form); } }); }