Revision 6c07db48
Added by Phil Davis about 10 years ago
usr/local/www/status_openvpn.php | ||
---|---|---|
115 | 115 |
<script type="text/javascript"> |
116 | 116 |
//<![CDATA[ |
117 | 117 |
function killClient(mport, remipp) { |
118 |
var busy = function(index,icon) { |
|
119 |
jQuery(icon).bind("onclick",""); |
|
120 |
jQuery(icon).attr('src',jQuery(icon).attr('src').replace("\.gif", "_d.gif")); |
|
121 |
jQuery(icon).css("cursor","wait"); |
|
118 |
var busy = function(index, icon) {
|
|
119 |
jQuery(icon).bind("onclick", "");
|
|
120 |
jQuery(icon).attr('src', jQuery(icon).attr('src').replace("\.gif", "_d.gif"));
|
|
121 |
jQuery(icon).css("cursor", "wait");
|
|
122 | 122 |
} |
123 | 123 |
|
124 | 124 |
jQuery('img[name="i:' + mport + ":" + remipp + '"]').each(busy); |
... | ... | |
138 | 138 |
} |
139 | 139 |
|
140 | 140 |
jQuery('tr[name="r:' + values[1] + ":" + values[2] + '"]').each( |
141 |
function(index,row) { jQuery(row).fadeOut(1000); } |
|
141 |
function(index, row) { jQuery(row).fadeOut(1000); }
|
|
142 | 142 |
); |
143 | 143 |
} |
144 | 144 |
//]]> |
... | ... | |
219 | 219 |
if (is_array($server['routes']) && count($server['routes'])): |
220 | 220 |
?> |
221 | 221 |
<div id="shroutebut-<?= $i ?>"> |
222 |
<input type="button" onClick="show_routes('tabroute-<?= $i ?>','shroutebut-<?= $i ?>')" value="<?php echo gettext("Show Routing Table"); ?>" /> - <?= gettext("Display OpenVPN's internal routing table for this server.") ?> |
|
222 |
<input type="button" onClick="show_routes('tabroute-<?= $i ?>', 'shroutebut-<?= $i ?>')" value="<?php echo gettext("Show Routing Table"); ?>" /> - <?= gettext("Display OpenVPN's internal routing table for this server.") ?>
|
|
223 | 223 |
<br /><br /> |
224 | 224 |
</div> |
225 | 225 |
<table style="display: none; padding-top:0px; padding-bottom:0px; padding-left:0px; padding-right:0px" width="100%" border="0" cellpadding="0" cellspacing="0" id="tabroute-<?= $i ?>" summary="routing table"> |
Also available in: Unified diff
Code spacing
and other random stuff I noticed.
I think this finishes messing with code style. The codebase should match
the developer style guide closely enough that 99.9% of changes will not
feel the need to also massage the formatting.