/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 10th 2010 1:07:15 AM PST                            */
/*      Machine:  10.16.140.109                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/lib/ui/typeaheadpro/sources/friend_and_email_source.js h:2nj80rzy */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/lib/ui/typeaheadpro/sources/friend_and_email_source.js    */

if (window.CavalryLogger) { CavalryLogger.start_js(["js\/lib\/ui\/typeaheadpro\/sources\/friend_and_email_source.js"]); }

function friend_and_email_source(_L0){_L0=_L0?_L0+'&include_emails=1':'';this.parent.construct(this,_L0);}friend_and_email_source.extend('friend_source');friend_and_email_source.prototype.text_noinput=friend_and_email_source.prototype.text_placeholder=_tx("\u8f93\u5165\u670b\u53cb\u7684\u59d3\u540d\u3001\u5217\u8868\u6216\u8005\u90ae\u4ef6\u5730\u5740");friend_and_email_source.prototype.text_nomatch=_tx("\u60a8\u53ef\u4ee5\u8f93\u5165\u4e00\u4e2a\u7535\u5b50\u90ae\u7bb1\u5730\u5740...");friend_and_email_source.prototype.onselect_not_found=function(){emails=this.results_text.split(/[,; ]/);for(var i=0;i<emails.length;i++){var _L1=emails[i].replace(/^\s+|\s+$/g,'');var _L2=/.*\@.*\.[a-z]+$/;if(!_L2.test(_L1))continue;var _L3={t:_L1,e:_L1};var _L4=new token(_L3,this.tokenizer,this.element);var _L5={email:_L1,pluses:false};new AsyncRequest().setMethod('GET').setReadOnly(true).setURI('/ajax/typeahead_email.php').setData(_L5).setHandler(function(_L6){if(_L6.getPayload()){var obj=_L6.getPayload().token;this.render_obj(obj);this.tokenizer._ontokenadded(obj);}else this.tokenizer._ontokennotfound(_L1);}.bind(_L4)).setErrorHandler(function(_L6){ErrorDialog.showAsyncError(_L6);this.remove(false);}.bind(_L4)).send();}this.clear();};

if (window.Bootloader) { Bootloader.done(["js\/lib\/ui\/typeaheadpro\/sources\/friend_and_email_source.js"]); }