Skip to content

Commit

Permalink
Reduces scope of wrapper, corrects variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Dagit committed Oct 3, 2018
1 parent ad63cc2 commit ee516ce
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@
},
success: $.proxy(
function(data,status,jqXHR) {
data.file = this.file;
data.host = this.host;
data.port = this.port;
data.id = id;
data.logviewerPort = logviewerPort;
data.logviewerScheme = logviewerScheme;
jsError(function() {
data.file = this.file;
data.host = this.host;
data.port = this.port;
data.id = id;
data.logviewerPort = logviewerPort;
data.logviewerScheme = logviewerScheme;
var searchTemp = $(template).filter("#search-result-identified-template").html();
if (searchArchived != "") {
searchTemp = $(template).filter("#deepsearch-result-identified-template").html();
}
var rendered = Mustache.render(searchTemp, data);
$("#"+this.elemId).replaceWith(rendered);
$("#"+elemId).replaceWith(rendered);
});
},
{host: host, port: port, file: file, elemId: elemId})
Expand Down

0 comments on commit ee516ce

Please sign in to comment.