Skip to content

Commit

Permalink
Fix notify function
Browse files Browse the repository at this point in the history
  • Loading branch information
V13Axel committed Jul 13, 2024
1 parent a7e638c commit 534b1d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ import $default, { jQuery, $ } from "jquery";
window.$ = $;
window.jQuery = jQuery;

window.$.notify = (name, detail = {}) => {
window.$.notify = (name, type) => {
window.dispatchEvent(new CustomEvent('notify', {
detail
detail: {
content: name,
type,
}
}));
}

Expand Down
2 changes: 1 addition & 1 deletion resources/js/calendar/calendar_inputs_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export function set_up_edit_inputs() {
view_type = $(this).attr('data-view-type');


owner = true;
let owner = true;

$('.view-tabs .btn-primary').removeClass('btn-primary').addClass('btn-secondary');

Expand Down

0 comments on commit 534b1d4

Please sign in to comment.