diff options
author | Brion Vibber <brion@status.net> | 2010-08-12 12:56:23 -0700 |
---|---|---|
committer | Brion Vibber <brion@status.net> | 2010-08-12 12:56:23 -0700 |
commit | ae696728f5edf8972c68c17ce9ea21f07d44cbed (patch) | |
tree | 073ad192f38bb6be33f04534abfa314cfc64021a /js | |
parent | 855f1f6623e64701796f443fc20fde164b1a1846 (diff) | |
parent | c3475e6ebef594460ec3685a007e7298fcbd9833 (diff) |
Merge branch '0.9.x' into 1.0.x
Diffstat (limited to 'js')
-rw-r--r-- | js/util.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js index 6a67da4bc..ad8a44c82 100644 --- a/js/util.js +++ b/js/util.js @@ -110,7 +110,7 @@ var SN = { // StatusNet return; } - var remaining = MaxLength - form.find('#'+SN.C.S.NoticeDataText).val().length; + var remaining = MaxLength - SN.U.CharacterCount(form); var counter = form.find('#'+SN.C.S.NoticeTextCount); if (remaining.toString() != counter.text()) { @@ -134,6 +134,10 @@ var SN = { // StatusNet } }, + CharacterCount: function(form) { + return form.find('#'+SN.C.S.NoticeDataText).val().length; + }, + ClearCounterBlackout: function(form) { // Allow keyup events to poke the counter again SN.C.I.CounterBlackout = false; |