diff --git a/app/assets/javascripts/sitewide/marvinjs_editor.js b/app/assets/javascripts/sitewide/marvinjs_editor.js index 5b3dc3aa5..5467d72d6 100644 --- a/app/assets/javascripts/sitewide/marvinjs_editor.js +++ b/app/assets/javascripts/sitewide/marvinjs_editor.js @@ -168,6 +168,10 @@ var MarvinJsEditorApi = (function() { $(marvinJsModal).modal('hide'); FilePreviewModal.init(); config.button.dataset.inProgress = false; + }).error((response) => { + if (response.status === 403) { + HelperModule.flashAlertMsg(I18n.t('general.no_permissions'), 'danger'); + } }); } @@ -196,6 +200,11 @@ var MarvinJsEditorApi = (function() { } $(marvinJsModal).modal('hide'); config.button.dataset.inProgress = false; + }, + error: function(response) { + if (response.status === 403) { + HelperModule.flashAlertMsg(I18n.t('general.no_permissions'), 'danger'); + } } }); } diff --git a/app/assets/stylesheets/shared/smart_annotation.scss b/app/assets/stylesheets/shared/smart_annotation.scss index 8fa2e15a9..fa449fa5d 100644 --- a/app/assets/stylesheets/shared/smart_annotation.scss +++ b/app/assets/stylesheets/shared/smart_annotation.scss @@ -47,7 +47,7 @@ .atwho-no-results { color: $color-silver-chalice; - padding: 1.5em 7em; + padding: 1.5em 4em; text-align: center; .description {