|
|
@@ -121,15 +121,22 @@ $(function(){
|
|
|
$(".page-edit-link").show();
|
|
|
$("#page-content").attr("src" , base_url+"/Home/page/index?page_id="+page_id);
|
|
|
$("#edit-link").attr("href" , base_url+"/Home/page/edit?page_id="+page_id);
|
|
|
+ $("#share-page-link").html("http://"+window.location.host+base_url+"/"+item_id+"?page_id="+page_id);
|
|
|
$("#delete-link").attr("href" , base_url+"/Home/page/delete?page_id="+page_id);
|
|
|
}
|
|
|
|
|
|
- //分享
|
|
|
+ //分享项目
|
|
|
$("#share").click(function(){
|
|
|
$("#share-modal").modal();
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
+ //分享页面
|
|
|
+ $("#share-page").click(function(){
|
|
|
+ $("#share-page-modal").modal();
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+
|
|
|
var ifr = document.getElementById('page-content')
|
|
|
ifr.onload = function() {
|
|
|
var iDoc = ifr.contentDocument || ifr.document
|