The Easiest Way to Save and Share Code Snippets on the web

Untitled

javascript

posted: Apr, 25th 2012 | jump to bottom

query('li.announcement').forEach(function(node){
	var flowId = domAttr.get(node, "data-flow-id");
	on(node, "click", function(evt){
		var pane = new ContentPane({
			title: domAttr.get(node, 'innerHTML'),
			href: "/corkboard/announcement/"+domAttr.get(node, 'data-flow-id')+"/",
			closable: true,
		});
        	registry.byId("contentTabs").addChild(pane);
	});
});
38 views