Skip to content

Commit

Permalink
Merge pull request rodrigoprimo#52 from nunomorgadinho/master
Browse files Browse the repository at this point in the history
remove unnecessary call to jquery noconflict
  • Loading branch information
rodrigoprimo committed Apr 29, 2014
2 parents 9a052cf + c73e2c5 commit f455551
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions media/js/connect.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
jQuery.noConflict();
(function($) {
$(function() {
// ready to roll
Expand Down Expand Up @@ -56,43 +55,43 @@ jQuery.noConflict();
}
};

$(".social_connect_login_facebook").live("click", function() {
$(".social_connect_login_facebook").on("click", function() {
_do_facebook_connect();
});

$(".social_connect_login_continue_facebook").live("click", function() {
$(".social_connect_login_continue_facebook").on("click", function() {
_do_facebook_connect();
});

$(".social_connect_login_twitter").live("click", function() {
$(".social_connect_login_twitter").on("click", function() {
_do_twitter_connect();
});

$(".social_connect_login_continue_twitter").live("click", function() {
$(".social_connect_login_continue_twitter").on("click", function() {
_do_twitter_connect();
});

$(".social_connect_login_google").live("click", function() {
$(".social_connect_login_google").on("click", function() {
_do_google_connect();
});

$(".social_connect_login_continue_google").live("click",function() {
$(".social_connect_login_continue_google").on("click",function() {
_do_google_connect();
});

$(".social_connect_login_yahoo").live("click", function() {
$(".social_connect_login_yahoo").on("click", function() {
_do_yahoo_connect();
});

$(".social_connect_login_continue_yahoo").live("click", function() {
$(".social_connect_login_continue_yahoo").on("click", function() {
_do_yahoo_connect();
});

$(".social_connect_login_wordpress").live("click", function() {
$(".social_connect_login_wordpress").on("click", function() {
_social_connect_wordpress_form.dialog('open');
});

$(".social_connect_wordpress_proceed").live("click", function(e) {
$(".social_connect_wordpress_proceed").on("click", function(e) {
_do_wordpress_connect(e);
});
});
Expand Down

0 comments on commit f455551

Please sign in to comment.