Show minimum word count

This commit is contained in:
Matt Barringer 2013-02-06 19:56:02 +01:00
parent 55039e4b31
commit 9b1704fad6
2 changed files with 7 additions and 1 deletions

View file

@ -10,7 +10,10 @@
:required => true, :label => "Session Abstract"
You have used
%span#abstract-count #{@event.abstract_word_count}
words. Abstracts are limited to
words. Abstracts must be between
%span#abstract-minimum-word-count
0
and
%span#abstract-maximum-word-count
250
words.
@ -41,8 +44,10 @@
$("#event_event_type_id").change(function () {
var str = "";
var min_str = ""
#{generate_abstract_length_js @conference}
$("#abstract-maximum-word-count").text(str);
$("#abstract-minimum-word-count").text(min_str);
word_count($('#event_abstract').get(0), 'abstract-count', maxcount);
})
.trigger('change');