change iframe url

This commit is contained in:
BoHung Chiu 2020-05-19 16:15:14 +08:00
parent d17e54bbc0
commit f093446a58
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@
$('#url_generate').off('click').on('click',function(){
var params = getparams('iframe_settings');
$.post("<%=admin_announcement_generate_iframe_url_path%>",params).done(function(url){
var real_url = window.location.href.split('/')[0]+"//"+window.location.host+url;
var real_url = '/annc_url?url='+window.location.href.split('/')[0]+"//"+window.location.host+url;
if($("#dialog-confirm").length == 0){
$("#url_generate").before("<div id='dialog-confirm' title='<%="iframe "+t('announcement.URL')%>'>"+
"<div style='clear:both;'></div><div id='info_texts'>"+"<label style='float:left;margin-right: 0.2em; line-height: 2em;' for='iframe_url'><%="iframe "+t('announcement.URL') %>:</label><input id= 'iframe_url' style='float:left;cursor:text;' type='text' readyonly value='"+real_url+"'><a class='btn btn-primary copy_text' style='color: white;'><%=t('announcement.copy')%></a>"+"</div>"+