// AdminController and stock management : some debug and updates

This commit is contained in:
dSevere
2011-11-23 13:15:40 +00:00
parent e7cf665a7c
commit 2640bb1094
5 changed files with 57 additions and 122 deletions
@@ -88,7 +88,7 @@ $(document).ready(function() {
}
});
content.append($('<td class="empty"></td>'));
$('#details_{$id}').parent().parent().after(content);
$('#details_{$id}').parent().parent().after(content.show('slow'));
});
}
else
@@ -98,7 +98,7 @@ $(document).ready(function() {
else
var content = $('<tr class="details_{$id}"></tr>');
content.append($('<td style="border:none!important;">'+data.data+'</td>').attr('colspan', $('#details_{$id}').parent().parent().find('td').length));
$('#details_{$id}').parent().parent().after(content);
$('#details_{$id}').parent().parent().after(content.show('slow'));
}
this.dataMaped = true;
this.opened = false;
@@ -110,13 +110,13 @@ $(document).ready(function() {
if (this.opened)
{
$(this).find('img').attr('src', '../img/admin/more.png');
$(this).parent().parent().parent().find('.details_{$id}').hide();
$(this).parent().parent().parent().find('.details_{$id}').hide('slow');
this.opened = false
}
else
{
$(this).find('img').attr('src', '../img/admin/less.png');
$(this).parent().parent().parent().find('.details_{$id}').show();
$(this).parent().parent().parent().find('.details_{$id}').show('slow');
this.opened = true;
}
return false;