v0.10.10 - Fixed it so you can only upload image resources when uploading your profile picture

This commit is contained in:
frederikpyt
2020-08-19 10:01:22 +02:00
parent 2430a6a381
commit 7e9277bd21
4 changed files with 82 additions and 1 deletions
@@ -80,6 +80,12 @@
{{ __('msg.logud') }}
</a>
</div>
<style>
option, textarea {
color: black;
}
</style>
@yield("content")
<script src="{{ mix("/js/app.js") }}"></script>
@if(request()->cookie("mode") == "dark")
@@ -45,12 +45,14 @@
<script src="{{ asset("/js/moment-with-locales.min.js") }}"></script>
<script src="{{ asset("/js/da.min.js") }}"></script>
<script>
//Global vars to use outside functions
var momentDate = null;
var dateText = null;
//Custom forEach
NodeList.prototype.forEach = Array.prototype.forEach;
//Generates the calender when the site loads
function generateCalendar(weekOffset = 0) {
const week = (moment().week() + weekOffset);
@@ -109,6 +111,7 @@
calendar.appendChild(calendarBody);
}
//When a date is selected
function onDateSelect(date, dayHolder, datetext) {
//Set selected date and dateText
momentDate = date;