Subversion Repositories SmartDukaan

Rev

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

Rev 35592 Rev 35594
Line 111... Line 111...
111
		});
111
		});
112
 
112
 
113
	$(document).on('click', ".ticket-last-activity", function() {
113
	$(document).on('click', ".ticket-last-activity", function() {
114
		var ticketId = $(this).data('ticketid');
114
		var ticketId = $(this).data('ticketid');
115
		var activity = $(this).data('activity');
115
		var activity = $(this).data('activity');
-
 
116
		var partnerName = $(this).data('partnername') || '';
116
		console.log(ticketId);
117
		console.log(ticketId);
117
		console.log(activity);
118
		console.log(activity);
-
 
119
		var message = partnerName ? "Mark Ticket #" + ticketId + " - " + partnerName + " as resolved?" : "Are you sure!";
118
		if (confirm("Are you sure!") == true) {
120
		if (confirm(message) == true) {
119
			createLastActivity(ticketId, activity);
121
			createLastActivity(ticketId, activity);
120
		}
122
		}
121
	});
123
	});
122
 
124
 
123
	$(document).on('change', "#region", function() {
125
	$(document).on('change', "#region", function() {
Line 1226... Line 1228...
1226
}
1228
}
1227
function loadEditTicket(ticketId) {
1229
function loadEditTicket(ticketId) {
1228
	doGetAjaxRequestHandler(context + "/cs/edit-ticket?ticketId=" + ticketId,
1230
	doGetAjaxRequestHandler(context + "/cs/edit-ticket?ticketId=" + ticketId,
1229
		function(response) {
1231
		function(response) {
1230
			$("#theModal .modal-content").html(response);
1232
			$("#theModal .modal-content").html(response);
1231
 
-
 
-
 
1233
			$("#theModal").modal('show');
1232
		});
1234
		});
1233
}
1235
}
1234
 
1236
 
1235
function loadMyPartnerEditTicket(ticketId) {
1237
function loadMyPartnerEditTicket(ticketId) {
1236
	doGetAjaxRequestHandler(context + "/cs/edit-partner-ticket?ticketId=" + ticketId,
1238
	doGetAjaxRequestHandler(context + "/cs/edit-partner-ticket?ticketId=" + ticketId,
1237
		function (response) {
1239
		function (response) {
1238
			$("#theModal2 .modal-content").html(response);
1240
			$("#theModal2 .modal-content").html(response);
1239
 
-
 
-
 
1241
			$("#theModal2").modal('show');
1240
		});
1242
		});
1241
}
1243
}
1242
function loadPartnerForRegion(regionId) {
1244
function loadPartnerForRegion(regionId) {
1243
	doGetAjaxRequestHandler(context + "/cs/getPartners?regionId=" + regionId,
1245
	doGetAjaxRequestHandler(context + "/cs/getPartners?regionId=" + regionId,
1244
		function(response) {
1246
		function(response) {