3 Replies Latest reply on Mar 23, 2016 12:40 PM by kirthisekhar

    Date picker view not working in jive 8

    surabhimishra

      Hi,

      The datepicker view we need to get while create/edit system announcement is not working in jive 8 .

      When I click on the calendar icon, the popup does not appear.

      Please let me know if there is any js file which we need to include or modify for it to work.

      Thank you!

        • Re: Date picker view not working in jive 8
          kirthisekhar

          HI Surabhi Mishra,

           

          Could you get a fix for this? If yes, can you please let me know. I am seeing the same issue in Jive 8.0.2.1.

           

          Thanks,

          Kirthi.

            • Re: Date picker view not working in jive 8
              aswani_unnithan

              Hi Kirthi Sekhar Anupoju,

              We did not face this calendar issue in System Announcements but faced similar issue in one of our custom plugins post upgrade to jive 8.0.2.1. Which we resolved by adding the below scripts in the ftl.

               

              <@resource.javascript file="/resources/scripts/apps/shared/views/date_picker_view.js" />

               

              <script type="text/javascript">

                $j(document).ready(function() {

                var datePicker = new jive.shared.DatePicker.View({"locale": _jive_locale});

                datePicker.addDatePicker("#startDate");

                datePicker.addDatePicker("#endDate");

                $j("#startDate").attr("value", "${startDate!?js_string}");

                $j("#endDate").attr("value", "${endDate!?js_string}");

                });

                </script>

               

              Hope this helps!!

               

              Regards,

              Aswani

                • Re: Date picker view not working in jive 8
                  kirthisekhar

                  Hi Aswani,

                   

                  Thanks for the reply. I have used a similar code and it worked for me..

                   

                  $j(document).ready(function() {

                    require(['apps/shared/views/date_picker_view'], function(){

                      var datePicker = new jive.shared.DatePicker.View({"locale": _jive_locale});

                      datePicker.addDependentDatePickers("#dateFilter1", "#dateFilter2");

                      datePicker.setDate("#dateFilter1, #dateFilter2");

                    });

                  });

                   

                  Regards,

                  Kirthi.