From 7c2301fde614b147aa948775f7472c60de32bcc8 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Mon, 12 Sep 2016 14:40:05 +0200 Subject: [PATCH] Added autorefresh control when event dialog is open --- pandora_console/include/javascript/pandora_events.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/include/javascript/pandora_events.js b/pandora_console/include/javascript/pandora_events.js index 31b1e01028..1b01f1f501 100644 --- a/pandora_console/include/javascript/pandora_events.js +++ b/pandora_console/include/javascript/pandora_events.js @@ -44,6 +44,9 @@ function show_event_dialog(event_id, group_rep, dialog_page, result) { resizable: true, draggable: true, modal: true, + close: function() { + $("#refrcounter").countdown("resume"); + }, overlay: { opacity: 0.5, background: "black" @@ -53,6 +56,8 @@ function show_event_dialog(event_id, group_rep, dialog_page, result) { }) .show (); + $("#refrcounter").countdown("pause"); + switch (result) { case 'comment_ok': $('#notification_comment_success').show();