diff --git a/static/js/services/htmlHelpers.js b/static/js/services/htmlHelpers.js index ec025dc4b..30477314c 100644 --- a/static/js/services/htmlHelpers.js +++ b/static/js/services/htmlHelpers.js @@ -7,7 +7,7 @@ // Returns an object with `element` being an contextual fragment of the // HTML in the response and `ifPrefix` being the prefix that was used to // "unique-ify" the ids of the received HTML. - // Original Response IDs can optionally be kept by adding `originalIds: true` + // Original Response IDs can optionally be kept by adding `keepIds: true` // to the `options` object. function parseResponse(response, options) { options = options || {}; @@ -15,7 +15,7 @@ return response.text().then(function (responseText) { var docFrag = document.createRange().createContextualFragment(responseText); var idPrefix; - if (!options.originalIds) { + if (!options.keepIds) { idPrefix = _getIdPrefix(); _prefixIds(docFrag, idPrefix); } diff --git a/static/js/utils/asyncTable.js b/static/js/utils/asyncTable.js index a4b2148e3..3f4f8da56 100644 --- a/static/js/utils/asyncTable.js +++ b/static/js/utils/asyncTable.js @@ -324,7 +324,7 @@ headers: headers, accept: HttpClient.ACCEPT.TEXT_HTML, }).then(function(response) { - return HtmlHelpers.parseResponse(response, { originalIds: true }); + return HtmlHelpers.parseResponse(response); }).then(function(response) { setLocalStorageParameter('currentTableUrl', url.href); // reset table