Commit 7924712f authored by Markus Bergt's avatar Markus Bergt

fixed (hopefully finally) the send form

parent 32021540
......@@ -51,7 +51,8 @@ $(document).ready(function() {
obj.removeClass('btn-warning');
}
obj.addClass('btn-default');
obj.attr('name', 'chatok');
$('#messageType').attr('name', 'chatok');
});
$('#changeToMod').click(function(event){
......@@ -66,7 +67,7 @@ $(document).ready(function() {
obj.removeClass('btn-danger');
}
obj.addClass('btn-warning');
$('#sendMessage').attr('name', 'modok');
$('#messageType').attr('name', 'modok');
});
$('#changeToAdmin').click(function(event){
......@@ -81,7 +82,7 @@ $(document).ready(function() {
obj.removeClass('btn-warning');
}
obj.addClass('btn-danger');
$('#sendMessage').attr('name', 'adminok');
$('#messageType').attr('name', 'adminok');
});
$('#showRegBtn').click(function(){
......
......@@ -99,7 +99,8 @@ else{
<span class="input-group-addon hidden-xs"><?php echo $users['name']; ?>:</span>
<input type="text" name="text" class="form-control" placeholder="Deine Nachricht..." autofocus>
<span class="input-group-btn dropup">
<input class="btn btn-default" id="sendMessage" name="chatok" value="btn" type="submit"><span class="glyphicon glyphicon-send" /> <span class="hidden-xs">Senden</span></input>
<input type="hidden" id="messageType" name=chatok value="btn" />
<button class="btn btn-default" id="sendMessage" type="submit"><span class="glyphicon glyphicon-send" /> <span class="hidden-xs">Senden</span></button>
<?php
if($users['admin'] >= 1)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment