Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js |
— | — | @@ -1,3 +1,4 @@ |
| 2 | +( function( $ ) { |
2 | 3 | $.wikiLove.optionsHook = function() { return { |
3 | 4 | defaultText: '{| style="background-color: $5; border: 1px solid $6;"\n\ |
4 | 5 | |rowspan="2" style="vertical-align: middle; padding: 5px;" | [[Image:$3|$4]]\n\ |
— | — | @@ -77,4 +78,5 @@ |
78 | 79 | imageSize: '150px' |
79 | 80 | } |
80 | 81 | } |
81 | | -}; }; |
\ No newline at end of file |
| 82 | +}; }; |
| 83 | +} )( jQuery ); |
Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.init.js |
— | — | @@ -2,6 +2,7 @@ |
3 | 3 | * Init function which is called upon page load. Binds the WikiLove icon to opening the dialog. |
4 | 4 | */ |
5 | 5 | |
| 6 | +( function( $ ) { |
6 | 7 | $.wikiLove.init = function() { |
7 | 8 | $.wikiLove.options = $.wikiLove.optionsHook(); |
8 | 9 | $( '#ca-wikilove a' ).click( function( e ) { |
— | — | @@ -11,3 +12,4 @@ |
12 | 13 | } |
13 | 14 | |
14 | 15 | $( document ).ready( $.wikiLove.init ); |
| 16 | +} )( jQuery ); |