forked from saurabh/orbit4-5
small fix in js for google connect
This commit is contained in:
parent
ed3308abbb
commit
2942ab8563
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue