/*    HTTP Host:  b.static.ak.fbcdn.net                                        */
/*    Generated:  May 19th 2009 10:00:15 AM PDT                                */
/*      Machine:  10.16.140.103                                                */
/*       Source:  Global Cache                                                 */
/*     Location:  js/stream/NewsFeedEditor.js h:3hczul5y                       */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/stream/NewsFeedEditor.js                                  */


function NewsFeedEditor(filterKey){this.modified=false;this.filterKey=filterKey;NewsFeedEditor.instance=this;}
NewsFeedEditor.prototype.setAutoUpdate=function(checkbox,checkedValue,uncheckedValue){this.modified=true;var value;if(checkbox.checked){value=checkedValue;}else{value=uncheckedValue;}
new AsyncRequest().setURI('/ajax/feed/filter_action.php').setData({filter_key:this.filterKey,action:'auto_update',value:value}).send();}
NewsFeedEditor.prototype.addToNewsFeed=function(data){this.modified=true;new AsyncRequest().setURI('/ajax/feed/filter_action.php').setData({filter_key:this.filterKey,action:data.action,value:data.id}).setHandler(function(payload){ObjectBrowserController.getController(data.element).removeItem(data.id);}).send();}
NewsFeedEditor.show=function(filterKey,onModified){if(NewsFeedEditor.instance){return false;}
if(!onModified){onModified=bagofholding;}
var async=new AsyncRequest().setMethod('GET').setReadOnly(true).setURI('/ajax/feed/hidden_people_settings.php').setData({filter_key:filterKey});new Dialog().setAsync(async).setCloseHandler(function(){if(NewsFeedEditor.instance){if(NewsFeedEditor.instance.modified){onModified();}
delete NewsFeedEditor.instance;}}).show();return false;}

if (window.Bootloader) { Bootloader.done(["js\/stream\/NewsFeedEditor.js"]); }