Reducing the max textarea length to 230 from 270
authorLaury GvR <laury@gaslightmedia.com>
Tue, 28 Feb 2017 14:51:42 +0000 (09:51 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 28 Feb 2017 14:51:42 +0000 (09:51 -0500)
views/textArea.php

index c2dd36d..f024121 100644 (file)
@@ -1,9 +1,9 @@
-<textarea class='message' cols="40" maxlength="270" rows="5" name="glmsimplemessageboard_settings[<?php echo $fieldName;?>]"><?php echo htmlspecialchars($options[$fieldName]); ?></textarea>
+<textarea class='message' cols="40" maxlength="230" rows="5" name="glmsimplemessageboard_settings[<?php echo $fieldName;?>]"><?php echo htmlspecialchars($options[$fieldName]); ?></textarea>
 <br><span class="countdown"></span>
 <script type="text/javascript">
     function updateCountdown() {
         // 140 is the max message length
-        var remaining = 270 - jQuery('.message').val().length;
+        var remaining = 230 - jQuery('.message').val().length;
         jQuery('.countdown').text(remaining + ' characters remaining.');
     }
     jQuery(document).ready(function($) {