Ver Fonte

Double-click to add-appt. (bug fix)

Vijayakrishnan há 4 anos atrás
pai
commit
58316c2912

+ 1 - 1
resources/views/app/patient/appointment-calendar.blade.php

@@ -508,7 +508,7 @@
                                 eventResize: self.eventMovedOrResized
                             });
                             $(document).on('mousedown', '.fc-highlight', function() {
-                                 if(self.selectedSlot) {
+                                 if(self.selectedSlot && self.today.getTime() <= self.selectedSlot.start.getTime()) {
                                      self.showAddAppointmentModal();
                                  }
                             });