Archived
1
0

add logging

This commit is contained in:
Jeff Becker
2016-04-30 13:32:38 -04:00
parent 4264004eaf
commit 61e390daf0
2 changed files with 5 additions and 2 deletions

View File

@@ -264,8 +264,11 @@ function init(prefix) {
e.setAttribute("draggable", "true");
e.ondragend = function(ev) {
ev.preventDefault();
var x = 0;
var y = 0;
console.log(ev);
var el = document.getElementById("postform_container");
el.setAttribute("style", "top: "+ev.windowY+"px; left: "+ev.windowX+ "px; position: fixed; ");
el.setAttribute("style", "top: "+y+"px; left: "+x+ "px; position: fixed; ");
}
}