Skip to content

Instantly share code, notes, and snippets.

@mallorydxw
Created April 12, 2013 21:50
Show Gist options
  • Save mallorydxw/5375430 to your computer and use it in GitHub Desktop.
Save mallorydxw/5375430 to your computer and use it in GitHub Desktop.
From f549fafe7510e10c4201674e679aeed89bbef3cb Mon Sep 17 00:00:00 2001
From: Tom Adams <tom@dxw.com>
Date: Thu, 24 Jan 2013 16:39:19 -0500
Subject: [PATCH] [#919] IE compatible JS syntax
---
mailchimp.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/mailchimp.php b/mailchimp.php
index 8994c9d..d19db2d 100644
--- a/mailchimp.php
+++ b/mailchimp.php
@@ -136,9 +136,9 @@ function mc_datepicker_load() {
changeMonth: true,
changeYear: true,
beforeShow: function(input, inst) { $('#ui-datepicker-div').addClass('show'); },
- dateFormat: 'yy/mm/dd',
- });
-
+ dateFormat: 'yy/mm/dd'
+ });
+
d = new Date();
$('.birthdate-pick').datepicker({
autoFocusNextInput: true,
@@ -148,7 +148,7 @@ function mc_datepicker_load() {
minDate: new Date(d.getFullYear(), 1-1, 1),
maxDate: new Date(d.getFullYear(), 12-1, 31),
beforeShow: function(input, inst) { $('#ui-datepicker-div').removeClass('show'); },
- dateFormat: 'mm/dd',
+ dateFormat: 'mm/dd'
});
--
1.8.2.1.342.gfa7285d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment