Index: trunk/extensions/Storyboard/tags/Storyboard/storyboard.js |
— | — | @@ -63,9 +63,12 @@ |
64 | 64 | $( "<a />" ).attr( { |
65 | 65 | "target": "_blank", |
66 | 66 | "rel": "nofollow", |
67 | | - "href": deliciousUrl, |
68 | | - "onclick": "window.open( '" + deliciousUrl + "', 'delicious-sharer', 'toolbar=0, status=0, width=850, height=650' ); return false;" |
| 67 | + "href": deliciousUrl |
69 | 68 | } ) |
| 69 | + .click( function() { |
| 70 | + window.open( jQuery( this ).attr( 'href' ), 'delicious-sharer', 'toolbar=0, status=0, width=850, height=650' ); |
| 71 | + return false; |
| 72 | + } ) |
70 | 73 | .append( $( "<img />" ).attr( "src", |
71 | 74 | wgScriptPath + "/extensions/Storyboard/images/storyboard-delicious.png" |
72 | 75 | ) ) |
— | — | @@ -76,9 +79,12 @@ |
77 | 80 | $( "<a />" ).attr( { |
78 | 81 | "target": "_blank", |
79 | 82 | "rel": "nofollow", |
80 | | - "href": facebookUrl, |
81 | | - "onclick": "window.open( '" + facebookUrl + "', 'facebook-sharer', 'toolbar=0, status=0, width=626, height=436' ); return false;" |
| 83 | + "href": facebookUrl |
82 | 84 | } ) |
| 85 | + .click( function() { |
| 86 | + window.open( jQuery( this ).attr( 'href' ), 'facebook-sharer', 'toolbar=0, status=0, width=626, height=436' ); |
| 87 | + return false; |
| 88 | + } ) |
83 | 89 | .append( $( "<img />" ).attr( "src", |
84 | 90 | wgScriptPath + "/extensions/Storyboard/images/storyboard-facebook.png" |
85 | 91 | ) ) |