Permalink
Browse files

Fix a small placeholder error (if placeholder true, but no label, and…

… no text)
  • Loading branch information...
jtsage committed Jun 22, 2012
1 parent 2a9b0a2 commit 35357d208a2530a001664eae51364ec92fedf0ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jqm-datebox.core.js
View
@@ -716,7 +716,7 @@
if ( o.usePlaceholder !== false ) {
if ( o.usePlaceholder === true && w._grabLabel() !== false ) { w.d.input.attr('placeholder', w._grabLabel()); }
- else { w.d.input.attr('placeholder', o.usePlaceholder); }
+ if ( typeof o.usePlaceholder === 'string' ) { w.d.input.attr('placeholder', o.usePlaceholder); }
}
o.theme = thisTheme;

0 comments on commit 35357d2

Please sign in to comment.