vendor/assets/javascripts/codemirror/addons/dialog/dialog.js in codemirror-rails-3.20 vs vendor/assets/javascripts/codemirror/addons/dialog/dialog.js in codemirror-rails-3.21

- old
+ new

@@ -33,9 +33,10 @@ closed = true; dialog.parentNode.removeChild(dialog); } var inp = dialog.getElementsByTagName("input")[0], button; if (inp) { + if (options && options.value) inp.value = options.value; CodeMirror.on(inp, "keydown", function(e) { if (options && options.onKeyDown && options.onKeyDown(e, inp.value, close)) { return; } if (e.keyCode == 13 || e.keyCode == 27) { CodeMirror.e_stop(e); close();