https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113821

Revision: 113821
Author:   amire80
Date:     2012-03-14 16:59:09 +0000 (Wed, 14 Mar 2012)
Log Message:
-----------
More logical indentation and minor comment fixes, follow up r113713.

Modified Paths:
--------------
    
trunk/extensions/Translate/resources/ext.translate.special.pagetranslation.js

Modified: 
trunk/extensions/Translate/resources/ext.translate.special.pagetranslation.js
===================================================================
--- 
trunk/extensions/Translate/resources/ext.translate.special.pagetranslation.js   
    2012-03-14 16:38:55 UTC (rev 113820)
+++ 
trunk/extensions/Translate/resources/ext.translate.special.pagetranslation.js   
    2012-03-14 16:59:09 UTC (rev 113821)
@@ -1,9 +1,9 @@
 /*
  * @author Santhosh Thottingal
- * jquery autocomplete based multiple selector for input box. 
- * Autocompleted values will be available in input filed as comma seperated 
values.
+ * jQuery autocomplete based multiple selector for input box.
+ * Autocompleted values will be available in input filed as comma separated 
values.
  * The values for autocompletion is from the language selector in this case.
- * The input field is a php created one.
+ * The input field is created in PHP code.
  * Credits: http://jqueryui.com/demos/autocomplete/#multiple
  */
 jQuery( function( $ ) {
@@ -11,7 +11,7 @@
        
        $.widget( "ui.multiselectautocomplete", {
                options: { 
-                       inputbox: null, // a jquery selector for the input box 
where selections are written.
+                       inputbox: null, // a jQuery selector for the input box 
where selections are written.
                        // @TODO can have more options.
                },
                _create: function() {
@@ -64,20 +64,20 @@
                                        }
                                } );
 
-                               input.data( "autocomplete" )._renderItem = 
function( ul, item ) {
-                                       return $( "<li>" )
-                                               .data( "item.autocomplete", 
item )
-                                               .append( "<a>" + item.label + 
"</a>" )
-                                               .appendTo( ul );
-                               };
-                       }, // End of _create
+                       input.data( "autocomplete" )._renderItem = function( 
ul, item ) {
+                               return $( "<li>" )
+                                       .data( "item.autocomplete", item )
+                                       .append( "<a>" + item.label + "</a>" )
+                                       .appendTo( ul );
+                       };
+               }, // End of _create
 
-                       destroy: function() {
-                               this.input.remove();
-                               this.element.show();
-                               $.Widget.prototype.destroy.call( this );
-                       }
-               } );
+               destroy: function() {
+                       this.input.remove();
+                       this.element.show();
+                       $.Widget.prototype.destroy.call( this );
+               }
+       } );
 
        $( "#wpUserLanguage" ).multiselectautocomplete( { inputbox : 
'#tpt-prioritylangs' } );
 } );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to