// vim: et:ts=4:sw=4:sts=4:ft=javascript // fixme: this should be deleted!! pandora.ui.annotations = function() { var that = Ox.Element({ id: 'annotations' }) .bindEvent({ resize: function(data) { pandora.user.ui.annotationsSize = data; }, resizeend: function(data) { //alert('resizeend', JSON.stringify(data)) pandora.UI.set({annotationsSize: data}); }, toggle: function(data) { //alert('toggle', JSON.stringify(data)) pandora.UI.set({showAnnotations: !data.collapsed}); } }), $bins = []; $.each(pandora.site.layers, function(i, layer) { var $bin = Ox.CollapsePanel({ id: layer.id, size: 16, title: layer.title }); $bins.push($bin); $bin.$content.append( $('