Skip to content
Snippets Groups Projects
Commit 2575a09d authored by PavelBegunkov's avatar PavelBegunkov
Browse files

profiler click hiding

parent 5c9d4445
Branches
Tags
No related merge requests found
$(function()
{
var jProfiler = $('#profileInfo').first();
var isOpened = false;
var flag = false;
// Показ профиля при нажатии
$(document).click(function() {
if (flag === true) {
flag = false;
} else if (isOpened === true) {
jProfiler.css('display', 'none');
isOpened = false;
}
});
$(".profile_wrapper").click(function() {
flag = true;
});
$('#top_username').click(function() {
flag = true;
if(isOpened)
{
$('#profileInfo').css('display', 'none');
jProfiler.css('display', 'none');
isOpened = false;
}
else
{
$('#profileInfo').css('display', 'block');
jProfiler.css('display', 'block');
isOpened = true;
}
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment