mirror of
				https://git.tt-rss.org/fox/tt-rss.git
				synced 2025-11-03 21:31:04 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			625 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			625 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
function mailtoArticle(id) {
 | 
						|
	try {
 | 
						|
		if (!id) {
 | 
						|
			var ids = getSelectedArticleIds2();
 | 
						|
 | 
						|
			if (ids.length == 0) {
 | 
						|
				alert(__("No articles are selected."));
 | 
						|
				return;
 | 
						|
			}
 | 
						|
 | 
						|
			id = ids.toString();
 | 
						|
		}
 | 
						|
 | 
						|
		if (dijit.byId("emailArticleDlg"))
 | 
						|
			dijit.byId("emailArticleDlg").destroyRecursive();
 | 
						|
 | 
						|
		var query = "backend.php?op=pluginhandler&plugin=mailto&method=emailArticle¶m=" + param_escape(id);
 | 
						|
 | 
						|
		dialog = new dijit.Dialog({
 | 
						|
			id: "emailArticleDlg",
 | 
						|
			title: __("Forward article by email"),
 | 
						|
			style: "width: 600px",
 | 
						|
			href: query});
 | 
						|
 | 
						|
		dialog.show();
 | 
						|
 | 
						|
	} catch (e) {
 | 
						|
		exception_error("emailArticle", e);
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
 |