Subversion Repositories SmartDukaan

Rev

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

Rev 27618 Rev 27696
Line 708... Line 708...
708
$(".price_drop").live('click', function() {
708
$(".price_drop").live('click', function() {
709
	loadPriceDrop("main-content");
709
	loadPriceDrop("main-content");
710
});
710
});
711
 
711
 
712
 
712
 
713
function notifyTypeChange(messageType) {
713
function notifyTypeChange(messageType, $container) {
714
	var messageQueryString = "?messageType=" + messageType;
714
	var messageQueryString = "?messageType=" + messageType;
715
	if (messageType == null) {
715
	if (messageType == null) {
716
		messageQueryString = "";
716
		messageQueryString = "";
717
	}
717
	}
718
	doGetAjaxRequestHandler(context + "/notifications" + messageQueryString,
718
	doGetAjaxRequestHandler(context + "/notifications" + messageQueryString,
719
		function(response) {
719
		function(response) {
-
 
720
			/*if (typeof($popoveEle) != "undefined") {
-
 
721
				$popoveEle.popover('destroy');
-
 
722
			}*/
-
 
723
			$popoveEle = $container;
-
 
724
			if ($container != null) {
-
 
725
				$container.popover({
-
 
726
					container: $container,
-
 
727
					template: `<div class="popover popover1">
-
 
728
						<div class="arrow"></div>
-
 
729
						<div class="popover-inner">
-
 
730
							<h4 class="popover-title">
-
 
731
							</h4>
-
 
732
							<div class="popover-content popover2"><p></p></div>
-
 
733
						</div>
-
 
734
					</div>`,
-
 
735
					content: response,
-
 
736
					html: true,
-
 
737
					placement: "bottom",
-
 
738
					trigger: "focus"
-
 
739
				});
720
			$('.notification-container').html(response);
740
				$container.popover('show');
-
 
741
				$(".popover2").prop("disabled", true);
-
 
742
 
-
 
743
			}
-
 
744
 
721
		});
745
		});
-
 
746
 
722
}
747
}
723
 
748
 
-
 
749
 
-
 
750
 
724
function downloadNotifyDocument(documentId, cid, documentName) {
751
function downloadNotifyDocument(documentId, cid, documentName) {
725
	doAjaxGetDownload(context + "/notifyDocument/download?cid=" + cid,
752
	doAjaxGetDownload(context + "/notifyDocument/download?cid=" + cid,
726
		documentName);
753
		documentName);
727
}
754
}