Subversion Repositories SmartDukaan

Rev

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

Rev 3168 Rev 3206
Line 2... Line 2...
2
	$("a.show-order-details").live('click', function() {
2
	$("a.show-order-details").live('click', function() {
3
		var orderId = $(this).attr('orderId');
3
		var orderId = $(this).attr('orderId');
4
		var userId = $(this).attr('userId');
4
		var userId = $(this).attr('userId');
5
		loadOrderInfo("bottom-infopane", userId, orderId);
5
		loadOrderInfo("bottom-infopane", userId, orderId);
6
	});
6
	});
7
	
7
 
8
	$("a.show-user-details").live('click', function() {
8
	$("a.show-user-details").live('click', function() {
9
		var userId = $(this).attr('userId');
9
		var userId = $(this).attr('userId');
10
		loadUserPane("infopane", userId);
10
		loadUserPane("infopane", userId);
11
	});
11
	});
12
	
12
	
Line 48... Line 48...
48
		loadActivityPane("infopane", userId);
48
		loadActivityPane("infopane", userId);
49
	});
49
	});
50
 
50
 
51
	$("a.show-ticket-details").live('click', function() {		
51
	$("a.show-ticket-details").live('click', function() {		
52
		var ticketId = $(this).attr('ticketId');
52
		var ticketId = $(this).attr('ticketId');
53
		loadTicketInfo("bottom-infopane", ticketId);
53
		loadTicketInfo("bottom-infopane", ticketId, null);
54
	});
54
	});
55
 
55
 
56
	$("a.show-activity-details").live('click', function() {
56
	$("a.show-activity-details").live('click', function() {
57
		var activityId = $(this).attr('activityId');
57
		var activityId = $(this).attr('activityId');
58
		var userId = $(this).attr('userId');
58
		var userId = $(this).attr('userId');
Line 73... Line 73...
73
		var ticketId = $(this).attr('ticketId');
73
		var ticketId = $(this).attr('ticketId');
74
		updateTicket("infopane", ticketId, $(this).serialize());
74
		updateTicket("infopane", ticketId, $(this).serialize());
75
		return false;
75
		return false;
76
	});
76
	});
77
 
77
 
-
 
78
	$('form#mail-form').live('submit', function() {
-
 
79
		var ticketId = $('#update-ticket-form').attr('ticketId');
-
 
80
		updateTicket("infopane", ticketId, $(this).serialize() + '&' + $('#update-ticket-form').serialize());
-
 
81
		$.colorbox.close();
-
 
82
		return false;
-
 
83
	});
-
 
84
 
78
	$('#create-ticket-form').live('submit', function() {
85
	$('#create-ticket-form').live('submit', function() {
79
		createTicket("infopane", $(this).serialize());
86
		createTicket("infopane", $(this).serialize());
80
		return false;
87
		return false;
81
	});
88
	});
82
 
89
 
83
	$('#create-activity-form').live('submit', function() {
90
	$('#create-activity-form').live('submit', function() {
84
		createActivity("infopane", $(this).serialize());
91
		createActivity("infopane", $(this).serialize());
85
		return false;
92
		return false;
86
	});
93
	});
87
	
94
 
88
	$(".home-page").click(function() {
95
	$(".home-page").click(function() {
89
		goToHomePage();
96
		goToHomePage();
90
	});
97
	});
91
 
98
 
92
	$(".my-open-tickets").live('click', function() {
99
	$(".my-open-tickets").live('click', function() {
Line 122... Line 129...
122
    });
129
    });
123
 
130
 
124
	$("a").ajaxComplete( function(evt, request, settings) {
131
	$("a").ajaxComplete( function(evt, request, settings) {
125
		$("#spinner-div").hide();
132
		$("#spinner-div").hide();
126
    });
133
    });
-
 
134
 
-
 
135
	$("select#activity-type").live('change', function() {
-
 
136
		var userId = $(this).attr('userId');
-
 
137
		processActivityTypeChange(userId, $(this).val());
-
 
138
	});
127
});
139
});
128
140