Mods-for-HESK-Netsyms/js/nuMods-javascript.js
Mike Koch 3151ece7df #39 making more progress on parent/child relationships
Still need to update childs when merging/deleting tickets, and need to add the ability to assign its parent, and to delete a parent/child relationship
2014-09-27 22:14:49 -04:00

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);