Permalink
Browse files

v3.0.4

  • Loading branch information...
1 parent 7e924d2 commit 0e891dde5d3a8d9e06c021be9e70ceb5416bebb8 Ste Brennan committed Nov 14, 2011
Showing with 15 additions and 10 deletions.
  1. +3 −5 README.md
  2. +2 −2 build.number
  3. +1 −1 build.properties
  4. +6 −0 src/change.log
  5. +3 −2 src/toolbar.class.js
View
@@ -20,13 +20,11 @@ It'd be fantastic to see how you have implemented PhotoSwipe on your site! We're
-Latest Release v3.0.3
+Latest Release v3.0.4
---------------------
-[Download](http://github.com/downloads/codecomputerlove/PhotoSwipe/code.photoswipe-3.0.3.zip)
+[Download](http://github.com/downloads/codecomputerlove/PhotoSwipe/code.photoswipe-3.0.4.zip)
-- Added new example - 14-tap-image-go-to-url.html
-
-- Ensured that only iOS captures gesture events
+- Fixed issue with toolbar buttons when a gallery has less than 3 images.
**Changes for v3**
View
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
-#Mon Nov 07 09:53:33 GMT 2011
-build.number=35
+#Mon Nov 14 11:20:48 GMT 2011
+build.number=38
View
@@ -5,7 +5,7 @@
project.description = PhotoSwipe
project.src.dir = src
-project.build.version = 3.0.3
+project.build.version = 3.0.4
project.build.year = 2011
project.build.workdir = work
View
@@ -21,3 +21,9 @@ Initial release
- Added new example - 14-tap-image-go-to-url.html
- Ensured that only iOS captures gesture events
+
+
+3.0.4 14.11.11 - Ste Brennan
+----------------------------
+
+- Fixed issue with toolbar buttons when a gallery has less than 3 images
View
@@ -453,9 +453,10 @@
return;
}
+ Util.DOM.removeClass(this.previousEl, PhotoSwipe.Toolbar.CssClasses.previousDisabled);
+ Util.DOM.removeClass(this.nextEl, PhotoSwipe.Toolbar.CssClasses.nextDisabled);
+
if (index > 0 && index < this.cache.images.length-1){
- Util.DOM.removeClass(this.previousEl, PhotoSwipe.Toolbar.CssClasses.previousDisabled);
- Util.DOM.removeClass(this.nextEl, PhotoSwipe.Toolbar.CssClasses.nextDisabled);
return;
}

0 comments on commit 0e891dd

Please sign in to comment.