adding datesearch functions to the dateSearch widget field
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 26 Sep 2018 15:37:20 +0000 (11:37 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 26 Sep 2018 15:37:20 +0000 (11:37 -0400)
views/admin/newDashboard/components/dateSearch.html

index e69de29..e44a11e 100644 (file)
@@ -0,0 +1,22 @@
+<div class="row">
+    <div class="s12 col date-field glm-widget-search">
+        <input id="{$addon.slug}-fromDate" type="text" class="fromDate" name="fromDate" >
+        <input id="{$addon.slug}-toDate" type="text" class="toDate" name="toDate" >
+    </div>
+</div>
+<script>
+    jQuery(function($){
+        $('.fromDate').datepicker({
+            format: 'mm/dd/yyyy',
+            onClose: function(){
+                
+            }
+        });
+        $('.toDate').datepicker({
+            format: 'mm/dd/yyyy',
+            onClose: function(){
+                
+            }
+        });
+    });
+</script>
\ No newline at end of file