Browse Source

Simple confirmation after DnD move/resize

Vijayakrishnan 4 years ago
parent
commit
9fe40ee0b2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      resources/views/app/patient/appointment-calendar.blade.php

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

@@ -536,6 +536,10 @@
                                 ("0" + _dateTime.getMinutes()).slice(-2);
                         },
                         eventMovedOrResized: function (info) {
+                            if(!window.confirm('Are you sure?')) {
+                                this.refreshEvents();
+                                return;
+                            }
                             let date = this.dateStr(info.event.start);
                             let startTime = this.timeStr(info.event.start);
                             let endTime = null;