Index: trunk/extensions/Translate/js/quickedit.js |
— | — | @@ -50,38 +50,38 @@ |
51 | 51 | url = url.replace( "$1", encodeURIComponent( page ) ).replace( "$2", encodeURIComponent( group ) ); |
52 | 52 | var id = "jsedit" + page.replace( /[^a-zA-Z0-9_]/g, '_' ); |
53 | 53 | |
54 | | - var dialog = jQuery("#"+id); |
| 54 | + var dialog = jQuery('#' + id); |
55 | 55 | if ( dialog.size() > 0 ) { |
56 | | - dialog.dialog("option", "position", "top" ); |
57 | | - dialog.dialog("open"); |
| 56 | + dialog.dialog('option', 'position', 'top' ); |
| 57 | + dialog.dialog('open'); |
58 | 58 | return false; |
59 | 59 | } |
60 | 60 | |
61 | | - jQuery('<div/>').attr('id', id).appendTo(jQuery('body')); |
62 | | - var dialog = jQuery("#"+id); |
| 61 | + jQuery('<div/>').attr('id', id).appendTo( jQuery('body') ); |
| 62 | + dialog = jQuery('#' + id); |
63 | 63 | |
64 | | - var spinner = jQuery("<div/>").attr("class", "mw-ajax-loader" ); |
65 | | - dialog.html( jQuery("<div/>").attr("class", "mw-ajax-dialog").html( spinner ) ); |
| 64 | + var spinner = jQuery('<div/>').attr('class', 'mw-ajax-loader' ); |
| 65 | + dialog.html( jQuery('<div/>').attr('class', 'mw-ajax-dialog').html( spinner ) ); |
66 | 66 | |
67 | 67 | dialog.load(url, false, function() { |
68 | | - var form = jQuery("#" + id + " form"); |
| 68 | + var form = jQuery('#' + id + 'form'); |
69 | 69 | |
70 | 70 | form.hide().slideDown(); |
71 | 71 | |
72 | 72 | // Enable the collapsible element |
73 | | - $( '.mw-identical-title' ).makeCollapsible(); |
| 73 | + jQuery( '.mw-identical-title' ).makeCollapsible(); |
74 | 74 | |
75 | | - form.find( ".mw-translate-next" ).click( function() { |
| 75 | + form.find( '.mw-translate-next' ).click( function() { |
76 | 76 | trlLoadNext( page ); |
77 | 77 | }); |
78 | 78 | |
79 | | - form.find( ".mw-translate-skip" ).click( function() { |
| 79 | + form.find( '.mw-translate-skip' ).click( function() { |
80 | 80 | trlLoadNext( page ); |
81 | | - dialog.dialog("close"); |
| 81 | + dialog.dialog('close'); |
82 | 82 | return false; |
83 | 83 | }); |
84 | 84 | |
85 | | - form.find( ".mw-translate-history" ).click( function() { |
| 85 | + form.find( '.mw-translate-history' ).click( function() { |
86 | 86 | window.open( wgServer + wgScript + "?action=history&title=" + form.find( "input[name=title]" ).val() ); |
87 | 87 | return false; |
88 | 88 | }); |
— | — | @@ -102,10 +102,14 @@ |
103 | 103 | } |
104 | 104 | |
105 | 105 | addAccessKeys( form ); |
106 | | - var b = form.find(".mw-translate-save"); b.val( b.val() + " (a)" ); |
107 | | - var b = form.find(".mw-translate-next"); b.val( b.val() + " (s)" ); |
108 | | - var b = form.find(".mw-translate-skip"); b.val( b.val() + " (d)" ); |
109 | | - var b = form.find(".mw-translate-history"); b.val( b.val() + " (h)" ); |
| 106 | + var b = form.find(".mw-translate-save"); |
| 107 | + b.val( b.val() + " (a)" ); |
| 108 | + var b = form.find(".mw-translate-next"); |
| 109 | + b.val( b.val() + " (s)" ); |
| 110 | + var b = form.find(".mw-translate-skip"); |
| 111 | + b.val( b.val() + " (d)" ); |
| 112 | + var b = form.find(".mw-translate-history"); |
| 113 | + b.val( b.val() + " (h)" ); |
110 | 114 | |
111 | 115 | form.ajaxForm({ |
112 | 116 | dataType: "json", |