Subversion Repositories SmartDukaan

Rev

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

Rev 31401 Rev 31402
Line 439... Line 439...
439
		});
439
		});
440
 
440
 
441
 
441
 
442
	$(document).on('click', ".lead-detail-entry",
442
	$(document).on('click', ".lead-detail-entry",
443
		function() {
443
		function() {
444
			
444
 
445
				console.log("hello");
445
			console.log("hello");
446
			var outletName = $('input[name="outletName"]').val();
446
			var outletName = $('input[name="outletName"]').val();
447
			var counterSize = $('input[name="counterSize"]').val();
447
			var counterSize = $('input[name="counterSize"]').val();
448
			var table = document.getElementById('brandtable');
448
			var table = document.getElementById('brandtable');
449
			var brandValueJson = [];
449
			var brandValueJson = [];
450
			var leadBrands;
450
			var leadBrands;
Line 457... Line 457...
457
			if (counterSize === "") {
457
			if (counterSize === "") {
458
				alert("Counter Size is required");
458
				alert("Counter Size is required");
459
				return;
459
				return;
460
			}
460
			}
461
 
461
 
462
				if (localStorage.getItem("frontp") == "undefined") {
462
			if (localStorage.getItem("frontp") == "undefined") {
463
					alert("Front Document is required");
463
				alert("Front Document is required");
464
					return;
464
				return;
465
				}
465
			}
466
	
466
 
467
				if (localStorage.getItem("internalMarket") == "undefined") {
467
			if (localStorage.getItem("internalMarket") == "undefined") {
468
					alert("Front With Market Document is required");
468
				alert("Front With Market Document is required");
469
					return;
469
				return;
470
				}
470
			}
471
	
471
 
472
				if (localStorage.getItem("leftShot") == "undefined") {
472
			if (localStorage.getItem("leftShot") == "undefined") {
473
					alert("Internal Left Shot Document is required");
473
				alert("Internal Left Shot Document is required");
474
					return;
474
				return;
475
				}
475
			}
476
	
476
 
477
				if (localStorage.getItem("leftWall") == "undefined") {
477
			if (localStorage.getItem("leftWall") == "undefined") {
478
					alert("Internal Left Wall Document is required");
478
				alert("Internal Left Wall Document is required");
479
					return;
479
				return;
480
				}
480
			}
481
	
481
 
482
	
482
 
483
				if (localStorage.getItem("rightWall") == "undefined") {
483
			if (localStorage.getItem("rightWall") == "undefined") {
484
					alert("Internal Right Wall Document is required");
484
				alert("Internal Right Wall Document is required");
485
					return;
485
				return;
486
				}
486
			}
487
 
487
 
488
 
488
 
489
			for (i = 1; i < table.rows.length; i++) {
489
			for (i = 1; i < table.rows.length; i++) {
490
 
490
 
491
				var objCells = table.rows[i].cells;
491
				var objCells = table.rows[i].cells;
Line 565... Line 565...
565
			if (confirm('Document has been selected, Do you want to upload ?')) {
565
			if (confirm('Document has been selected, Do you want to upload ?')) {
566
 
566
 
567
				var fileSelector = $('#frontp')[0];
567
				var fileSelector = $('#frontp')[0];
568
 
568
 
569
				var documentId = uploadImage(fileSelector);
569
				var documentId = uploadImage(fileSelector);
570
				
570
 
571
				console.log(documentId);
571
				console.log(documentId);
572
 
572
 
573
				localStorage
573
				localStorage
574
					.setItem(
574
					.setItem(
575
						"frontp",
575
						"frontp",
Line 686... Line 686...
686
				console
686
				console
687
					.log("documentId : "
687
					.log("documentId : "
688
						+ documentId);
688
						+ documentId);
689
 
689
 
690
 
690
 
691
				return documentId;
-
 
692
			});
-
 
693
 
691
 
-
 
692
			});
-
 
693
		return documentId;
694
	}
694
	}
695
 
695
 
696
}
696
}
697
 
697
 
698
 
698