Тhis is code:
if (urlGid) {
$('.global_main').hide();
$('#right-tabs, #right-tabs-content').show();
} else {
$('.global_main').show();
$('#right-tabs, #right-tabs-content').hide();
}
I think this is so trouble, how can change it elegantly?
can I code it without if else?