Subversion Repositories SmartDukaan

Rev

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

Rev 4793 Rev 5168
Line 6... Line 6...
6
 
6
 
7
    $("a.show-user-details").live('click', function() {
7
    $("a.show-user-details").live('click', function() {
8
        var userId = $(this).attr('userId');
8
        var userId = $(this).attr('userId');
9
        loadUserPane("infopane", userId);
9
        loadUserPane("infopane", userId);
10
    });
10
    });
-
 
11
    
-
 
12
    $("a.agent-ticket-count").live('click', function() {
-
 
13
        loadTickets('infopane', "/crm/tickets!searchTickets?agentIds=" + $(this).attr('agentId') +"&status=OPEN");
-
 
14
    });
11
 
15
 
12
    $("a.show-orders").live('click', function() {
16
    $("a.show-orders").live('click', function() {
13
        var userId = $(this).attr('userId');
17
        var userId = $(this).attr('userId');
14
        loadOrderPane("infopane", userId, 0);
18
        loadOrderPane("infopane", userId, 0);
15
    });
19
    });
Line 321... Line 325...
321
    
325
    
322
    $('a#change-password').live('click', function() {
326
    $('a#change-password').live('click', function() {
323
    	changeAgentPasswordPopup();
327
    	changeAgentPasswordPopup();
324
    });
328
    });
325
    
329
    
-
 
330
    $('a#change-role').live('click', function() {
-
 
331
    	changeAgentRolePopup();
-
 
332
    });
-
 
333
    
326
    $('input#deactivate-agent').live('click', function() {
334
    $('input#deactivate-agent').live('click', function() {
327
    	deactivateAgent($('#deactivate-agent-email').val(),$('#deactivate-agent-email').find(':selected')[0].id);
335
    	deactivateAgent($('#deactivate-agent-email').val(),$('#deactivate-agent-email').find(':selected')[0].id);
328
    });
336
    });
329
    
337
    
330
    $('#create-agent-form').live('submit', function() {
338
    $('#create-agent-form').live('submit', function() {
Line 332... Line 340...
332
    		var managerId = $('#manager-email-id').find(':selected')[0].id;
340
    		var managerId = $('#manager-email-id').find(':selected')[0].id;
333
    		createAgent($(this).serialize(), managerId);
341
    		createAgent($(this).serialize(), managerId);
334
    	}
342
    	}
335
    });
343
    });
336
    
344
    
-
 
345
    $('#change-agent-role-form').live('submit', function() {
-
 
346
    	if($('#changed-role')[0].value!=""||$('#changed-role')[0].value!=undefined){
-
 
347
    		changeAgentRole($(this).serialize());
-
 
348
    	} else {
-
 
349
    		alert("Please choose roles before proceeding");
-
 
350
    	}
-
 
351
    });
-
 
352
    
337
    $('#change-agent-password').live('click', function() {
353
    $('#change-agent-password').live('click', function() {
338
    	updateAgentPassword();
354
    	updateAgentPassword();
339
    });
355
    });
340
});
356
});
341
357