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').focus();
|
||||||
$('.settings').autosize();
|
$('.settings').autosize();
|
||||||
} else {
|
} 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
|
// JSON is clean so emit it to the server
|
||||||
socket.emit('saveSettings', $('.settings').val());
|
socket.emit('saveSettings', $('.settings').val());
|
||||||
} else {
|
} else {
|
||||||
alert('YOUR JSON IS BAD AND YOU SHOULD FEEL BAD');
|
alert('Invalid JSON');
|
||||||
$('.settings').focus();
|
$('.settings').focus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue