diff options
| author | Raphael Kabo <raphaelkabo@hey.com> | 2024-03-29 11:19:58 +0000 | 
|---|---|---|
| committer | Raphael Kabo <raphaelkabo@hey.com> | 2024-05-26 16:05:32 +0100 | 
| commit | 42fea055924bfa55991720f2f6b01ec111985200 (patch) | |
| tree | 1d32c563016f2779dd0d4d507d35df659fb105fb /public/js | |
| parent | 28be7ca850f41352a1e4e43f0c7035bdeeff6e83 (diff) | |
Use Alpine.js on new event page
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/modules/new.js | 42 | 
1 files changed, 0 insertions, 42 deletions
diff --git a/public/js/modules/new.js b/public/js/modules/new.js index f7c3e34..7915b59 100644 --- a/public/js/modules/new.js +++ b/public/js/modules/new.js @@ -5,48 +5,6 @@ $(document).ready(function () {              .next("label")              .html('<i class="far fa-file-alt"></i> ' + file);      } -    $("#showNewEventFormButton").click(function () { -        $("button").removeClass("active"); -        $( -            "#showImportEventFormButton #showNewEventGroupFormButton", -        ).removeClass("active"); -        if ($("#newEventFormContainer").is(":visible")) { -            $("#newEventFormContainer").slideUp("fast"); -        } else { -            $("#newEventFormContainer").slideDown("fast"); -            $("#importEventFormContainer").slideUp("fast"); -            $("#newEventGroupFormContainer").slideUp("fast"); -            $(this).addClass("active"); -        } -    }); -    $("#showImportEventFormButton").click(function () { -        $("button").removeClass("active"); -        $("#showNewEventFormButton #showNewEventGroupFormButton").removeClass( -            "active", -        ); -        if ($("#importEventFormContainer").is(":visible")) { -            $("#importEventFormContainer").slideUp("fast"); -        } else { -            $("#importEventFormContainer").slideDown("fast"); -            $("#newEventFormContainer").slideUp("fast"); -            $("#newEventGroupFormContainer").slideUp("fast"); -            $(this).addClass("active"); -        } -    }); -    $("#showNewEventGroupFormButton").click(function () { -        $("button").removeClass("active"); -        $("#showNewEventFormButton #showImportEventFormButton").removeClass( -            "active", -        ); -        if ($("#newEventGroupFormContainer").is(":visible")) { -            $("#newEventGroupFormContainer").slideUp("fast"); -        } else { -            $("#newEventGroupFormContainer").slideDown("fast"); -            $("#newEventFormContainer").slideUp("fast"); -            $("#importEventFormContainer").slideUp("fast"); -            $(this).addClass("active"); -        } -    });      $("#icsImportControl").change(function () {          var file = $("#icsImportControl")[0].files[0].name;          $(this)  | 
