]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
reindent
authorBrion Vibber <brion@pobox.com>
Tue, 7 Dec 2010 01:16:47 +0000 (17:16 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 7 Dec 2010 01:16:47 +0000 (17:16 -0800)
plugins/Autocomplete/Autocomplete.js

index ff3f736393225d033d508f27adb757ab28b20dbf..c3f022702ac0fb107e11a29d67ec859df3be6306 100644 (file)
@@ -6,33 +6,33 @@ $(document).ready(function(){
             return row.nickname;
         }
     }
-            $('#notice_data-text').autocomplete($('address .url')[0].href+'main/autocomplete/suggest', {
-                multiple: true,
-                multipleSeparator: " ",
-                minChars: 1,
-                formatItem: function(row, i, max){
-                    row = eval("(" + row + ")");
-                    // the display:inline is because our INSANE stylesheets
-                    // override the standard display of all img tags for no
-                    // good reason.
-                    var div = $('<div><img style="display:inline; vertical-align: middle"> <span></span></div>')
-                        .find('img').attr('src', row.avatar).end()
-                        .find('span').text(fullName(row)).end()
-                    return div.html();
-                },
-                formatMatch: function(row, i, max){
-                    row = eval("(" + row + ")");
-                    return row.nickname;
-                },
-                formatResult: function(row){
-                    row = eval("(" + row + ")");
-                    switch(row.type)
-                    {
-                        case 'user':
-                            return '@' + row.nickname;
-                        case 'group':
-                            return '!' + row.nickname;
-                    }
-                }
-            });
+    $('#notice_data-text').autocomplete($('address .url')[0].href+'main/autocomplete/suggest', {
+        multiple: true,
+        multipleSeparator: " ",
+        minChars: 1,
+        formatItem: function(row, i, max){
+            row = eval("(" + row + ")");
+            // the display:inline is because our INSANE stylesheets
+            // override the standard display of all img tags for no
+            // good reason.
+            var div = $('<div><img style="display:inline; vertical-align: middle"> <span></span></div>')
+                .find('img').attr('src', row.avatar).end()
+                .find('span').text(fullName(row)).end()
+            return div.html();
+        },
+        formatMatch: function(row, i, max){
+            row = eval("(" + row + ")");
+            return row.nickname;
+        },
+        formatResult: function(row){
+            row = eval("(" + row + ")");
+            switch(row.type)
+            {
+                case 'user':
+                    return '@' + row.nickname;
+                case 'group':
+                    return '!' + row.nickname;
+            }
+        }
+    });
 });