Explorar el Código

Tickets - use jquery-ui datepicker

Vijayakrishnan hace 4 años
padre
commit
b6b1589808
Se han modificado 1 ficheros con 5 adiciones y 6 borrados
  1. 5 6
      resources/views/app/patient/tickets.blade.php

+ 5 - 6
resources/views/app/patient/tickets.blade.php

@@ -912,12 +912,11 @@
                                 .datepicker({
                                     autoclose: true,
                                     todayHighlight: true,
-                                    format: 'yyyy-mm-dd'
-                                })
-                                .off('changeDate')
-                                .on('changeDate', function() {
-                                    self[self.currentCategory + 'PopupItem'].data.due_date = $(this).val();
-                                    self[self.currentCategory + 'SavePopupItem'].call(self, true);
+                                    format: 'yyyy-mm-dd',
+                                    onSelect: function(_date) {
+                                        self[self.currentCategory + 'PopupItem'].data.due_date = $(this).val();
+                                        self[self.currentCategory + 'SavePopupItem'].call(self, true);
+                                    }
                                 });
 
                             $(document).off('focus', '#ticketsApp input.form-control');