Mercurial > hg > Members > nobuyasu > html > graphViewer
changeset 48:107cf3f3134e draft
implemented inspectAccess popup
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Mar 2013 06:05:42 +0900 |
parents | 0f624dc3664d |
children | 614acb91d753 |
files | show.html |
diffstat | 1 files changed, 25 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/show.html Sun Mar 24 04:03:00 2013 +0900 +++ b/show.html Sun Mar 24 06:05:42 2013 +0900 @@ -84,6 +84,20 @@ </ul> </div> +<div id='popupAccessUrl' style='position:fixed; left:0px; top:0px; width:100%; height:100%; z-index:30; display:none'> + <div style='position:absolute;left:0;top:0;width:100%;height:100%;background:black;opacity:0.5'></div> + <div style='position:absolute;left:50%;top:50%;'> + <div style='position:absolute;left:-160px;top:-80px;width:320px;height:120px;background:white'> + <form onsubmit="" id='accessForm'> + <div style='position:absolute;left:20px;top:15px;font-size:24px;width:280;text-align:center;'> + Document Access + </div> + <span id='accessStop' style='position:absolute;left:100px;top:70px;width:80px;font-size:16px;height:24px;line-height:24px;' class='button' value='back' onclick="$('#popupAccessUrl').css('display','none');">Back</span> + <span id='accessRequest' style='position:absolute;left:220px;top:70px;width:80px;font-size:16px;height:24px;line-height:24px;' class='button' value='access' onclick="">Access</span> + </form> + </div> + </div> +</div> @@ -428,16 +442,25 @@ showAllEdge(graphData); } +function inspectAction(url) { + $('#accessRequest').click(function(){ + console.log('accesRequest'); + window.open(url, 'accessUrl', "width=600,height=500,resizable=yes,scrollbars=yes"); + $('#popupAccessUrl').css('display','none'); + return false; + }); + $('#popupAccessUrl').css('display','block'); +} + function getInspect(id) { $.ajax({ url:"/aat/aaevidencesiftingmodel.userdesktops/inspect?id="+id, - success:function(o) { console.log("getInspect:"+this.url,o); }, + success:function(o) { inspectAction(o); }, type:"GET", cache:true, error:function(o) { console.log("getEvidence error : ", o); } }); } - function getEvidence(nodeId, edgeInfo) { $.ajax({ url:"/aat/aaevidencesiftingmodel.userdesktops/get?desktopid="+desktopid() +"&id="+nodeId+"&edgeinfoid="+edgeInfo.id,