Subversion Repositories SmartDukaan

Rev

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

Rev 4751 Rev 4793
Line 304... Line 304...
304
    });
304
    });
305
    
305
    
306
    $('input.cancelReason').live('change', function(){
306
    $('input.cancelReason').live('change', function(){
307
    	showHidecancelReasonDiv($(this).attr('id'));
307
    	showHidecancelReasonDiv($(this).attr('id'));
308
    });
308
    });
-
 
309
    
-
 
310
    $('a.manage-agents').live('click', function() {
-
 
311
        loadAgentsInfo("infopane");
-
 
312
    });
-
 
313
    
-
 
314
    $('a#create-agent').live('click', function() {
-
 
315
    	loadAgentCreationForm();
-
 
316
    });
-
 
317
    
-
 
318
    $('a#deactivate-agent').live('click', function() {
-
 
319
    	deactivateAgentPopup();
-
 
320
    });
-
 
321
    
-
 
322
    $('a#change-password').live('click', function() {
-
 
323
    	changeAgentPasswordPopup();
-
 
324
    });
-
 
325
    
-
 
326
    $('input#deactivate-agent').live('click', function() {
-
 
327
    	deactivateAgent($('#deactivate-agent-email').val(),$('#deactivate-agent-email').find(':selected')[0].id);
-
 
328
    });
-
 
329
    
-
 
330
    $('#create-agent-form').live('submit', function() {
-
 
331
    	if(validateAgentCreationForm()){
-
 
332
    		var managerId = $('#manager-email-id').find(':selected')[0].id;
-
 
333
    		createAgent($(this).serialize(), managerId);
-
 
334
    	}
-
 
335
    });
-
 
336
    
-
 
337
    $('#change-agent-password').live('click', function() {
-
 
338
    	updateAgentPassword();
-
 
339
    });
309
});
340
});
310
341