diff --git a/app/static/js/allPendingForms.js b/app/static/js/allPendingForms.js
index fda836f0..998b2d62 100644
--- a/app/static/js/allPendingForms.js
+++ b/app/static/js/allPendingForms.js
@@ -353,21 +353,21 @@ function clearTextArea() { //makes sure that it empties text areas and p tags wh
-function loadOverloadModal(formHistoryID, laborStatusFormID) {
+function loadOverloadModal(formHistoryID) {
/*
- This method sends an AJAX call to recieve data used to populate
- the overload modal.
+ This method shows the modal and renders is loading when it is loading
*/
+
+ $("#overloadModal").find(".modal-content").html('
Loading...
');
+ $("#overloadModal").find('.modal-content').load('/admin/overloadModal/' + formHistoryID) ;
$("#overloadModal").modal("show");
- $("#overloadModal").find('.modal-content').load('/admin/overloadModal/' + formHistoryID);
}
-function loadReleaseModal(formHistoryID, laborStatusFormID) {
- $("#modalRelease").modal("show");
+function loadReleaseModal(formHistoryID) {
+ $("#modalRelease").find('.modal-content').html('Loading...
');
$("#modalRelease").find('.modal-content').load('/admin/releaseModal/' + formHistoryID);
-
-
+ $("#modalRelease").modal("show");
}
@@ -604,7 +604,7 @@ function notesCounter(laborStatusFormID, formHistoryID){
success: function(response) {
var viewNotesID = '#notes_' + String(formHistoryID)
var modalViewNotesID = '#modalNote_' + String(formHistoryID)
- $(viewNotesID).html('View Notes (' + response['noteTotal'] + ')')
+ $(viewNotesID).html('Notes (' + response['noteTotal'] + ')')
$(modalViewNotesID).html('View Notes (' + response['noteTotal'] + ')')
},
error: function(request,status,error){
diff --git a/app/templates/admin/allPendingForms.html b/app/templates/admin/allPendingForms.html
index 5041dada..fd28204b 100644
--- a/app/templates/admin/allPendingForms.html
+++ b/app/templates/admin/allPendingForms.html
@@ -114,7 +114,7 @@ {{title}}
{% endwith %}
@@ -206,7 +206,7 @@ {{title}}