Skip to content

Commit

Permalink
yeet
Browse files Browse the repository at this point in the history
  • Loading branch information
V13Axel committed Jul 12, 2024
1 parent d612dd7 commit 9eecb79
Showing 1 changed file with 0 additions and 152 deletions.
152 changes: 0 additions & 152 deletions resources/js/calendar/calendar_inputs_visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,158 +76,6 @@ export function set_up_visitor_inputs() {
}
});

// $.contextMenu({
// selector: ".event:not(.event-text-output)",
// items: {
// view: {
// name: "View event",
// icon: "fas fa-eye",
// callback: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// window.dispatchEvent(new CustomEvent('event-viewer-modal-view-event', { detail: { event_id: event_id, era: element.hasClass('era_event'), epoch: element.parent().parent().attr('epoch') } }));
// },
// disabled: function(key, opt) {
// let element = $(opt.$trigger[0]);
// return element.hasClass('era_event');
// },
// visible: function(key, opt) {
// let element = $(opt.$trigger[0]);
// return !element.hasClass('era_event');
// }
// },
// edit: {
// name: "Edit event",
// icon: "fas fa-edit",
// callback: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// window.dispatchEvent(new CustomEvent('event-editor-modal-edit-event', { detail: { event_id: event_id, epoch: element.parent().parent().attr('epoch') } }));
// },
// disabled: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// return !Perms.can_modify_event(event_id) || element.hasClass('era_event');
// },
// visible: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// return Perms.can_modify_event(event_id) && !element.hasClass('era_event');
// }
// },
// clone: {
// name: "Clone event",
// icon: "fas fa-clone",
// callback: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// window.dispatchEvent(new CustomEvent('event-editor-modal-clone-event', { detail: { event_id: event_id, epoch: element.parent().parent().attr('epoch') } }));
// },
// disabled: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// return !Perms.can_modify_event(event_id) || element.hasClass('era_event');
// },
// visible: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// return Perms.can_modify_event(event_id) && !element.hasClass('era_event');
// }
// },
// view_era: {
// name: "View era description",
// icon: "fas fa-eye",
// callback: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// window.dispatchEvent(new CustomEvent('event-viewer-modal-view-event', { detail: { event_id: event_id, era: element.hasClass('era_event'), epoch: element.parent().parent().attr('epoch') } }));
// },
// disabled: function(key, opt) {
// let element = $(opt.$trigger[0]);
// return !element.hasClass('era_event');
// },
// visible: function(key, opt) {
// let element = $(opt.$trigger[0]);
// return element.hasClass('era_event');
// }
// },
// edit_era: {
// name: "Edit era description",
// icon: "fas fa-edit",
// callback: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let era_id = element.attr('event_id') | 0;
// window.dispatchEvent(new CustomEvent('html-editor-modal-edit-html', { detail: { era_id: era_id } }));
// },
// disabled: function(key, opt) {
// let element = $(opt.$trigger[0]);
// return !element.hasClass('era_event') || !Perms.user_is_owner() || window.location.href.indexOf('/edit') == -1;
// },
// visible: function(key, opt) {
// let element = $(opt.$trigger[0]);
// return element.hasClass('era_event') && Perms.user_is_owner() && window.location.href.indexOf('/edit') != -1;
// }
// },
// hide: {
// name: "Hide event",
// icon: "fas fa-eye-slash",
// callback: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = Number(element.attr('event_id'));
// submit_hide_show_event(event_id);
// },
// disabled: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = Number(element.attr('event_id'));
// return element.hasClass('era_event') || events[event_id].settings.hide || !Perms.can_modify_event(event_id);
// },
// visible: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = Number(element.attr('event_id'));
// return !element.hasClass('era_event') && !events[event_id].settings.hide && Perms.can_modify_event(event_id);
// }
// },
// show: {
// name: "Show event",
// icon: "fas fa-eye-slash",
// callback: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = Number(element.attr('event_id'));
// submit_hide_show_event(event_id);
// },
// disabled: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = Number(element.attr('event_id'));
// return element.hasClass('era_event') || !events[event_id].settings.hide || !Perms.can_modify_event(event_id);
// },
// visible: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = Number(element.attr('event_id'));
// return !element.hasClass('era_event') && events[event_id].settings.hide && Perms.can_modify_event(event_id);
// }
// },
// delete: {
// name: "Delete event",
// icon: "fas fa-trash-alt",
// callback: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// window.dispatchEvent(new CustomEvent('event-editor-modal-delete-event', { detail: { event_id: event_id } }));
// },
// disabled: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// return element.hasClass('era_event') || !Perms.can_modify_event(event_id);
// },
// visible: function(key, opt) {
// let element = $(opt.$trigger[0]);
// let event_id = element.attr('event_id');
// return !element.hasClass('era_event') && Perms.can_modify_event(event_id);
// }
// }
// },
// zIndex: 1501
// });

var items = {};

Expand Down

0 comments on commit 9eecb79

Please sign in to comment.