Skip to content

Commit

Permalink
Merge pull request #638 from hannu/related-vars-fix
Browse files Browse the repository at this point in the history
Update designer tool references when switching page
  • Loading branch information
hannu committed Jun 3, 2015
2 parents 1a27cd4 + 71cb3ad commit 452d84d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/app/js/controllers/sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ angular.module('sgApp')
});
if (result.length > 0) {
$rootScope.pageTitle = result[0].reference + ' ' + result[0].header + ' - ' + Styleguide.config.data.title;

// Update current reference even before user starts scrolling
$rootScope.currentReference.section = result[0];
}
}
}
Expand All @@ -52,4 +55,6 @@ angular.module('sgApp')
}
return new RegExp('^' + $scope.currentSection + '(\\D|$)').test(section.reference);
};

setPageTitle();
});

0 comments on commit 452d84d

Please sign in to comment.