diff options
author | Joas Schilling <coding@schilljs.com> | 2019-11-19 12:54:26 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-11-19 12:54:26 +0300 |
commit | 7d60f536b31ae331294af77c4c966c40bafffb1d (patch) | |
tree | f7dc5863a749c0637043b1b3d356bc91f6378997 /js/admin.js | |
parent | 103116d6679354515ad91c80309be978d42b5733 (diff) |
Use public Toast api for errors
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'js/admin.js')
-rw-r--r-- | js/admin.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/admin.js b/js/admin.js index 2899c6c..b1285bd 100644 --- a/js/admin.js +++ b/js/admin.js @@ -46,7 +46,7 @@ $(document).ready(function() { }, error: function(xhr) { $button.attr('disabled', false); - OC.Notification.showTemporary(t('survey_client', 'An error occurred while sending your report.')); + OCP.Toast.error(t('survey_client', 'An error occurred while sending your report.')); var response = xhr.responseJSON; $section.find('.last_report').text(JSON.stringify(response.ocs.data, undefined, 4)); |