Update js file for datepickers
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 23 Nov 2016 21:01:32 +0000 (16:01 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 23 Nov 2016 21:01:32 +0000 (16:01 -0500)
Need to have dateFormat for the datepickers.

functions.php
js/app.js
js/custom/pageSetup.js
style.css

index 3ec939d..fb22169 100644 (file)
@@ -62,7 +62,7 @@ function glm_site_scripts()
         'glm_foundation',
         get_template_directory_uri() . '/js/app.js',
         'jquery',
-        '1.0.17',
+        '1.0.18',
         true
     );
     wp_enqueue_script('jquery-ui-datepicker');
index 26a3b5f..d097eae 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -23,17 +23,20 @@ $(document).ready(function () {
         $( "#input_3_3" ).datepicker({
             showOn: "both",
             buttonImage:  "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
-            buttonImageOnly: true
+            buttonImageOnly: true,
+            dateFormat: "mm/dd/yy"
         });
         $( "#input_4_6" ).datepicker({
             showOn: "both",
             buttonImage: "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
-            buttonImageOnly: true
+            buttonImageOnly: true,
+            dateFormat: "mm/dd/yy"
         });
         $( "#input_5_20" ).datepicker({
             showOn: "both",
             buttonImage: "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
-            buttonImageOnly: true
+            buttonImageOnly: true,
+            dateFormat: "mm/dd/yy"
         });
 
     // caching menu elements
@@ -130,10 +133,10 @@ $(document).ready(function () {
         $('#cam6').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoAnimalCam.jpg?b=' + Math.random());
         $('#cam7').attr('src','http://www.weather.gov/images/apx/webcam/webcam.jpg?b=' + Math.random());
     }, 10000);
-    
+
     var newsTicker = $('.mtphr-dnt-tick.mtphr-dnt-default-tick.mtphr-dnt-clearfix').children('a').css("color", "White").css("text-decoration","underline");
-    
-    
+
+
 
 
    /* get number of elements in DOM console.log($("*").length);
index b79969b..29488d1 100644 (file)
@@ -14,17 +14,20 @@ $(document).ready(function () {
         $( "#input_3_3" ).datepicker({
             showOn: "both",
             buttonImage:  "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
-            buttonImageOnly: true
+            buttonImageOnly: true,
+            dateFormat: "mm/dd/yy"
         });
         $( "#input_4_6" ).datepicker({
             showOn: "both",
             buttonImage: "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
-            buttonImageOnly: true
+            buttonImageOnly: true,
+            dateFormat: "mm/dd/yy"
         });
         $( "#input_5_20" ).datepicker({
             showOn: "both",
             buttonImage: "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
-            buttonImageOnly: true
+            buttonImageOnly: true,
+            dateFormat: "mm/dd/yy"
         });
 
     // caching menu elements
@@ -121,10 +124,10 @@ $(document).ready(function () {
         $('#cam6').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoAnimalCam.jpg?b=' + Math.random());
         $('#cam7').attr('src','http://www.weather.gov/images/apx/webcam/webcam.jpg?b=' + Math.random());
     }, 10000);
-    
+
     var newsTicker = $('.mtphr-dnt-tick.mtphr-dnt-default-tick.mtphr-dnt-clearfix').children('a').css("color", "White").css("text-decoration","underline");
-    
-    
+
+
 
 
    /* get number of elements in DOM console.log($("*").length);
index e9e03db..5fbfb3b 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: OtsegoCounty
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for OtsegoCounty
-Version: 1.0.29
+Version: 1.0.30
 */