From 17f902e65c59f1c93d2b0ba3f6e253be64dd14ae Mon Sep 17 00:00:00 2001 From: Blake Grotewold Date: Fri, 6 Jun 2014 11:59:46 -0400 Subject: [PATCH] Add Engine.autoSelect and add to Engine.export64 --- script/engine.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/engine.js b/script/engine.js index f2f7bc4..957556b 100644 --- a/script/engine.js +++ b/script/engine.js @@ -313,6 +313,7 @@ } } }); + Engine.autoSelect('#description textarea') }, import64: function(string64) { @@ -627,6 +628,10 @@ document.onmousedown = eventPassthrough; }, + autoSelect: function(selector) { + $(selector).focus().select(); + }, + handleStateUpdates: function(e){ },