forked from saurabh/orbit4-5
small fix in js for google connect
This commit is contained in:
parent
ed3308abbb
commit
2942ab8563
|
@ -73,15 +73,15 @@
|
||||||
$("#google_connection div.main_text").css("opacity","0.5");
|
$("#google_connection div.main_text").css("opacity","0.5");
|
||||||
$("#google_connection div.wait_text").show();
|
$("#google_connection div.wait_text").show();
|
||||||
if($(this).parent().hasClass("disable")){
|
if($(this).parent().hasClass("disable")){
|
||||||
window.location.href = "/auth/google_oauth2"
|
if(confirm("Are you sure?")){
|
||||||
}else{
|
|
||||||
if(confirm("Are you sure?")){
|
|
||||||
window.location.href = "/auth/google_oauth2/remove";
|
window.location.href = "/auth/google_oauth2/remove";
|
||||||
}else{
|
}else{
|
||||||
$("#google_connection div.main_text").css("opacity","1");
|
$("#google_connection div.main_text").css("opacity","1");
|
||||||
$("#google_connection div.wait_text").hide();
|
$("#google_connection div.wait_text").hide();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
window.location.href = "/auth/google_oauth2";
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue