Subversion Repositories SmartDukaan

Rev

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

Rev 31370 Rev 31401
Line 458... Line 458...
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 Documrnt 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 Documrnt 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 Documrnt 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 Documrnt 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 Documrnt 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++) {
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
				
-
 
571
				console.log(documentId);
570
 
572
 
571
				localStorage
573
				localStorage
572
					.setItem(
574
					.setItem(
573
						"frontp",
575
						"frontp",
574
						documentId);
576
						documentId);
575
 
577
 
576
 
578
 
-
 
579
 
577
			} else {
580
			} else {
578
 
581
 
579
			}
582
			}
580
		});
583
		});
581
 
584