Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: TechnoCloud
Views: 149
1
var intId = setInterval( function() {
2
3
// Ожидание загрузки HTML
4
if ( $(".resheader").length == 0 ) {
5
return;
6
}
7
clearInterval(intId);
8
9
$('#restabs a').click(function (e) {
10
e.preventDefault();
11
$(this).tab('show');
12
return false;
13
})
14
15
$(".errors div[data-id]").each(function(i) {
16
var self = $(this);
17
self.closest('.rescontainer').find("table tbody td.bad[data-error=\"" + self.attr('data-id') + "\"]").popover({
18
placement: 'top',
19
trigger: 'hover',
20
html: true,
21
container: self.closest('.rescontainer'),
22
content: self.html()
23
});
24
});
25
26
var stateRes = false;
27
$('#btnHidebad').click(function() {
28
if ( stateRes ) {
29
$('.rescontainer table tr.bad').show();
30
$(this).button('reset');
31
} else {
32
$('.rescontainer table tr.bad').hide();
33
$(this).button('show');
34
}
35
stateRes = ! stateRes;
36
});
37
38
$('.rescontainer .btnSelectall').click(function() {
39
$(this).closest('.rescontainer').find('table input:checkbox').prop('checked', true);
40
});
41
42
$('.rescontainer .btnSelectgood').click(function() {
43
$(this).closest('.rescontainer').find('table input:checkbox').prop('checked', true);
44
$(this).closest('.rescontainer').find('table tr.bad input:checkbox').prop('checked', false);
45
});
46
47
$('.rescontainer .btnClear').click(function() {
48
$(this).closest('.rescontainer').find('table input:checkbox').prop('checked', false);
49
});
50
51
}, 100);
52