Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Add namespace to placard events
Browse files Browse the repository at this point in the history
  • Loading branch information
interactivellama committed Jul 6, 2015
1 parent db432d6 commit 1b6c74a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,13 @@ define(function (require) {
});
});

$('#myPlacard3').on('accept.fu.placard', function() {
console.log('accept.fu.placard');
});

$('#myPlacard3').on('cancel.fu.placard', function() {
console.log('cancel.fu.placard');
});

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RADIO
Expand Down
2 changes: 1 addition & 1 deletion js/placard.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
this.$field.val(this.previousValue);
}

this.$element.trigger(action, obj);
this.$element.trigger(action + '.fu.placard', obj);
this.hide();
}
},
Expand Down

0 comments on commit 1b6c74a

Please sign in to comment.