Skip to content

Commit

Permalink
also update tags when told out-of-band
Browse files Browse the repository at this point in the history
  • Loading branch information
scc committed Sep 17, 2008
1 parent 2f3476b commit f35288a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions plugins/Ajax/htdocs/images/common.js
Expand Up @@ -1328,6 +1328,19 @@ function firehose_get_updates_handler(transport) {
processed = processed + 1;
firehose_handle_update();
}
if ( response.updated_tags ) {
var $tag_servers = $('[tag-server]');
$.each(response.updated_tags, function( id, tags ){
var updates = '';
if ( tags.system_tags !== undefined ) { updates += '<system>' + tags.system_tags; }
if ( tags.top_tags !== undefined ) { updates += '<top>' + tags.top_tags; }
if ( updates ) {
$tag_servers.filter('[tag-server='+id+']').each(function(){
this.broadcast_tag_lists(updates);
});
}
});
}
}

function firehose_get_item_idstring() {
Expand Down

0 comments on commit f35288a

Please sign in to comment.