Skip to content

Commit

Permalink
add node form comp
Browse files Browse the repository at this point in the history
  • Loading branch information
nobelium committed Feb 5, 2012
1 parent b9c0e94 commit 73e36fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions admin/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ body {
}

#nodeheaderBox{
position:absolute;
left:50%;
margin-left:-100px;
top:-500px;
margin-top:-100px;
height:200px;
width:200px;
background: #fff;
Expand Down
10 changes: 4 additions & 6 deletions admin/admin2.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
posY: data.posY,
nodeId: data.nodeId
}]);
$("#nodeheaderBox").hide();
$("#nodeheaderBox").css({"top":"-500px"});
}
});

Expand All @@ -337,11 +337,9 @@
$("#addNode input[name=posX]").val(e.x);
$("#addNode input[name=posY]").val(e.y);
$("#addNode input[name=file]").click().change(function(){
$("#addNode input[name=header]").focus();
$("#nodeheaderBox").css({
left: $("#graph").offset().left+($("#graph").width()/2)-($(this).width()/2),
top:$("#graph").offset().top+($("#graph").height()/2)-100
}).show();
$("#nodeheaderBox").css({"top":"50%"});
$("#addNode textarea[name=comments]").val("");
$("#addNode input[name=header]").val("").focus();
});
});

Expand Down

0 comments on commit 73e36fd

Please sign in to comment.