Skip to content

Commit

Permalink
make conditions and reagents text hideable
Browse files Browse the repository at this point in the history
  • Loading branch information
novakps committed Jan 10, 2011
1 parent 548918c commit 15d293e
Show file tree
Hide file tree
Showing 10 changed files with 455 additions and 407 deletions.
5 changes: 4 additions & 1 deletion kemia/controller/plugins/arrow_plus_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ kemia.controller.plugins.ArrowPlusEdit.prototype.handleMouseDown = function(e) {
.createInverse();
var coords = trans.transformCoords([new goog.math.Coordinate(
e.offsetX, e.offsetY)]);
this.editorObject.getModels()[0].setArrow(new kemia.model.Arrow(
var model = this.editorObject.getModels()[0];
if (model instanceof kemia.model.Reaction){
model.setArrow(new kemia.model.Arrow(
coords[0]));
}
this.editorObject.setModelsSilently(this.editorObject.getModels());
this.editorObject.dispatchChange();
} else if (this.activeCommand[kemia.controller.plugins.ArrowPlusEdit.COMMAND.EDIT_PLUS]) {
Expand Down
2 changes: 1 addition & 1 deletion kemia/controller/reaction_editor_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title >
kemia.controller.ReactionEditor
</title>
<script src="http://10.37.129.2:9810/compile?id=controller_reaction_editor_demo" ></script>
<script src="http://localhost:9810/compile?id=controller_reaction_editor_demo" ></script>
<script>
(function() {
window.onload = function() {
Expand Down

0 comments on commit 15d293e

Please sign in to comment.