fix for http and https in index page for loading page
This commit is contained in:
parent
87f853242e
commit
ee215cfadb
|
@ -11,7 +11,10 @@
|
|||
<script type="text/javascript">
|
||||
var modal = $("#approvalModal");
|
||||
$(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("#object_id").val($(this).data("id"));
|
||||
modal.modal("show");
|
||||
|
|
Loading…
Reference in New Issue