summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-06 17:16:47 -0800
committerBrion Vibber <brion@pobox.com>2010-12-06 17:16:47 -0800
commit66621413287aa73e385d2ad50336a43e90129720 (patch)
tree189750ce8213d31fa3e98c29c8c0f5dbd6323e70 /plugins
parentfebcf7258c1bf558d2e1590bf041fb45087138c8 (diff)
reindent
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Autocomplete/Autocomplete.js58
1 files changed, 29 insertions, 29 deletions
diff --git a/plugins/Autocomplete/Autocomplete.js b/plugins/Autocomplete/Autocomplete.js
index ff3f73639..c3f022702 100644
--- a/plugins/Autocomplete/Autocomplete.js
+++ b/plugins/Autocomplete/Autocomplete.js
@@ -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;
+ }
+ }
+ });
});