You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
JavaScript
54 lines
1.2 KiB
JavaScript
//-- Activate anything Hesk UI needs, such as tooltips.
|
|
var loadJquery = function()
|
|
{
|
|
//-- Activate tooltips
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
|
|
//-- Active popovers
|
|
$('[data-toggle="popover"]').popover({
|
|
trigger: 'hover'
|
|
})
|
|
};
|
|
|
|
function toggleRow(id) {
|
|
if ($('#' + id).hasClass('danger'))
|
|
{
|
|
$('#' + id).removeClass('danger');
|
|
} else
|
|
{
|
|
$('#' + id).addClass('danger');
|
|
}
|
|
}
|
|
|
|
function toggleColumn(className) {
|
|
if ($('.' + className).css('display') == 'none') {
|
|
$('.' + className).show();
|
|
} else {
|
|
$('.' + className).hide();
|
|
}
|
|
}
|
|
|
|
function toggleFilterCheckboxes(show) {
|
|
if (show) {
|
|
$('#filterCheckboxes').show();
|
|
$('#showFiltersText').hide();
|
|
$('#hideFiltersText').show();
|
|
} else {
|
|
$('#filterCheckboxes').hide();
|
|
$('#showFiltersText').show();
|
|
$('#hideFiltersText').hide();
|
|
}
|
|
}
|
|
|
|
function toggleChildrenForm(show) {
|
|
if (show) {
|
|
$('#childrenForm').show();
|
|
$('#addChildText').hide();
|
|
} else {
|
|
$('#childrenForm').hide();
|
|
$('#addChildText').show();
|
|
}
|
|
}
|
|
|
|
jQuery(document).ready(loadJquery);
|