mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
Edit settings.js
Added formal panics for invalid JSON.
This commit is contained in:
parent
578ae17aa8
commit
ae9114f140
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ $(document).ready(() => {
|
|||
$('.settings').focus();
|
||||
$('.settings').autosize();
|
||||
} else {
|
||||
alert('YOUR JSON IS BAD AND YOU SHOULD FEEL BAD');
|
||||
alert('Invalid JSON');
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -39,7 +39,7 @@ $(document).ready(() => {
|
|||
// JSON is clean so emit it to the server
|
||||
socket.emit('saveSettings', $('.settings').val());
|
||||
} else {
|
||||
alert('YOUR JSON IS BAD AND YOU SHOULD FEEL BAD');
|
||||
alert('Invalid JSON');
|
||||
$('.settings').focus();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue