Skip to content

Instantly share code, notes, and snippets.

@PabloVallejo
Created August 1, 2013 17:39
Show Gist options
  • Save PabloVallejo/6133547 to your computer and use it in GitHub Desktop.
Save PabloVallejo/6133547 to your computer and use it in GitHub Desktop.
app.js.global-events
diff --git a/assets/js/handlers/comment.js b/assets/js/handlers/comment.js
index 4cd330d..bb08dd5 100644
--- a/assets/js/handlers/comment.js
+++ b/assets/js/handlers/comment.js
@@ -8,6 +8,12 @@
initialize: function() {
+ // Bind to global event `user.login`.
+ // window.Bppl.Event.on( 'user.login', this.functionToCall );
+
+ // Opening the modal.
+ window.Bppl.Views.User.toggleLogin( 'user.login' );
+
}
, events: {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment