Skip to content

Commit

Permalink
INTRANET-299 get message against proper object
Browse files Browse the repository at this point in the history
  • Loading branch information
bricas committed Jan 20, 2025
1 parent 8e9dbc8 commit 4a8dc8f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
this.fetch({
success: function(model, response) {
model.set('status', response.status);
model.set('message', this.options.message);
model.set('message', model.options.message);
if (response.message) {
model.set('message', response.message);
}
$('#oclc-service-alert-message').html(this.getMessage());
$('#oclc-service-alert-message').html(model.getMessage());
model.toggleView();
}
});
Expand All @@ -73,11 +73,11 @@
model.fetch({
success: function(model, response) {
model.set('status', response.status);
model.set('message', this.options.message);
model.set('message', model.options.message);
if (response.message) {
model.set('message', response.message);
}
$('#oclc-service-alert-message').html(this.getMessage());
$('#oclc-service-alert-message').html(model.getMessage());
model.toggleView();
}
});
Expand Down

0 comments on commit 4a8dc8f

Please sign in to comment.