Fix dashboard event list, Removed missing debugger in code
This commit is contained in:
parent
ba6a56b9fc
commit
174f6dce51
|
@ -1588,6 +1588,8 @@ if ($get_extended_event) {
|
|||
$notifications .= '<div id="notification_status_success" class="invisible_events">'.ui_print_success_message(__('Event status changed successfully'), '', true).'</div>';
|
||||
$notifications .= '<div id="notification_owner_error" class="invisible_events">'.ui_print_error_message(__('Error changing event owner'), '', true).'</div>';
|
||||
$notifications .= '<div id="notification_owner_success" class="invisible_events">'.ui_print_success_message(__('Event owner changed successfully'), '', true).'</div>';
|
||||
$notifications .= '<div id="notification_delete_error" class="invisible_events">'.ui_print_error_message(__('Error deleting event'), '', true).'</div>';
|
||||
|
||||
|
||||
$loading = '<div id="response_loading" class="invisible_events">'.html_print_image('images/spinner.gif', true).'</div>';
|
||||
|
||||
|
|
|
@ -3752,7 +3752,7 @@ function events_page_responses($event, $childrens_ids=[])
|
|||
$data = [];
|
||||
$data[0] = __('Delete event');
|
||||
$data[1] = '';
|
||||
$data[2] = '<form method="post">';
|
||||
$data[2] = '<form id="event_responses_delete" method="post">';
|
||||
$data[2] .= html_print_button(
|
||||
__('Delete event'),
|
||||
'delete_button',
|
||||
|
|
|
@ -232,7 +232,6 @@ function fmModuleChange(uniqId, isMeta) {
|
|||
selection: showCommonModules
|
||||
},
|
||||
function(data) {
|
||||
debugger;
|
||||
$("#filtered-module-modules-" + uniqId).html("");
|
||||
if (data) {
|
||||
jQuery.each(data, function(id, value) {
|
||||
|
|
|
@ -651,7 +651,7 @@ function initialiceLayout(data) {
|
|||
url: data.url,
|
||||
data: {
|
||||
page: data.page,
|
||||
method: "drawCell",
|
||||
method: "drawWidget",
|
||||
dashboardId: data.dashboardId,
|
||||
cellId: cellId,
|
||||
newWidth: newWidth,
|
||||
|
@ -1326,10 +1326,35 @@ function dashboardShowEventDialog(settings) {
|
|||
resizable: true,
|
||||
draggable: true,
|
||||
modal: true,
|
||||
create: function() {
|
||||
$("#button-delete_button").removeAttr("onclick");
|
||||
$("#button-delete_button").click(function() {
|
||||
var confirm_message = $("#hidden-delete_confirm_message").val();
|
||||
if (confirm(confirm_message) == false) {
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
method: "post",
|
||||
url: settings.ajaxUrl,
|
||||
data: {
|
||||
page: "include/ajax/events",
|
||||
delete_event: 1,
|
||||
id_evento: settings.event.id_evento,
|
||||
filter: []
|
||||
},
|
||||
success: function() {
|
||||
$("#notification_delete_error").show();
|
||||
$("#event_details_window").dialog("close");
|
||||
},
|
||||
error: function(error) {
|
||||
console.error(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
close: function() {
|
||||
//$("#refrcounter").countdown("resume");
|
||||
//$("div.vc-countdown").countdown("resume");
|
||||
debugger;
|
||||
$.ajax({
|
||||
method: "post",
|
||||
url: settings.ajaxUrl,
|
||||
|
|
|
@ -504,7 +504,7 @@ function event_change_status(event_ids) {
|
|||
if ($("#notification_status_error").length) {
|
||||
$("#notification_status_error").hide();
|
||||
}
|
||||
debugger;
|
||||
|
||||
if (data.status == "status_ok") {
|
||||
if (typeof dt_events !== "undefined") {
|
||||
dt_events.draw(false);
|
||||
|
|
|
@ -669,6 +669,12 @@ class EventsListWidget extends Widget
|
|||
true
|
||||
);
|
||||
|
||||
$output .= \html_print_input_hidden(
|
||||
'delete_confirm_message',
|
||||
__('Are you sure?'),
|
||||
true
|
||||
);
|
||||
|
||||
$table = new \StdClass;
|
||||
$table->class = 'widget_groups_status databox';
|
||||
$table->cellspacing = '1';
|
||||
|
|
Loading…
Reference in New Issue