Subversion Repositories SmartDukaan

Rev

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

Rev 3090 Rev 3096
Line 1... Line 1...
1
var orderTable;
1
var orderTable;
2
var cartTable;
2
var cartTable;
3
var userCommunicationTable;
3
var userCommunicationTable;
-
 
4
 
4
function loadUserPane(domId, userId) {
5
function loadUserPane(domId, userId) {
5
	$.ajax({
6
	$.ajax({
6
		 type: "GET",
7
		 type: "GET",
7
		 url: "/crm/user-info?userId=" + userId,
8
		 url: "/crm/user-info?userId=" + userId,
8
		 success: function(response){
9
		 success: function(response){
Line 112... Line 113...
112
//			 });
113
//			 });
113
		 }
114
		 }
114
	 });
115
	 });
115
}
116
}
116
 
117
 
117
function loadTicketPane(domId, userId) {
118
function loadTicketPane(domId, userId, ticketId) {
118
	$.ajax({
119
	$.ajax({
119
		 type: "GET",
120
		 type: "GET",
120
		 url: "/crm/user-tickets?userId=" + userId,
121
		 url: "/crm/user-tickets?userId=" + userId,
121
		 success: function(response){
122
		 success: function(response){
122
			 $('#' + domId).html(response);
123
			 $('#' + domId).html(response);
123
			 var ticketTable = $('#user-tickets').dataTable({
124
			 var ticketTable = $('#user-tickets').dataTable({
124
				"aaSorting": [[3,'desc']],
125
				"aaSorting": [[3,'desc']],
125
				"iDisplayLength" : 5,
126
				"iDisplayLength" : 5,
126
				"aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
127
				"aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
127
			 });
128
			 });
-
 
129
			 if (ticketId) {
-
 
130
				 loadTicketInfo("bottom-infopane", userId, ticketId);
-
 
131
			 }
128
		 }
132
		 }
129
	 });
133
	 });
130
}
134
}
131
 
135
 
132
function loadActivityInfo(domId, userId, activityId) {
136
function loadActivityInfo(domId, userId, activityId) {