Subversion Repositories SmartDukaan

Rev

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

Rev 25651 Rev 25680
Line 602... Line 602...
602
$(".price_drop").live('click', function() {
602
$(".price_drop").live('click', function() {
603
	loadPriceDrop("main-content");
603
	loadPriceDrop("main-content");
604
});
604
});
605
 
605
 
606
$(document).ready(function() {
606
$(document).ready(function() {
-
 
607
	$('div.message-filter').on('click', 'button',
-
 
608
		function() {
-
 
609
			messageType = $(this).data("messagetype");
-
 
610
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
-
 
611
			if($(this).hasClass('btn-pressed')) {
-
 
612
				messageType="";
-
 
613
			} else {
-
 
614
				$(this).addClass('btn-pressed').removeClass('btn-default');
-
 
615
			}
-
 
616
			notifyTypeChange(messageType);
-
 
617
		});
607
	$("#notifyType").trigger('change');
618
	$("#notifyType").trigger('change');
608
 
619
 
609
});
620
});
610
 
621
 
611
function notifyTypeChange() {
622
function notifyTypeChange(messageType) {
612
 
-
 
613
	var notifyType = $('#notifyType').val();
623
	var messageQueryString = "?notificationType=" + messageType;
-
 
624
	if(messageType=="") {
614
	console.log(notifyType);
625
		messageQueryString = "";
615
 
626
	}
616
	doGetAjaxRequestHandler(
-
 
617
			context + "/notifications?notifyType=" + notifyType, function(
627
	doGetAjaxRequestHandler(context + "/notifications" + messageQueryString, function(response) {
618
					response) {
-
 
619
				$('.notification-container').html(response);
628
		$('.notification-container').html(response);
620
 
-
 
621
			});
629
	});
622
}
630
}
623
 
631
 
624
function downloadNotifyDocument(documentId, cid) {
632
function downloadNotifyDocument(documentId, cid) {
625
	console.log("documentId : " + documentId);
633
	console.log("documentId : " + documentId);
626
	doAjaxRequestHandler(context + "/notifyDocument/documentId?documentId="
634
	doAjaxRequestHandler(context + "/notifyDocument/documentId?documentId="