From 6205190c783780fc49523504577f4f053eb9d3d6 Mon Sep 17 00:00:00 2001 From: Nicholas O'Leary Date: Wed, 9 Oct 2013 22:12:06 +0100 Subject: [PATCH] Fix jumping focus with Orion editor --- nodes/core/80-function.html | 3 ++- nodes/core/80-template.html | 4 ++-- nodes/core/90-comment.html | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/nodes/core/80-function.html b/nodes/core/80-function.html index f4090f801..68b71cc75 100644 --- a/nodes/core/80-function.html +++ b/nodes/core/80-function.html @@ -21,7 +21,7 @@
- +
@@ -85,6 +85,7 @@ editor:that.editor, // the field name the main text body goes to fields:['name','outputs'] }); + $("#node-input-name").focus(); }); }, diff --git a/nodes/core/80-template.html b/nodes/core/80-template.html index f0a024173..8d7c8ddd1 100644 --- a/nodes/core/80-template.html +++ b/nodes/core/80-template.html @@ -22,7 +22,7 @@
- +
@@ -79,7 +79,7 @@ editor:that.editor, // the field name the main text body goes to fields:['name'] }); - + $("#node-input-name").focus(); }); }, oneditsave: function() { diff --git a/nodes/core/90-comment.html b/nodes/core/90-comment.html index 86b8922cb..b909b5d1f 100644 --- a/nodes/core/90-comment.html +++ b/nodes/core/90-comment.html @@ -21,7 +21,7 @@
- +
Tip: this isn't meant for War and Peace - but useful notes can be kept here.
@@ -75,6 +75,7 @@ showFoldingRuler:false, contents: $("#node-input-info").val() }); + $("#node-input-name").focus(); }); }, oneditsave: function() {