summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/addon/dialog
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-04-20 18:11:40 +0800
committerCheng-Han, Wu2016-04-20 18:11:40 +0800
commit8bf516263c6582771e7576e8484ca8cfaa8cb9cb (patch)
treeaba81172f554a50466a762db99f25e3650d7ff45 /public/vendor/codemirror/addon/dialog
parentedc3a31dfdb03e910d7355144280e281eeb582d5 (diff)
Update CodeMirror to 5.13.5
Diffstat (limited to 'public/vendor/codemirror/addon/dialog')
-rw-r--r--public/vendor/codemirror/addon/dialog/dialog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/vendor/codemirror/addon/dialog/dialog.js b/public/vendor/codemirror/addon/dialog/dialog.js
index 323b2007..f10bb5bf 100644
--- a/public/vendor/codemirror/addon/dialog/dialog.js
+++ b/public/vendor/codemirror/addon/dialog/dialog.js
@@ -56,6 +56,8 @@
var inp = dialog.getElementsByTagName("input")[0], button;
if (inp) {
+ inp.focus();
+
if (options.value) {
inp.value = options.value;
if (options.selectValueOnOpen !== false) {
@@ -79,8 +81,6 @@
});
if (options.closeOnBlur !== false) CodeMirror.on(inp, "blur", close);
-
- inp.focus();
} else if (button = dialog.getElementsByTagName("button")[0]) {
CodeMirror.on(button, "click", function() {
close();