From c0336603cdbac670c008b381796f427d218c9bab Mon Sep 17 00:00:00 2001 From: Dariusz Jarosz Date: Tue, 10 Dec 2024 15:50:34 -0600 Subject: [PATCH] Add updated dismiss specific to bootstrap. Closes #339 --- public/javascripts/form-builder.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/public/javascripts/form-builder.js b/public/javascripts/form-builder.js index 4c0ea038..6733616b 100644 --- a/public/javascripts/form-builder.js +++ b/public/javascripts/form-builder.js @@ -67,7 +67,7 @@ function sendRequest(data, cb, option) { document.location.href = data.location; } else { $('#message').append( - '
The changes were saved ' + + '
The changes were saved ' + livespan(timestamp) + '.
' ); @@ -98,14 +98,14 @@ function archive_prior_released_forms(selected) { }) .done(function(data, textStatus, request) { $('#message').append( - '
' + + '
' + data + '
' ); }) .fail(function(data, textStatus, request) { $('#message').append( - '
' + + '
' + data + '
' ); @@ -780,7 +780,7 @@ function figure_edit($cgr) { var location = jqXHR.getResponseHeader('Location'); var timestamp = jqXHR.getResponseHeader('Date'); $('#message').append( - '
File uploaded ' + + '
File uploaded ' + livespan(timestamp) + '
' ); @@ -816,7 +816,7 @@ function figure_edit($cgr) { .fail(function(jqXHR) { if (jqXHR.status !== 401) { $('#message').append( - '
Cannot upload the file: ' + + '
Cannot upload the file: ' + (jqXHR.responseText || 'unknown') + '
' ); @@ -1293,7 +1293,7 @@ function modalAlert(label, body) { $('#modal .modal-body').empty(); $('#modal .modal-body').append(body); $('#modal .modal-footer').html( - '' + '' ); $('#modal').modal('show'); } @@ -1523,7 +1523,7 @@ function binding_events() { '
' ); $('#modal .modal-footer').html( - '' + '' ); $('#modal').modal('show'); $('#modal button[value="confirm"]').click(function() { @@ -1642,7 +1642,7 @@ function binding_events() { filterEvent(); } $('#modal .modal-footer').html( - '' + '' ); $('#modal').modal('show'); $('#modal button[value="confirm"]').click(function() {