5.2 release notes - fix code type

- We usually use `javascript` not `js`
pull/10948/head
LB Johnston 2023-10-17 08:42:00 +10:00
rodzic 07eecc8b86
commit d0b588228d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -368,7 +368,7 @@ This behaviour has now moved to a Stimulus controller and leverages DOM events i
You can implement roughly the equivalent functionality with this JavaScript function, however, this will not be guaranteed to work in future releases.
```js
```javascript
window.updateFooterSaveWarning = (formDirty, commentsDirty) => {
if (!formDirty && !commentsDirty) {
document.dispatchEvent(new CustomEvent('w-unsaved:clear'));