Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Commit fee0a36

Browse files
committed
Use data-gallery instead of the rel attribute as selector for HTML5 validity.
1 parent df21f12 commit fee0a36

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ additional gallery options:
1818
```js
1919
$('#gallery').imagegallery({
2020
// selector given to jQuery's delegate method:
21-
selector: 'a[rel="gallery"]',
21+
selector: 'a[data-gallery="gallery"]',
2222
// event handler namespace:
2323
namespace: 'imagegallery',
2424
// Shows the next image after the given time in ms (0 = disabled):

js/jquery.image-gallery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery Image Gallery Plugin 2.4
2+
* jQuery Image Gallery Plugin 2.5
33
* https://github.com/blueimp/jQuery-Image-Gallery
44
*
55
* Copyright 2011, Sebastian Tschan
@@ -41,7 +41,7 @@
4141

4242
options: {
4343
// selector given to jQuery's delegate method:
44-
selector: 'a[rel="gallery"]',
44+
selector: 'a[data-gallery="gallery"]',
4545
// event handler namespace:
4646
namespace: 'imagegallery',
4747
// Shows the next image after the given time in ms (0 = disabled):

js/jquery.image-gallery.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery Image Gallery Plugin JS Example 2.2
2+
* jQuery Image Gallery Plugin JS Example 2.5
33
* https://github.com/blueimp/jQuery-Image-Gallery
44
*
55
* Copyright 2011, Sebastian Tschan
@@ -78,7 +78,7 @@ $(function () {
7878
$.each(data.photos.photo, function (index, photo) {
7979
url = 'http://farm' + photo.farm + '.static.flickr.com/' +
8080
photo.server + '/' + photo.id + '_' + photo.secret;
81-
$('<a rel="gallery"/>')
81+
$('<a data-gallery="gallery"/>')
8282
.append($('<img>').prop('src', url + '_s.jpg'))
8383
.prop('href', url + '_b.jpg')
8484
.prop('title', photo.title)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blueimp-image-gallery",
3-
"version": "2.3.0",
3+
"version": "2.5.0",
44
"title": "jQuery Image Gallery",
55
"description": "jQuery Image Gallery is an extension to the Dialog component of jQuery UI, to ease navigation between a set of gallery images. It features mouse and keyboard navigation, transition effects, fullscreen mode and slideshow functionality.",
66
"keywords": [
@@ -38,6 +38,6 @@
3838
"dependencies": {
3939
"jquery": ">=1.6",
4040
"jquery-ui": ">=1.8",
41-
"blueimp-load-image": ">=1.1.4"
41+
"blueimp-load-image": ">=1.2.3"
4242
}
4343
}

0 commit comments

Comments
 (0)