mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Bind flair submission form event to parent.
This commit is contained in:
committed by
Neil Williams
parent
f048c2fdbc
commit
ca0001aaac
@@ -186,17 +186,16 @@ $(function() {
|
||||
|
||||
// Attach event handlers to the various flair forms that may be on page.
|
||||
|
||||
$("#tabbedpane-grant .flair-entry").on("submit", {
|
||||
$("#tabbedpane-grant").on("submit", ".flair-entry", {
|
||||
action: "flair",
|
||||
}, onSubmit)
|
||||
|
||||
$("#tabbedpane-grant .flairdeletebtn").on("click", {
|
||||
$("#tabbedpane-grant").on("click", ".flairdeletebtn", {
|
||||
action: "deleteflair",
|
||||
}, onDelete)
|
||||
|
||||
|
||||
$("#tabbedpane-templates .flair-entry, " +
|
||||
"#tabbedpane-link_templates .flair-entry").on("submit", {
|
||||
$("#tabbedpane-templates, #tabbedpane-link_templates").on("submit", ".flair-entry", {
|
||||
action: "flairtemplate",
|
||||
}, onSubmit)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user