From 1ac5398212fc1032d7ccbca843fb49690ccf849d Mon Sep 17 00:00:00 2001 From: m55624 Date: Thu, 2 Nov 2017 17:27:10 +0000 Subject: [PATCH] gh-1422 - renamed methods for clarity --- rest-api/core-rest/src/main/webapp/lib/gaffer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest-api/core-rest/src/main/webapp/lib/gaffer.js b/rest-api/core-rest/src/main/webapp/lib/gaffer.js index 32c78447d33..4e91399cffc 100644 --- a/rest-api/core-rest/src/main/webapp/lib/gaffer.js +++ b/rest-api/core-rest/src/main/webapp/lib/gaffer.js @@ -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], @@ -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();