small fix in js for google connect

This commit is contained in:
Harry Bomrah 2015-03-04 20:15:02 +08:00
parent ed3308abbb
commit 2942ab8563
1 changed files with 3 additions and 3 deletions

View File

@ -73,8 +73,6 @@
$("#google_connection div.main_text").css("opacity","0.5");
$("#google_connection div.wait_text").show();
if($(this).parent().hasClass("disable")){
window.location.href = "/auth/google_oauth2"
}else{
if(confirm("Are you sure?")){
window.location.href = "/auth/google_oauth2/remove";
}else{
@ -82,6 +80,8 @@
$("#google_connection div.wait_text").hide();
return false;
}
}else{
window.location.href = "/auth/google_oauth2";
}
})
</script>