diff --git a/js/admin/reallocation.js b/js/admin/reallocation.js index 130e03c7c..7c7baf1aa 100644 --- a/js/admin/reallocation.js +++ b/js/admin/reallocation.js @@ -31,13 +31,17 @@ $(document).ready(function() { /*For reallocating rooms in the modal*/ $(document).on('click', '#realloc_allocated_rooms', function(e){ + $(".loading_overlay").show(); if (RoomReallocationModal.reallocate() == false) { + $(".loading_overlay").hide(); return false; } }); /*For swaping rooms in the modal*/ $(document).on('click', '#swap_allocated_rooms', function(){ + $(".loading_overlay").show(); if (RoomReallocationModal.swap() == false) { + $(".loading_overlay").hide(); return false; } });