Skip to content

Commit

Permalink
Fixed issue where the page title was not being updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mac committed Apr 18, 2019
1 parent 0bdb555 commit 471df8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/js/jquery-ajax-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ function pushHistory(href, bodyHtml) {

function _loadData(href, el, bodyHtml, callBackFunction) {

var dynamicContent = bodyHtml;

if ($("#DynamicContent").length > 0 && bodyHtml.indexOf("DynamicContent") != -1) {
var doc = $('<output>').append($.parseHTML(bodyHtml, document, true));
var dynamicContent = doc.find("#DynamicContent").html();

bodyHtml = dynamicContent;
dynamicContent = doc.find("#DynamicContent").html();
}


Expand All @@ -142,7 +142,7 @@ function _loadData(href, el, bodyHtml, callBackFunction) {
updateTitle(href, bodyHtml);
pushHistory(href, bodyHtml);

loadeData($(el), bodyHtml);
loadeData($(el), dynamicContent);
}

if (el != "") {
Expand Down

0 comments on commit 471df8f

Please sign in to comment.