Subversion Repositories SmartDukaan

Rev

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

Rev 9352 Rev 9363
Line 295... Line 295...
295
		$('#addUpdateRecordSubmit').removeAttr('disabled');
295
		$('#addUpdateRecordSubmit').removeAttr('disabled');
296
		
296
		
297
		$('#campaignListUpdate1').val('-1');
297
		$('#campaignListUpdate1').val('-1');
298
    	$('#campaignNameUpdate').val('');
298
    	$('#campaignNameUpdate').val('');
299
    	$('#campaignStatusUpdate').val('2');
299
    	$('#campaignStatusUpdate').val('2');
-
 
300
    	$('#campaignAmountUpdate').val('');
300
    	
301
    	
301
    	$('#campaignListUpdate2').val('-1');
302
    	$('#campaignListUpdate2').val('-1');
302
    	$('#adgroupListUpdate1').find("option").remove();
303
    	$('#adgroupListUpdate1').find("option").remove();
303
    	$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
304
    	$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
304
    	$('#adgroupNameUpdate').val('');
305
    	$('#adgroupNameUpdate').val('');
Line 311... Line 312...
311
    	$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
312
    	$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
312
    	$('#keywordListUpdate1').find("option").remove();
313
    	$('#keywordListUpdate1').find("option").remove();
313
    	$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
314
    	$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
314
    	$('#keywordUpdate').val('');
315
    	$('#keywordUpdate').val('');
315
    	$('#bidUpdate').val('');
316
    	$('#bidUpdate').val('');
316
    	$('#matchTypeUpdate').val('2'); 	
317
    	$('#matchTypeUpdate').val('3'); 	
317
	});
318
	});
318
	
319
	
319
	$('#keywordRdoUpdate').live('click', function() {
320
	$('#keywordRdoUpdate').live('click', function() {
320
		$('div#updateCampaignDiv').hide();
321
		$('div#updateCampaignDiv').hide();
321
		$('div#updateKeywordDiv').show();
322
		$('div#updateKeywordDiv').show();
Line 324... Line 325...
324
		$('#addUpdateRecordSubmit').removeAttr('disabled');
325
		$('#addUpdateRecordSubmit').removeAttr('disabled');
325
		
326
		
326
		$('#campaignListUpdate1').val('-1');
327
		$('#campaignListUpdate1').val('-1');
327
    	$('#campaignNameUpdate').val('');
328
    	$('#campaignNameUpdate').val('');
328
    	$('#campaignStatusUpdate').val('2');
329
    	$('#campaignStatusUpdate').val('2');
-
 
330
    	$('#campaignAmountUpdate').val('');
329
    	
331
    	
330
    	$('#campaignListUpdate2').val('-1');
332
    	$('#campaignListUpdate2').val('-1');
331
    	$('#adgroupListUpdate1').find("option").remove();
333
    	$('#adgroupListUpdate1').find("option").remove();
332
    	$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
334
    	$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
333
    	$('#adgroupNameUpdate').val('');
335
    	$('#adgroupNameUpdate').val('');
Line 340... Line 342...
340
    	$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
342
    	$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
341
    	$('#keywordListUpdate1').find("option").remove();
343
    	$('#keywordListUpdate1').find("option").remove();
342
    	$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
344
    	$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
343
    	$('#keywordUpdate').val('');
345
    	$('#keywordUpdate').val('');
344
    	$('#bidUpdate').val('');
346
    	$('#bidUpdate').val('');
345
    	$('#matchTypeUpdate').val('2'); 	
347
    	$('#matchTypeUpdate').val('3'); 	
346
	});
348
	});
347
	
349
	
348
	$('#adgroupRdoUpdate').live('click', function() {
350
	$('#adgroupRdoUpdate').live('click', function() {
349
		$('div#updateCampaignDiv').hide();
351
		$('div#updateCampaignDiv').hide();
350
		$('div#updateKeywordDiv').hide();
352
		$('div#updateKeywordDiv').hide();
Line 353... Line 355...
353
		$('#addUpdateRecordSubmit').removeAttr('disabled');
355
		$('#addUpdateRecordSubmit').removeAttr('disabled');
354
		
356
		
355
		$('#campaignListUpdate1').val('-1');
357
		$('#campaignListUpdate1').val('-1');
356
    	$('#campaignNameUpdate').val('');
358
    	$('#campaignNameUpdate').val('');
357
    	$('#campaignStatusUpdate').val('2');
359
    	$('#campaignStatusUpdate').val('2');
-
 
360
    	$('#campaignAmountUpdate').val('');
358
    	
361
    	
359
    	$('#campaignListUpdate2').val('-1');
362
    	$('#campaignListUpdate2').val('-1');
360
    	$('#adgroupListUpdate1').find("option").remove();
363
    	$('#adgroupListUpdate1').find("option").remove();
361
    	$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
364
    	$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
362
    	$('#adgroupNameUpdate').val('');
365
    	$('#adgroupNameUpdate').val('');
Line 369... Line 372...
369
    	$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
372
    	$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
370
    	$('#keywordListUpdate1').find("option").remove();
373
    	$('#keywordListUpdate1').find("option").remove();
371
    	$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
374
    	$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
372
    	$('#keywordUpdate').val('');
375
    	$('#keywordUpdate').val('');
373
    	$('#bidUpdate').val('');
376
    	$('#bidUpdate').val('');
374
    	$('#matchTypeUpdate').val('2'); 	
377
    	$('#matchTypeUpdate').val('3'); 	
375
	});
378
	});
376
	
379
	
377
	$('#cancelAddUpdateRecords').live('click', function() {
380
	$('#cancelAddUpdateRecords').live('click', function() {
378
		$("#campaignRdo").attr("checked", false);
381
		$("#campaignRdo").attr("checked", false);
379
        $("#adgroupRdo").attr("checked", false);
382
        $("#adgroupRdo").attr("checked", false);
Line 433... Line 436...
433
		$('#adgroupRdoUpdate').attr("checked",false);
436
		$('#adgroupRdoUpdate').attr("checked",false);
434
		$('#keywordRdoUpdate').attr("checked",false);
437
		$('#keywordRdoUpdate').attr("checked",false);
435
    	$('#campaignListUpdate1').val('-1');
438
    	$('#campaignListUpdate1').val('-1');
436
    	$('#campaignNameUpdate').val('');
439
    	$('#campaignNameUpdate').val('');
437
    	$('#campaignStatusUpdate').val('2');
440
    	$('#campaignStatusUpdate').val('2');
-
 
441
    	$('#campaignAmountUpdate').val('');
438
    	
442
    	
439
    	$('#campaignListUpdate2').val('-1');
443
    	$('#campaignListUpdate2').val('-1');
440
    	$('#adgroupListUpdate1').find("option").remove();
444
    	$('#adgroupListUpdate1').find("option").remove();
441
    	$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
445
    	$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
442
    	$('#adgroupNameUpdate').val('');
446
    	$('#adgroupNameUpdate').val('');
Line 449... Line 453...
449
    	$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
453
    	$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
450
    	$('#keywordListUpdate1').find("option").remove();
454
    	$('#keywordListUpdate1').find("option").remove();
451
    	$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
455
    	$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
452
    	$('#keywordUpdate').val('');
456
    	$('#keywordUpdate').val('');
453
    	$('#bidUpdate').val('');
457
    	$('#bidUpdate').val('');
454
    	$('#matchTypeUpdate').val('2');
458
    	$('#matchTypeUpdate').val('3');
455
        
459
        
456
    });
460
    });
457
	$("#campaignList2").change(function () {
461
	$("#campaignList2").change(function () {
458
	    $("#adgroupList1").find("option:gt(0)").remove();
462
	    $("#adgroupList1").find("option:gt(0)").remove();
459
	    
463