Created
April 21, 2009 16:30
-
-
Save satyr/99227 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ubiquity/feed-parts/header/en/nountypes.js b/ubiquity/feed-parts/header/en/nountypes.js | |
--- a/ubiquity/feed-parts/header/en/nountypes.js | |
+++ b/ubiquity/feed-parts/header/en/nountypes.js | |
@@ -711,17 +711,19 @@ var noun_type_commands = { | |
} | |
return cmds; | |
} | |
} | |
var noun_type_twitter_user = { | |
_name: "twitter username", | |
rankLast: true, | |
- suggest: function(text, html){ | |
+ suggest: function(text, html, cb, selected){ | |
+ if(selected) return []; | |
+ | |
// Twitter usernames can't contain spaces; reject input with spaces. | |
if (text.length && text.indexOf(" ") != -1) | |
return []; | |
var suggs = []; | |
// If we don't need to ask the user for their master password, let's | |
// see if we can suggest known users that the user has logged-in as |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment