Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #148 from adrianpillinger/master

Fixing degredation of input fields to allow other scripts to dynamically change the input fields value.
  • Loading branch information...
commit 490cd4b29c7d041f0570b2afdcc7c37d639ced4d 2 parents ab50af9 + ec2281f
J.T. Sage authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 js/jquery.mobile.datebox.js
View
5 js/jquery.mobile.datebox.js
@@ -2125,10 +2125,7 @@
// Degrade date inputs to text inputs, suppress standard UI functions.
$( document ).bind( "pagebeforecreate", function( e ) {
$( ":jqmData(role='datebox')", e.target ).each(function() {
- $(this).replaceWith(
- $( "<div>" ).html( $(this).clone() ).html()
- .replace( /\s+type=["']date['"]?/, " type=\"text\" " )
- );
+ $(this).prop('type', 'text');
});
});
// Automatically bind to data-role='datebox' items.
Please sign in to comment.
Something went wrong with that request. Please try again.