You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

integritycheck-failed-notification.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. isHTML: true
  33. }
  34. );
  35. });