diff options
author | Ravindra Nath Kakarla <ravindhranath@gmail.com> | 2011-06-13 21:22:02 +0530 |
---|---|---|
committer | Ravindra Nath Kakarla <ravindhranath@gmail.com> | 2011-06-13 21:22:02 +0530 |
commit | 797f3ab42d2f9cbd1c2150d0f491696d4874b404 (patch) | |
tree | 2f6984318a4c1b1feb0d9304758913558b503a51 | |
parent | a420910a8b782bae53fbd7f86102db9f9b831388 (diff) | |
download | elgg-797f3ab42d2f9cbd1c2150d0f491696d4874b404.tar.gz elgg-797f3ab42d2f9cbd1c2150d0f491696d4874b404.tar.bz2 |
textarea has to be jQuery object
-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); |