projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 77021 - fixed advanced report criteria so agent and other fileds with a . in...
[freeside.git]
/
rt
/
share
/
html
/
Elements
/
Refresh
diff --git
a/rt/share/html/Elements/Refresh
b/rt/share/html/Elements/Refresh
index
432bc80
..
ca7487d
100755
(executable)
--- a/
rt/share/html/Elements/Refresh
+++ b/
rt/share/html/Elements/Refresh
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
3
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
7
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-51,18
+51,18
@@
selected="selected"
%}
><&|/l&>Don't refresh this page.</&></option>
selected="selected"
%}
><&|/l&>Don't refresh this page.</&></option>
-%foreach my $value (
@refreshevery
) {
+%foreach my $value (
RT->Config->Get('RefreshIntervals')
) {
<option value="<%$value%>"
% if ( $Default && ($value == $Default)) {
selected="selected"
% }
<option value="<%$value%>"
% if ( $Default && ($value == $Default)) {
selected="selected"
% }
-><&|/l, $value/60 &>Refresh this page every [_1] minutes.</&></option>
-%}
+% if ($value % 60 == 0) {
+><&|/l, $value/60 &>Refresh this page every [quant,_1,minute,minutes].</&></option>
+% } else {
+><&|/l, $value &>Refresh this page every [quant,_1,second,seconds].</&></option>
+% }
+% }
</select>
</select>
-
-<%INIT>
-my @refreshevery = qw(120 300 600 1200 3600 7200);
-</%INIT>
<%ARGS>
$Name => undef
$Default => 0
<%ARGS>
$Name => undef
$Default => 0