mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
Fixed notifications titles not html escaped (fixes #1272)
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
|
||||
1. [](#bugfix)
|
||||
* Automatically redirect to new `admin_route` after changing it [#1371](https://github.com/getgrav/grav-plugin-admin/issues/1371)
|
||||
* Added shortcut in Editor for links: CTRL+K / CMD+K [#1279](https://github.com/getgrav/grav-plugin-admin/issues/1279)
|
||||
* Fixed mediapicker field in lists [#1369](https://github.com/getgrav/grav-plugin-admin/issues/1369)
|
||||
* Fixed notifications titles not html escaped [#1272](https://github.com/getgrav/grav-plugin-admin/issues/1272)
|
||||
|
||||
# v1.7.0
|
||||
## 03/09/2018
|
||||
|
||||
@@ -36,10 +36,12 @@ class Notifications {
|
||||
}
|
||||
|
||||
if (notification.link) {
|
||||
const title = document.createElement('div');
|
||||
title.innerHTML = notification.message;
|
||||
content.append(`
|
||||
<li class="single-notification ${hidden}">
|
||||
<span class="badge alert ${notification.type}">${notification.intro_text}</span>
|
||||
<a target="_blank" href="${notification.link}" title="${notification.message}">${notification.message}</a>
|
||||
<a target="_blank" href="${notification.link}" title="${(title.textContent || title.innerText || '')}">${notification.message}</a>
|
||||
</li>
|
||||
`);
|
||||
} else {
|
||||
|
||||
4
themes/grav/js/admin.min.js
vendored
4
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user