Subversion Repositories SmartDukaan

Rev

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

Rev 2830 Rev 3090
Line 23... Line 23...
23
	
23
	
24
	$("a.show-user-communication").live('click', function() {
24
	$("a.show-user-communication").live('click', function() {
25
		var userId = $(this).attr('userId');
25
		var userId = $(this).attr('userId');
26
		loadUserCommunicationPane("infopane", userId);
26
		loadUserCommunicationPane("infopane", userId);
27
	});
27
	});
28
	
28
 
29
	$("a.show-line-details").live('click', function() {
29
	$("a.show-line-details").live('click', function() {
30
		var userId = $(this).attr('userId');
30
		var userId = $(this).attr('userId');
31
		var itemId = $(this).attr('itemId');
31
		var itemId = $(this).attr('itemId');
32
		loadLineInfo("bottom-infopane", userId, itemId);
32
		loadLineInfo("bottom-infopane", userId, itemId);
33
	});
33
	});
34
	
34
 
35
	$("a.show-comm-details").live('click', function() {
35
	$("a.show-comm-details").live('click', function() {
36
		var userId = $(this).attr('userId');
36
		var userId = $(this).attr('userId');
37
		var commId = $(this).attr('commId');
37
		var commId = $(this).attr('commId');
38
		loadCommunicationInfo("bottom-infopane", userId, commId);
38
		loadCommunicationInfo("bottom-infopane", userId, commId);
39
	});
39
	});
-
 
40
 
-
 
41
	$("a.show-tickets").live('click', function() {
-
 
42
		var userId = $(this).attr('userId');
-
 
43
		loadTicketPane("infopane", userId);
-
 
44
	});
-
 
45
 
-
 
46
	$("a.show-activity").live('click', function() {
-
 
47
		var userId = $(this).attr('userId');
-
 
48
		loadActivityPane("infopane", userId);
-
 
49
	});
-
 
50
 
-
 
51
	$("a.show-ticket-details").live('click', function() {		
-
 
52
		var ticketId = $(this).attr('ticketId');
-
 
53
		var userId = $(this).attr('userId');
-
 
54
		loadTicketInfo("bottom-infopane", userId, ticketId);
-
 
55
	});
-
 
56
 
-
 
57
	$("a.show-activity-details").live('click', function() {
-
 
58
		var activityId = $(this).attr('activityId');
-
 
59
		var userId = $(this).attr('userId');
-
 
60
		loadActivityInfo("bottom-infopane", userId, activityId);
-
 
61
	});
-
 
62
 
-
 
63
	$("a.create-ticket").live('click', function() {
-
 
64
		var userId = $(this).attr('userId');
-
 
65
		loadTicketCreationForm("infopane", userId);
-
 
66
	});
-
 
67
 
-
 
68
	$("a.create-activity").live('click', function() {
-
 
69
		var userId   = $(this).attr('userId');
-
 
70
		loadActivityCreationForm("infopane", userId);
-
 
71
	});
-
 
72
 
-
 
73
	$('#update-ticket-form').live('submit', function() {
-
 
74
		var ticketId = $(this).attr('ticketId');
-
 
75
		updateTicket("infopane", ticketId, $(this).serialize());
-
 
76
		return false;
-
 
77
	});
-
 
78
 
-
 
79
	$('#create-ticket-form').live('submit', function() {
-
 
80
		createTicket("infopane", $(this).serialize());
-
 
81
		return false;
-
 
82
	});
-
 
83
 
-
 
84
	$('#create-activity-form').live('submit', function() {
-
 
85
		createActivity("infopane", $(this).serialize());
-
 
86
		return false;
-
 
87
	});
40
});
88
});
41
89