Skip to content

Commit

Permalink
fix undefined prompt default value for Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
korny committed Apr 20, 2014
1 parent 8fa3522 commit 73d448f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assets/javascripts/jquery_ujs.prompt.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $.rails.prompt = (message, defaultValue) ->
$.rails.handlePrompt = (element) ->
config = element.data('prompt')
message = config.message || config
defaultValue = config.default
defaultValue = config.default || ''
param = config.param || 'value'
return true unless message

Expand Down

0 comments on commit 73d448f

Please sign in to comment.