fix for http and https in index page for loading page
This commit is contained in:
parent
87f853242e
commit
ee215cfadb
|
@ -12,6 +12,9 @@
|
||||||
var modal = $("#approvalModal");
|
var modal = $("#approvalModal");
|
||||||
$(document).on("click", ".approval_button",function(){
|
$(document).on("click", ".approval_button",function(){
|
||||||
var url = $(this).attr("href");
|
var url = $(this).attr("href");
|
||||||
|
if(window.location.protocol === "https:"){
|
||||||
|
url = url.replace("http:","https:");
|
||||||
|
}
|
||||||
modal.find("iframe").attr("src", url);
|
modal.find("iframe").attr("src", url);
|
||||||
modal.find("#object_id").val($(this).data("id"));
|
modal.find("#object_id").val($(this).data("id"));
|
||||||
modal.modal("show");
|
modal.modal("show");
|
||||||
|
|
Loading…
Reference in New Issue