소스 검색

Simple confirmation after DnD move/resize

Vijayakrishnan 4 년 전
부모
커밋
9fe40ee0b2
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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;