mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
13 lines
No EOL
423 B
Ruby
13 lines
No EOL
423 B
Ruby
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 |