bla
This commit is contained in:
parent
702e4156e5
commit
c82a00e35b
1 changed files with 7 additions and 7 deletions
|
@ -190,7 +190,7 @@ function get_admin(type) {
|
|||
<div class="activity-desc">Description: <input type="text"/></div>
|
||||
<div class="activity-where">Lieu: <input type="text"/></div>
|
||||
<div class="activity-start">Début: <input type="datetime-local"/></div>
|
||||
<div class="activity-end">Fin: <input type="datetime-local"/></div>
|
||||
<div id="activity-end-add" class="activity-end">Fin: <input type="datetime-local"/></div>
|
||||
<span class="activity-btn">
|
||||
<div id="activity-btn-add">Ajouter une activité</div>
|
||||
</span>
|
||||
|
@ -210,7 +210,7 @@ function get_admin(type) {
|
|||
<div class="activity-desc">Description: <input type="text" value="${activityData[entry].desc}"/></div>
|
||||
<div class="activity-where">Lieu: <input type="text" value="${activityData[entry].where}"/></div>
|
||||
<div class="activity-start">Début: <input type="datetime-local" value="${toIsoString(new Date(activityData[entry].start))}"/></div>
|
||||
<div id="activity-end-add" class="activity-end">Fin: <input type="datetime-local" value="${toIsoString(new Date(activityData[entry].end))}"/></div>
|
||||
<div class="activity-end">Fin: <input type="datetime-local" value="${toIsoString(new Date(activityData[entry].end))}"/></div>
|
||||
<span class="activity-footer">
|
||||
<div class="activity-uid">UID: ${activityData[entry].activityUid}</div>
|
||||
</span>
|
||||
|
@ -270,8 +270,8 @@ function refreshListener() {
|
|||
success: function (data) {
|
||||
if(data.success) {
|
||||
let btnElems = $("#"+uid).children()[6];
|
||||
btnElems.children()[0].style.display = "none";
|
||||
btnElems.children()[2].style.display = "flex";
|
||||
btnElems.children()[0].css("display", "none");
|
||||
btnElems.children()[2].css("display", "flex");
|
||||
} else {
|
||||
if (data.why == "Not authentificated") {
|
||||
show_page('#login-page');
|
||||
|
@ -450,11 +450,11 @@ function refreshListener() {
|
|||
}
|
||||
});
|
||||
})
|
||||
$("activityType").on("change", function() {
|
||||
$("#activityType").on("change", function() {
|
||||
if (this.value == "treasure") {
|
||||
$("#activity-end-add").style.display = "none";
|
||||
$("#activity-end-add").css("display", "none");
|
||||
} else if (this.value == "event") {
|
||||
$("#activity-end-add").style.display = "flex";
|
||||
$("#activity-end-add").css("display", "flex");
|
||||
}
|
||||
})
|
||||
$(".activity-btn-add").click((e) => {
|
||||
|
|
Loading…
Reference in a new issue