Commit 5509501
Jonathan Mitchell
Add simple nextUrl and prevUrl config options to the slideshow plugin.
When the end of the slideshow is reached the next/prev buttons redirect to the nextUrl, prevUrl rather than becoming disabled.
If nextUrl and/or prevUrl are not defined then the appropriate button is disabled.
In order for this to work the disabled class display property must be changed to
.disabled.noUrl {
visibility:hidden !important;
}
The slidehow configuration is:
slideshow({ prevUrl:'/our-prev-url' , nextUrl:'/our-next-url' , noUrlClass:'noUrl' });1 parent d65b237 commit 5509501
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
50 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
| |||
171 | 182 | | |
172 | 183 | | |
173 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
174 | 188 | | |
175 | 189 | | |
176 | 190 | | |
| |||
0 commit comments