Index: trunk/extensions/VipsScaler/modules/ext.vipsScaler/ext.vipsScaler.js |
— | — | @@ -2,9 +2,9 @@ |
3 | 3 | $.vipsScaler = { |
4 | 4 | /** function to alternate between both thumbnails */ |
5 | 5 | switchThumbs: function() { |
6 | | - var e = $('#mw-vipstest-thumbnails') |
7 | | - var mask = e.children(".uc-mask") |
8 | | - var caption = e.children(".uc-caption") |
| 6 | + var e = $('#mw-vipstest-thumbnails'); |
| 7 | + var mask = e.children(".uc-mask"); |
| 8 | + var caption = e.children(".uc-caption"); |
9 | 9 | |
10 | 10 | width = e.width(); |
11 | 11 | maskWidth = mask.width(); |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | mask.width( 0 ); |
19 | 19 | caption.html( e.children("img:eq(1)").attr("alt") ); |
20 | 20 | } |
21 | | - }, |
| 21 | + } |
22 | 22 | }; |
23 | 23 | |
24 | 24 | var container = document.getElementById( 'mw-vipstest-thumbnails' ); |
— | — | @@ -44,10 +44,12 @@ |
45 | 45 | * Also add a click handler to instantly switch beetween pics |
46 | 46 | * This can be done by clicking the thumbnail or using a checkbox |
47 | 47 | */ |
48 | | - $('#mw-vipstest-thumbs-switch') |
49 | | - .click( function() { $.vipsScaler.switchThumbs() } ); |
50 | | - $('#mw-vipstest-thumbnails') |
51 | | - .click( function() { $.vipsScaler.switchThumbs() } ); |
| 48 | + $('#mw-vipstest-thumbs-switch').click( |
| 49 | + function() { $.vipsScaler.switchThumbs(); } |
| 50 | + ); |
| 51 | + $('#mw-vipstest-thumbnails').click( |
| 52 | + function() { $.vipsScaler.switchThumbs(); } |
| 53 | + ); |
52 | 54 | } |
53 | 55 | } |
54 | 56 | ); |