Subversion Repositories SmartDukaan

Rev

Rev 1729 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1729 Rev 1736
Line 25... Line 25...
25
	});
25
	});
26
}
26
}
27
$(function(){
27
$(function(){
28
	$('input.publish-button').click(function()	{
28
	$('input.publish-button').click(function()	{
29
		var id = $(this).attr('id').replace('post-badge-', '');
29
		var id = $(this).attr('id').replace('post-badge-', '');
30
		var productName = $(this).html();
30
		var productName = $('#' + id).html();
31
		var productUrl = $('#url-' + id).html();
31
		var productUrl = $('#url-' + id).html();
32
		var imageUrl = $('#img-' + id).attr('src');
32
		var imageUrl = $('#img-' + id).attr('src');
33
		var desc = "";
33
		var desc = "";
34
 
34
 
35
		$('#desc-' + id).children().each(function(i, item){
35
		$('#desc-' + id).children().each(function(i, item){
36
			desc += $(item).html() + ', ';
36
			desc += $(item).html() + ', ';
37
		});
37
		});
38
		desc = jQuery.trim(desc);
38
		desc = jQuery.trim(desc);
39
 
-
 
-
 
39
//		console.log(productName, productUrl, imageUrl, desc);
40
		publishStream(productName, productUrl, imageUrl, desc);
40
		publishStream(productName, productUrl, imageUrl, desc);
41
	});
41
	});
42
});
42
});
43
43