Fixes the proposal abstract word count javascript functions

fix #510
This commit is contained in:
Chrisbr 2014-10-05 18:58:47 +02:00
parent 9e499d2a5e
commit c995f57877
3 changed files with 23 additions and 32 deletions

View file

@ -1,13 +0,0 @@
module ProposalHelper
def generate_abstract_length_js(conference)
str = ''
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")
str
end
end