mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2026-12-05 00:38:42 +00:00
Lock Shoutbox after sending a message
Closed #125 Closed #67 Merge branch 'miketweaver-javascript-feature' into feature-release-1.1.0
This commit is contained in:
commit
aba673ef8a
2 files changed
+11
-6
No files matched your search
@@ -58,7 +58,7 @@
|
||||
<div id="shoutbox-input">
|
||||
<input class="nickname" type="text" name="name" value="Anonymous" placeholder="Nickname">
|
||||
<input class="message" type="text" name="data" placeholder="Message...">
|
||||
<input class="button" type="submit" name="submit" value="Send">
|
||||
<input class="button" type="submit" name="submit" value="Send" id="send-button">
|
||||
</div>
|
||||
<div id="shoutbox-options">
|
||||
<h3>Text Color:</h3>
|
||||
|
||||
@@ -105,11 +105,16 @@ function refresh_time_sb () {
|
||||
}
|
||||
|
||||
function post_shoutbox () {
|
||||
$.post("/cgi-bin/psowrte.py" , $("#sb_form").serialize())
|
||||
.success(function() {
|
||||
refresh_shoutbox();
|
||||
});
|
||||
$('#shoutbox-input .message').val('');
|
||||
$("#send-button").prop('value', 'Sending...');
|
||||
$("#send-button").prop('disabled', true);
|
||||
|
||||
$.post("/cgi-bin/psowrte.py" , $("#sb_form").serialize())
|
||||
.success(function() {
|
||||
refresh_shoutbox();
|
||||
$("#send-button").prop('value', 'Send')
|
||||
$("#send-button").prop('disabled', false);
|
||||
});
|
||||
$('#shoutbox-input .message').val('');
|
||||
}
|
||||
|
||||
function display_shoutbox() {
|
||||
|
||||
Reference in new issue
Block a user