penguin/AstroJS

Javascript framework for my blog

botanjs/src/Astro/Blog/Components/ToggleButton/CommentToggle.js

raw ยท 776 bytes

/*
(function(){
	var ns = __namespace( "Astro.Blog.Components.ToggleButton.CommentToggle" );

	new ToggleButton('toggle_follow', nProcessor, {
	enable: { action: 'enable', tid: 3, cid: 1 },
	disable: { action: 'disable', tid: 3, cid: 1 }
	});

	new ToggleButton('uc_ntoggle', nProcessor, {
	enable: { action: 'enable', tid: 1, cid: 1645 },
	disable: { action: 'disable', tid: 1, cid: 1645 }
	});

	new ToggleButton('toggle_publish', '../../../user/ajax-set_article', {
	enable: { draft: 0, article_id: 1645 },
	disable: { draft: 1, article_id: 1645 }
	});

	for(var i in commList) {
	new ToggleButton('cr_ntoggle_' + commList[i], nProcessor, {
	enable: { action: 'enable', tid: 2, cid: commList[i] },
	disable: { action: 'disable', tid: 2, cid: commList[i] }
	});

})();
//*/