Commit ad2a9a98 by Brian Jacobel

.val is not working here, approximate its intent with .prop("checked")

parent a893c00b
......@@ -129,7 +129,8 @@ if Backbone?
isPrivilegedUser: DiscussionUtil.isPrivilegedUser()
})
)
@$(".forum-nav-sort-control").val(@collection.sort_preference)
@$(".forum-nav-sort-control option").removeProp("selected")
@$(".forum-nav-sort-control option[value=#{@collection.sort_preference}]").prop("selected", true)
$(window).bind "load scroll resize", @updateSidebar
......@@ -524,5 +525,3 @@ if Backbone?
type: "POST"
error: () =>
$('input.email-setting').attr('checked','checked')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment