Skip to content

Commit

Permalink
Ensure that tooltip cache is built on initial page load.
Browse files Browse the repository at this point in the history
  • Loading branch information
doxxx committed Apr 25, 2015
1 parent 67a1ac0 commit 80f4ae4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ angular.module('ffxivCraftOptWeb.controllers', [])
}

function buildTooltipsCache(lang) {
if (!lang) return;
for (var i = 0; i < _allActions.length; i++) {
var action = _allActions[i];
if (action.skillID) {
Expand Down Expand Up @@ -64,6 +65,7 @@ angular.module('ffxivCraftOptWeb.controllers', [])
$rootScope.$on('$translateChangeSuccess', function (event, data) {
buildTooltipsCache(data.language);
});
buildTooltipsCache($translate.use());


// non-persistent page states
Expand Down

0 comments on commit 80f4ae4

Please sign in to comment.