Add minimum/maximum word lengths to session types
This commit is contained in:
parent
8a7efa65d7
commit
57520bb7a9
19 changed files with 133 additions and 61 deletions
12
app/helpers/proposal_helper.rb
Normal file
12
app/helpers/proposal_helper.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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 += "maxcount = #{t.maximum_abstract_length};\n"
|
||||
str += "}\n\n"
|
||||
end.join("\n")
|
||||
str
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue