diff options
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/apps.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 2a6876c53df..325653ccbdc 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -246,7 +246,7 @@ OC.Settings.Apps = OC.Settings.Apps || { appItem.addClass('appwarning'); } else { if (result.data.update_required) { - OC.Notification.show(t('settings', 'The app needs to be updated, please reload the page')); + OC.Settings.Apps.showReloadMessage(); setTimeout(function() { location.reload(); @@ -398,6 +398,20 @@ OC.Settings.Apps = OC.Settings.Apps || { .text(''); }, + showReloadMessage: function(appId) { + OC.dialogs.info( + t( + 'settings', + 'The app needs to be updated. This page will be reloaded in 5 seconds.' + ), + t('settings','App update'), + function (result) { + window.location.reload(); + }, + true + ); + }, + filter: function(query) { query = query.toLowerCase(); $('#apps-list').find('.section').addClass('hidden'); |