-
Notifications
You must be signed in to change notification settings - Fork 0
/
snver.js
49 lines (37 loc) · 918 Bytes
/
snver.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// used in host.php
$(function() {
$('#snver_info').click(function(event) {
event.preventDefault();
$.get(urlPath+'plugins/snver/snver.php?host_id='+$('#snver_info').data('snver_id'))
.done(function(data) {
$('#ping_results').html(data);
hostInfoHeight = $('.hostInfoHeader').height();
})
.fail(function(data) {
getPresentHTTPError(data);
});
})
});
// used in snver_tab.php
function applyFilter() {
strURL = 'snver_tab.php' +
'?host_id=' + $('#host_id').val() +
'&header=false';
loadPageNoHeader(strURL);
}
function clearFilter() {
strURL = 'snver_tab.php?clear=1&header=false';
loadPageNoHeader(strURL);
}
$(function() {
$('#clear').unbind().on('click', function() {
clearFilter();
});
$('#filter').unbind().on('change', function() {
applyFilter();
});
$('#form_snver').unbind().on('submit', function(event) {
event.preventDefault();
applyFilter();
});
});