Reduce textarea length to 220 max hotfix/1.0.11
authorLaury GvR <laury@gaslightmedia.com>
Tue, 28 Feb 2017 15:42:39 +0000 (10:42 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 28 Feb 2017 15:42:39 +0000 (10:42 -0500)
glm-simple-messageboard.php
views/textArea.php

index 97aa705..3ec2664 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Plugin Name: GLM Simple Messageboard
  * Description: Option Setting for displaying two fields; a name and a message
- * Version: 1.0.10
+ * Version: 1.0.11
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com
  * License: All right reserved
index c2dd36d..7c5d976 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="220" 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;
+        // 220 is the max message length
+        var remaining = 220 - jQuery('.message').val().length;
         jQuery('.countdown').text(remaining + ' characters remaining.');
     }
     jQuery(document).ready(function($) {