// Fix empty file list on add

This commit is contained in:
Jerome Nadaud
2013-11-08 18:05:56 +01:00
parent bdc996d13b
commit c5b3d20b96
2 changed files with 2 additions and 2 deletions
@@ -172,7 +172,7 @@
$('#{$id}-add-button').on('click', function() {
$('#{$id}-success').html('').parent().hide();
$('#{$id}-errors').html('').parent().hide();
$('#{$id}-files-list').html('').parent().hide();
$('#{$id}-files-list').parent().hide();
{$id}_total_files = 0;
$('#{$id}').trigger('click');
});
@@ -195,7 +195,7 @@
$('#{$id}-add-button').on('click', function() {
$('#{$id}-success').html('').parent().hide();
$('#{$id}-errors').html('').parent().hide();
$('#{$id}-files-list').html('').parent().hide();
$('#{$id}-files-list').parent().hide();
{$id}_total_files = 0;
$('#{$id}').trigger('click');
});