Skip to content

Commit

Permalink
Merge branch 'master' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sdabet committed May 30, 2012
2 parents 7a543ac + 07e1e4a commit d2ab129
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions script/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ else {
parent.window.postMessage(serialization_without_images, "*");
}

document.getElementById("dim_editor").addEventListener("submit", function(e) {
e.preventDefault();
level.lines = document.getElementById("lines_field").value;
board.style.height = document.getElementById("board_height_field").value + "px";
location.href = "editor.html?" + level.serialize(false);
return false;
});

var selectedAnimation = function() {
return document.getElementById("animation_field").value;
};
Expand Down

0 comments on commit d2ab129

Please sign in to comment.