Skip to content

Commit

Permalink
Small js fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Sep 14, 2015
1 parent d53c567 commit cc66e38
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
9 changes: 6 additions & 3 deletions web/dist/assets/js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -24230,9 +24230,11 @@ var contentApp = angular.module('contentApp', [
$scope.gist = data;
$scope.gist.poster_image = $scope.gist.poster_image || ($scope.gist.title ? '/assets/img/posters/' + $scope.gist.title.replace('/', ' ') + '.jpg' : '');
$scope.gist.poster_image = $scope.gist.poster_image.replace("w185", "w300");
$scope.gists.forEach(function (gist) {
gist.categories = (gist.genres || []).concat(gist.usecases || [])
});
if ($scope.gists) {
$scope.gists.forEach(function (gist) {
gist.categories = (gist.genres || []).concat(gist.usecases || [])
});
}
} else {
$scope.gist = $scope.gist || {};
}
Expand Down Expand Up @@ -24611,6 +24613,7 @@ contentApp.controller('GistCtrl', ['$scope', '$routeParams', '$interval', '$http
}
}

// Why isn't this always working?
document.title = $scope.gist.title + ' - Neo4j GraphGist';

}).fail(function (error) {
Expand Down
2 changes: 1 addition & 1 deletion web/dist/assets/js/all.min.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions web/dist/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ var contentApp = angular.module('contentApp', [
$scope.gist = data;
$scope.gist.poster_image = $scope.gist.poster_image || ($scope.gist.title ? '/assets/img/posters/' + $scope.gist.title.replace('/', ' ') + '.jpg' : '');
$scope.gist.poster_image = $scope.gist.poster_image.replace("w185", "w300");
$scope.gists.forEach(function (gist) {
gist.categories = (gist.genres || []).concat(gist.usecases || [])
});
if ($scope.gists) {
$scope.gists.forEach(function (gist) {
gist.categories = (gist.genres || []).concat(gist.usecases || [])
});
}
} else {
$scope.gist = $scope.gist || {};
}
Expand Down
1 change: 1 addition & 0 deletions web/dist/assets/js/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ contentApp.controller('GistCtrl', ['$scope', '$routeParams', '$interval', '$http
}
}

// Why isn't this always working?
document.title = $scope.gist.title + ' - Neo4j GraphGist';

}).fail(function (error) {
Expand Down
2 changes: 1 addition & 1 deletion web/dist/assets/js/maps/all.min.js.map

Large diffs are not rendered by default.

0 comments on commit cc66e38

Please sign in to comment.