Skip to content

Commit

Permalink
Add check for admin-elements to allow frontend usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe-Mange committed Apr 26, 2012
1 parent 6e85faf commit bb85423
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/js/sfWidgetFormDmUploadify.js
Expand Up @@ -40,8 +40,12 @@
'auto' : false,
'multi' : true,
'onAllComplete' : function(event, queueID, fileObj, response, data) {
$uploadified.closest('div.ui-dialog-content').dialog('close');
$('#dm_admin_content').block();
if ($uploadified.closest('div.ui-dialog-content').length){
$uploadified.closest('div.ui-dialog-content').dialog('close');
}
if ($('#dm_admin_content').length){
$('#dm_admin_content').block();
}
window.location.reload();
},
'onProgress' : function(event, queueID, fileObj, data) {
Expand Down

0 comments on commit bb85423

Please sign in to comment.