Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- FIX: Fixed a bug that caused problems when closing the gallery #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions angular-photoswipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

$http
.get(scope.template, { cache: $templateCache })
.success(function(html) {
var template = angular.element(html);
.then(function(result) {
var template = angular.element(result.data);
iElement.append($compile(template)(scope));
});

Expand Down Expand Up @@ -85,10 +85,10 @@
if (nVal != oVal) {
if (nVal) {
startGallery();
} else if (!nVal && scope.gallery) {
scope.gallery.close();
scope.gallery = null;
}
} else if (!nVal && scope.gallery) {
scope.gallery.close();
scope.gallery = null;
}
});

Expand Down
2 changes: 1 addition & 1 deletion angular-photoswipe.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion angular-photoswipe.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.