// Fix bug on auths for sub employees #PSFV-849
This commit is contained in:
@@ -93,12 +93,13 @@
|
||||
function ifSuperAdmin(el)
|
||||
{
|
||||
var val = $(el).val();
|
||||
if(val == {$smarty.const._PS_ADMIN_PROFILE_})
|
||||
|
||||
if (!val || val == {$smarty.const._PS_ADMIN_PROFILE_})
|
||||
{
|
||||
$('.assoShop input[type=checkbox]').attr('disabled', 'disabled');
|
||||
$('.assoShop input[type=checkbox]').attr('disabled', true);
|
||||
$('.assoShop input[type=checkbox]').attr('checked', 'checked');
|
||||
}
|
||||
else
|
||||
$('.assoShop input[type=checkbox]').attr('disabled', '');
|
||||
$('.assoShop input[type=checkbox]').attr('disabled', false);
|
||||
}
|
||||
{/block}
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
$().ready(function() {
|
||||
// Click on "all shop"
|
||||
$('.input_all_shop').live('click', function() {
|
||||
var checked = $(this).prop('checked');
|
||||
$('.input_shop_group:not(:disabled)').attr('checked', checked);
|
||||
|
||||
Reference in New Issue
Block a user