Subversion Repositories SmartDukaan

Rev

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

Rev 25683 Rev 25689
Line 628... Line 628...
628
	doGetAjaxRequestHandler(context + "/notifications" + messageQueryString, function(response) {
628
	doGetAjaxRequestHandler(context + "/notifications" + messageQueryString, function(response) {
629
		$('.notification-container').html(response);
629
		$('.notification-container').html(response);
630
	});
630
	});
631
}
631
}
632
 
632
 
633
function downloadNotifyDocument(documentId, cid) {
633
function downloadNotifyDocument(documentId, cid, documentName) {
634
	console.log("documentId : " + documentId);
-
 
635
	doAjaxRequestHandler(context + "/notifyDocument/documentId?documentId="
-
 
636
			+ documentId + "&cid=" + cid, "GET",
-
 
637
			function(response) {
-
 
638
		console.log(response);
-
 
639
				var name = response.response.displayName;
-
 
640
				console.log("documentName : " + name);
-
 
641
				doAjaxGetDownload(context + "/notifyDocument/download?cid="
634
	doAjaxGetDownload(context + "/notifyDocument/download?cid=" + cid, name);
642
						+ cid, name);
-
 
643
			});
-
 
644
 
-
 
645
}
635
}