Skip to content

Commit

Permalink
Merge branch 'gh-1422-swagger-ui-configurable-title' into gh-1424-swa…
Browse files Browse the repository at this point in the history
…gger-ui-static-banner
  • Loading branch information
m55624 committed Nov 2, 2017
2 parents a5d8454 + 1ac5398 commit a6ac006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest-api/core-rest/src/main/webapp/lib/gaffer.js
Expand Up @@ -19,7 +19,7 @@ function getVersion() {
return footer.substr(footer.lastIndexOf(':') + 2, 2);
}

function updatePageUsingProperties(elementPropertiesObj) {
function updateElementTextUsingProperties(elementPropertiesObj) {
Object.keys(elementPropertiesObj).forEach(function(elementId){
$.get(
getVersion() + '/properties/' + elementPropertiesObj[elementId],
Expand Down Expand Up @@ -146,7 +146,7 @@ function init(onSwaggerComplete){
onComplete: function(swaggerApi, swaggerUi){
log("Loaded swagger");
$('pre code').each(function(i,e){hljs.highlightBlock(e)});
updatePageUsingProperties({"title": "gaffer.properties.app.title"});
updateElementTextUsingProperties({"title": "gaffer.properties.app.title"});
addExampleButtons();
if(onSwaggerComplete) {
onSwaggerComplete();
Expand Down

0 comments on commit a6ac006

Please sign in to comment.