Skip to content
Snippets Groups Projects
Commit fb9d7ef2 authored by westmakaha's avatar westmakaha
Browse files

fix problem of saving int typed setting #701

parent 6f3e3553
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,8 @@ Template.admin.events
value = null
if setting.type is 'string'
value = _.trim(t.$("[name=#{setting._id}]").val())
else if setting.type is 'int'
value = parseInt(_.trim(t.$("[name=#{setting._id}]").val()))
else if setting.type is 'boolean' and t.$("[name=#{setting._id}]:checked").length
value = if t.$("[name=#{setting._id}]:checked").val() is "1" then true else false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment