Skip to content

Commit

Permalink
added placeholder for prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
brijeshb42 committed May 20, 2015
1 parent 8a1216a commit 98d5269
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medium-style-confirm",
"version": "0.3.0",
"version": "0.3.1",
"homepage": "http://bitwiser.i/medium-style-confirm/",
"authors": [
"Brijesh Bittu <[email protected]>"
Expand Down
4 changes: 3 additions & 1 deletion js/msc-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
onOk: null,
onCancel: null,
okText: 'OK',
cancelText: 'Cancel'
cancelText: 'Cancel',
placeholder: 'Enter value'
};

if(typeof title === 'object') {
Expand Down Expand Up @@ -83,6 +84,7 @@
content.classList.add('msc-confirm--animate');
if(type === "prompt") {
input.setAttribute("type", "text");
input.setAttribute("placeholder", options.placeholder);
input.addEventListener("keyup", function(e) {
if(e.keyCode === KEY_ENTER) {
ok();
Expand Down

0 comments on commit 98d5269

Please sign in to comment.