Файл: upload/module/group/static/jscript/add.js
Строк: 25
<?php
$(function()
{
$('.js_group_change_group').click(function()
{
if ($(this).parent().hasClass('locked'))
{
return false;
}
aParts = explode('#', this.href);
$('.js_group_block').hide();
$('#js_group_block_' + aParts[1]).show();
$(this).parents('.header_bar_menu:first').find('li').removeClass('active');
$(this).parent().addClass('active');
$('#js_group_add_action').val(aParts[1]);
});
$('.js_mp_category_list').change(function()
{
var iParentId = parseInt(this.id.replace('js_mp_id_', ''));
$('.js_mp_category_list').each(function()
{
if (parseInt(this.id.replace('js_mp_id_', '')) > iParentId)
{
$('#js_mp_holder_' + this.id.replace('js_mp_id_', '')).hide();
this.value = '';
}
});
$('#js_mp_holder_' + $(this).val()).show();
});
$('#js_group_view_id').change(function()
{
if (this.value == '0')
{
$('#js_access_items').show();
$('#js_auto_approve').hide();
}
else
{
$('#js_access_items').hide();
$('#js_auto_approve').show();
}
});
if ($('#js_group_view_id').val() == '0')
{
$('#js_access_items').show();
}
});
?>