From 10d029672116198408309257d55579fc1937ebd0 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Thu, 30 Aug 2012 21:35:28 +1200 Subject: [PATCH] FIX: ensure date input has a date picker to trigger open (#7504) --- javascript/DateField.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/javascript/DateField.js b/javascript/DateField.js index bbe8e6d4e..cd37db4a5 100644 --- a/javascript/DateField.js +++ b/javascript/DateField.js @@ -28,6 +28,9 @@ $('.field.date input.text').live('click', function() { $(this).ssDatepicker(); - $(this).datepicker('show'); + + if($(this).data('datepicker')) { + $(this).datepicker('show'); + } }); }(jQuery)); \ No newline at end of file