Show minimum word count
This commit is contained in:
parent
55039e4b31
commit
9b1704fad6
2 changed files with 7 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ module ProposalHelper
|
|||
conference.event_types.map do |t|
|
||||
str += "if ($('select option:selected').text() == '#{t.title}') {\n"
|
||||
str += "str = '#{t.maximum_abstract_length}';\n"
|
||||
str += "min_str = '#{t.minimum_abstract_length}';\n"
|
||||
str += "maxcount = #{t.maximum_abstract_length};\n"
|
||||
str += "}\n\n"
|
||||
end.join("\n")
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue