access admin settings result message correctly

This commit is contained in:
Jörn Friedrich Dreyer 2014-06-12 15:59:26 +02:00
parent b91db84050
commit 7e8784c075
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ $(document).ready(function() {
).done(function( result ) { ).done(function( result ) {
$( '#mailTemplateSettings textarea' ).val(result); $( '#mailTemplateSettings textarea' ).val(result);
}).fail(function( result ) { }).fail(function( result ) {
OC.dialogs.alert(result.message, t('files_sharing', 'Could not load template')); OC.dialogs.alert(result.responseJSON.message, t('files_sharing', 'Could not load template'));
}); });
}; };