Adds js messages to settings page
parent
7dfd50e19a
commit
eb512c4c1b
|
@ -152,7 +152,7 @@ $(function() {
|
|||
success: function(response) {
|
||||
// Show message first
|
||||
if (response.messageData) {
|
||||
JsMessages.show(response.messageData);
|
||||
JsMessages.success(response.messageData['message']);
|
||||
}
|
||||
|
||||
// Only update UI if save was successful
|
||||
|
|
|
@ -691,6 +691,7 @@ $(function() {
|
|||
})
|
||||
.then(data => {
|
||||
if (data.success) {
|
||||
JsMessages.success('Successfully edited the platform.');
|
||||
// Update view mode with new values
|
||||
platformTable.find('.edit-mode input').each(function() {
|
||||
const value = $(this).val();
|
||||
|
@ -852,6 +853,7 @@ $(function() {
|
|||
})
|
||||
.then(data => {
|
||||
if (data.success) {
|
||||
JsMessages.success('Successfully edited the host.');
|
||||
// Update view mode with new values
|
||||
const name = card.find('input[name="name"]').val() || card.find('input[name="address"]').val();
|
||||
const address = card.find('input[name="address"]').val();
|
||||
|
@ -985,6 +987,7 @@ $(function() {
|
|||
})
|
||||
.then(data => {
|
||||
if (data.success) {
|
||||
JsMessages.success('Successfully edited the agent.');
|
||||
// Update view mode with new values
|
||||
const type = row.find('select[name="agent_type_id"] option:selected').text();
|
||||
const url = row.find('input[name="url"]').val();
|
||||
|
|
Loading…
Reference in New Issue