integritycheck-failed-notification.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @author Lukas Reschke
  3. *
  4. * @copyright Copyright (c) 2015, ownCloud, Inc.
  5. *
  6. * This code is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Affero General Public License, version 3,
  8. * as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License, version 3,
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>
  17. */
  18. /**
  19. * This gets only loaded if the integrity check has failed and then shows a notification
  20. */
  21. $(document).ready(function(){
  22. var text = t(
  23. 'core',
  24. '<a href="{docUrl}">There were problems with the code integrity check. More information…</a>',
  25. {
  26. docUrl: OC.generateUrl('/settings/admin#security-warning')
  27. }
  28. );
  29. OC.Notification.showHtml(
  30. text,
  31. {
  32. type: 'error',
  33. isHTML: true
  34. }
  35. );
  36. });