From 483745cf98603a6bc7d39c709dc5a86eccd25a0c Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Thu, 16 Apr 2015 20:02:04 +0000 Subject: [PATCH] Registrations: Manually pause refresh, and pause on button hover. Requested in Issue 922. --- app/registrations/app_languages.php | 14 +++ .../resources/images/refresh_active.gif | Bin 0 -> 1079 bytes .../resources/images/refresh_paused.png | Bin 0 -> 501 bytes app/registrations/status_registrations.php | 101 +++++++++++------- .../status_registrations_inc.php | 20 ++-- 5 files changed, 87 insertions(+), 48 deletions(-) create mode 100644 app/registrations/resources/images/refresh_active.gif create mode 100644 app/registrations/resources/images/refresh_paused.png diff --git a/app/registrations/app_languages.php b/app/registrations/app_languages.php index d67fe26915..0a055cbeb7 100644 --- a/app/registrations/app_languages.php +++ b/app/registrations/app_languages.php @@ -21,6 +21,20 @@ $text['label-response']['fr-fr'] = "Réponse:"; $text['label-response']['pt-br'] = "Resposta"; $text['label-response']['pl'] = "Odpowiedź"; +$text['label-refresh_pause']['en-us'] = "Pause Refresh"; +$text['label-refresh_pause']['es-cl'] = "Actualizar Pausa"; +$text['label-refresh_pause']['pt-pt'] = "Pausa Atualizar"; +$text['label-refresh_pause']['fr-fr'] = "Pause Actualiser"; +$text['label-refresh_pause']['pt-br'] = "Pausar atualização"; +$text['label-refresh_pause']['pl'] = "Pauzuj odÅ›wieżanie"; + +$text['label-refresh_enable']['en-us'] = "Enable Refresh"; +$text['label-refresh_enable']['es-cl'] = "Activar Actualizar"; +$text['label-refresh_enable']['pt-pt'] = "Habilitar Atualização"; +$text['label-refresh_enable']['fr-fr'] = "Activer Actualiser"; +$text['label-refresh_enable']['pt-br'] = "Habilitar atualização"; +$text['label-refresh_enable']['pl'] = "Włącz odÅ›wieżanie"; + $text['label-port']['en-us'] = "Port"; $text['label-port']['es-cl'] = "Puerto"; $text['label-port']['pt-pt'] = "Porto"; diff --git a/app/registrations/resources/images/refresh_active.gif b/app/registrations/resources/images/refresh_active.gif new file mode 100644 index 0000000000000000000000000000000000000000..305457831c3f47939d634650660e859f50f18224 GIT binary patch literal 1079 zcmZ?wbhEHb6krfw_{_lY|NsA0U~uKimGkG%KYaM`#fum3-o5+$`SYz?x4wP*cIM0( z1|*>PpWDwhB-q(8z|~04fSC~}rT9$q3n zO>tew&yZDRa$!Y@S0^yIF#{CID4C^TqZC^&!;E6k-dQ&1{8}lV<;)-2jBdSFW47#` z1vIJ`t5L{)gBT?kmRz|^`|7L}S{*99_jCT;vIy5ToB7wlqaU~5kYZS7nL_(UfrqBk z(zDj8X?3K$2`jK(z145C(S#4nG^P4aV2xolq_Ej0;4GAuT$!{|vttSOYJI8o;oR@$ zJ^Oz^L6r$xSRh*s)EXo~qSeR&uoa}AU5JbTK#mcJDN5wV2$E5AwtyYvL~c4k^4lFJ R9?wLX4uT2S8kB9p001&weI)<@ literal 0 HcmV?d00001 diff --git a/app/registrations/resources/images/refresh_paused.png b/app/registrations/resources/images/refresh_paused.png new file mode 100644 index 0000000000000000000000000000000000000000..38937ec1f222094efb05cd3d3c634f752f84deb2 GIT binary patch literal 501 zcmVwBx2>F4R;%NMVn_aJxg_miiOUzd`-l3gn!7VkA&I7c*+DB!%r3QpAguz80Ve)s0dLW`~5+e4hT7Q6`Q>6PhY?hE(21}udC6bM0N(*gquPL7X19qhk(2T)25%jM!% r*LBxEygxiz%}l?3`LprpRloCJ0R6KCvd?rv00000NkvXXu0mjfpda3S literal 0 HcmV?d00001 diff --git a/app/registrations/status_registrations.php b/app/registrations/status_registrations.php index 6e92dc68ef..cc087d9e8b 100644 --- a/app/registrations/status_registrations.php +++ b/app/registrations/status_registrations.php @@ -52,55 +52,74 @@ require_once "resources/check_auth.php"; //ajax for refresh ?> ".$text['error-event-socket']."
"; } +//define js function call var + $onhover_pause_refresh = " onmouseover='refresh_stop();' onmouseout='refresh_start();'"; + //show the error message or show the content if (strlen($msg) > 0) { echo "
\n"; @@ -120,16 +123,19 @@ require_once "resources/check_auth.php"; //show the registrations echo "\n"; echo "\n"; - echo "\n"; - echo ""; + echo "\n"; @@ -168,9 +174,9 @@ require_once "resources/check_auth.php"; echo " \n"; echo " \n"; echo " \n"; echo "\n"; if ($c==0) { $c=1; } else { $c=0; }
\n"; + echo "\n"; echo " ".$text['header-registrations'].": ".count($registrations)."\n"; echo "\n"; + echo ""; + echo " \"".$text['label-refresh_pause']."\""; + echo ""; if (permission_exists('registration_all')) { if ($show == "all") { - echo " \n"; + echo " \n"; } else { - echo " \n"; + echo " \n"; } } echo "".$row['host']." ".$row['status']." \n"; - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; echo "