GROUP BUTTONS AND GROUP STYLE #171
@@ -93,4 +93,14 @@ function showGroups(groups, list) {
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$("body").delegate("textarea[maxlength]", "keydown", function() {
|
||||
if ($(this).val().length / .9 >= $(this).attr("maxlength")) {
|
||||
$(this).next().text($(this).val().length + "/" + $(this).attr("maxlength"));
|
||||
} else {
|
||||
$(this).next().text("");
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -96,7 +96,7 @@ function masonry(mode) {
|
||||
}
|
||||
|
||||
$form.append($("<input class=\"newpost\" name=\"title\" placeholder=\"Titel\" type=\"text\">"));
|
||||
$form.append($("<textarea class=\"newpost\" name=\"content\" placeholder=\"Schrijf een berichtje...\">"));
|
||||
$form.append($("<textarea class=\"newpost\" name=\"content\" placeholder=\"Schrijf een berichtje...\" maxlength='1000'></textarea><span></span>"));
|
||||
$form.append($("<input value=\"Plaats!\" type=\"submit\">"));
|
||||
columns[0][1].append($postInput);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ echo("
|
||||
<div class="commentfield">
|
||||
<form id="newcommentform" onsubmit="return false;">
|
||||
<input type="hidden" id="newcomment-textarea" name="postID" value="<?= $postID ?>">
|
||||
<textarea id="newcomment" name="newcomment-content" placeholder="Laat een reactie achter..."></textarea> <br>
|
||||
<textarea id="newcomment" name="newcomment-content" placeholder="Laat een reactie achter..." maxlength="1000"></textarea><span></span> <br>
|
||||
<button onclick="postComment('reaction')" name="button" value="reaction">Reageer!</button>
|
||||
<button onclick="postComment('nietslecht')" name="button" value="nietslecht" class="nietslecht">
|
||||
<?php
|
||||
|
||||
@@ -99,7 +99,8 @@ $settings = getSettings();
|
||||
rows="5"
|
||||
title="bio"
|
||||
id="bio"
|
||||
><?=$settings["bio"]?></textarea>
|
||||
maxlength="1000"
|
||||
><?=$settings["bio"]?></textarea><span></span>
|
||||
</li>
|
||||
<li>
|
||||
<label></label>
|
||||
|
||||
Reference in New Issue
Block a user