瀏覽代碼

Preloader

Samson Mutunga 3 年之前
父節點
當前提交
bd67136f25

+ 3 - 2
resources/views/app/practice-management/visit-templates/visit-template-segment-templates/index.blade.php

@@ -87,6 +87,7 @@ var draggableVisitTemplateSegmentTemplates = null;
 
         recalculateRowsPositionIndexes: function(table, leftRightPosition){
             var self = this;
+            showMask();
             var currentRowsData = [];
             var rows = $(table).find('tbody tr');
             $.each(rows, function(i, row){
@@ -172,6 +173,7 @@ var draggableVisitTemplateSegmentTemplates = null;
         },
         updateDraggedDeactivatedRecord: function(position){
             var self = this;
+            showMask();
             var positionUrl = position == 'LEFT' ? 'moveToLeft':'moveToRight';
             $.post('/api/visitTemplateSegmentTemplate/reactivate', {uid: self.draggedDeactivatedRecordUid, memo:'Restored by drag & drop'}, function(response){
                 if(response.success){
@@ -182,8 +184,7 @@ var draggableVisitTemplateSegmentTemplates = null;
                       }
                   },'json');  
                 }
-            },'json');
-            
+            },'json');            
         },
         init: function(){
             this.initDraggableTable();