Skip to content

Commit

Permalink
Add initial value option to openDialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyguava authored and marijnh committed Dec 17, 2012
1 parent 3d4184b commit 916a8e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/util/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
if (e.keyCode == 13) callback(inp.value);
}
});
if (options && options.value) inp.value = options.value;
inp.focus();
CodeMirror.on(inp, "blur", close);
} else if (button = dialog.getElementsByTagName("button")[0]) {
Expand Down

0 comments on commit 916a8e8

Please sign in to comment.