64 lines
1.8 KiB
JavaScript
64 lines
1.8 KiB
JavaScript
|
|
|
|
$(document).ready(function ()
|
|
{
|
|
$(".TextTitle").click(function (evt)
|
|
{
|
|
var _result = false;
|
|
if ($(evt.target).parents(this).length > 0)
|
|
{
|
|
evt.stopPropagation();
|
|
_result = true;
|
|
}
|
|
else if ($(evt.srcElement).parents(this).length > 0)
|
|
{
|
|
evt.stopPropagation();
|
|
_result = true;
|
|
}
|
|
else if ((evt.srcElement != null) && (evt.srcElement == this))
|
|
{
|
|
evt.stopPropagation();
|
|
_result = true;
|
|
}
|
|
if (_result)
|
|
{
|
|
$(this).nextAll().toggleClass("Hidden");
|
|
$(this).children().toggleClass("Hidden");
|
|
}
|
|
});
|
|
$(".Process,.Container,fieldset").dblclick(function (evt)
|
|
{
|
|
var _result = false;
|
|
if ($(evt.target).parents(this).length > 0)
|
|
{
|
|
evt.stopPropagation();
|
|
_result = true;
|
|
}
|
|
else if ($(evt.srcElement).parents(this).length > 0)
|
|
{
|
|
evt.stopPropagation();
|
|
_result = true;
|
|
}
|
|
else if ((evt.srcElement != null) && (evt.srcElement == this))
|
|
{
|
|
evt.stopPropagation();
|
|
_result = true;
|
|
}
|
|
if (_result)
|
|
{
|
|
$(this).find("input[type='checkbox']").prop("checked", !$(this).find("input[type='checkbox']").eq(1).prop("checked"));
|
|
}
|
|
});
|
|
//$("fieldset").dblclick(function (evt)
|
|
//{
|
|
// $(this).find("input[type='checkbox']").prop("checked", !$(this).find("input[type='checkbox']").eq(1).prop("checked"));
|
|
//});
|
|
$("#SelectALL").click(function (evt)
|
|
{
|
|
$("input[type='checkbox']").prop("checked", true);
|
|
});
|
|
$("#UnSelectALL").click(function (evt)
|
|
{
|
|
$("input[type='checkbox']").prop("checked", false);
|
|
});
|
|
}); |