diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-06-24 03:09:32 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-06-24 03:09:32 -0700 |
commit | 60d69e25433b7b00d9c7f20db43b71c8978560c9 (patch) | |
tree | 198b2f3e71869eac422e074e323bf2d6f3c6c825 /mod/thewire/views | |
parent | 1dd0a7fe4b14fff8f2643b5d72fc44dfcdfe0c1f (diff) | |
parent | 797f3ab42d2f9cbd1c2150d0f491696d4874b404 (diff) | |
download | elgg-60d69e25433b7b00d9c7f20db43b71c8978560c9.tar.gz elgg-60d69e25433b7b00d9c7f20db43b71c8978560c9.tar.bz2 |
Merge pull request #39 from blacktooth/thewire-counterfix
Fixes #3563 textarea has to be jQuery object
Diffstat (limited to 'mod/thewire/views')
-rw-r--r-- | mod/thewire/views/default/js/thewire.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/thewire/views/default/js/thewire.php b/mod/thewire/views/default/js/thewire.php index 1eda90bee..d9bf6d10e 100644 --- a/mod/thewire/views/default/js/thewire.php +++ b/mod/thewire/views/default/js/thewire.php @@ -30,7 +30,7 @@ elgg.thewire.init = function() { */ elgg.thewire.textCounter = function(textarea, status, limit) { - var remaining_chars = limit - textarea.value.length; + var remaining_chars = limit - $(textarea).val().length; status.html(remaining_chars); if (remaining_chars < 0) { @@ -83,4 +83,4 @@ elgg.thewire.viewPrevious = function(event) { event.preventDefault(); } -elgg.register_hook_handler('init', 'system', elgg.thewire.init);
\ No newline at end of file +elgg.register_hook_handler('init', 'system', elgg.thewire.init); |