Subversion Repositories SmartDukaan

Rev

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

Rev 31453 Rev 31456
Line 512... Line 512...
512
 
512
 
513
			leadDetailObject['leadBrands'] = brandValueJson;
513
			leadDetailObject['leadBrands'] = brandValueJson;
514
 
514
 
515
			console.log(localStorage.getItem("frontp"));
515
			console.log(localStorage.getItem("frontp"));
516
 
516
 
517
			if (localStorage.getItem("frontp") == "undefined") {
-
 
518
				leadDetailObject['frontp'] = 0;
-
 
519
			} else {
517
 
520
				leadDetailObject['frontp'] = localStorage
518
			leadDetailObject['frontp'] = localStorage
521
					.getItem("frontp");
519
				.getItem("frontp");
522
			}
520
 
523
 
521
 
524
			if (localStorage.getItem("internalMarket") == "undefined") {
-
 
525
				leadDetailObject['frontWithMarket'] = 0;
-
 
526
			} else {
-
 
527
				leadDetailObject['frontWithMarket'] = localStorage
522
			leadDetailObject['frontWithMarket'] = localStorage
528
					.getItem("internalMarket");
523
				.getItem("internalMarket");
529
			}
524
 
530
 
525
 
531
			if (localStorage.getItem("leftShot") == "undefined") {
-
 
532
				leadDetailObject['internalLongShot'] = 0;
-
 
533
			} else {
-
 
534
				leadDetailObject['internalLongShot'] = localStorage
526
			leadDetailObject['internalLongShot'] = localStorage
535
					.getItem("leftShot");
527
				.getItem("leftShot");
536
			}
528
 
537
 
529
 
538
			if (localStorage.getItem("leftWall") == "undefined") {
-
 
539
				leadDetailObject['internalLeftWall'] = 0;
-
 
540
			} else {
-
 
541
				leadDetailObject['internalLeftWall'] = localStorage
530
			leadDetailObject['internalLeftWall'] = localStorage
542
					.getItem("leftWall");
531
				.getItem("leftWall");
543
			}
532
 
544
 
533
 
545
			if (localStorage.getItem("rightWall") == "undefined") {
-
 
546
				leadDetailObject['internalRightWall'] = 0;
-
 
547
			} else {
-
 
548
				leadDetailObject['internalRightWall'] = localStorage
534
			leadDetailObject['internalRightWall'] = localStorage
549
					.getItem("rightWall");
535
				.getItem("rightWall");
550
			}
-
 
551
 
536
 
552
			console.log(leadDetailObject);
537
			console.log(leadDetailObject);
553
 
538
 
554
			if (confirm("Are you sure you want to add lead detail!") == true) {
539
			if (confirm("Are you sure you want to add lead detail!") == true) {
555
				doPostAjaxRequestWithJsonHandler(context + "/leadDetail", JSON.stringify(leadDetailObject), function(response) {
540
				doPostAjaxRequestWithJsonHandler(context + "/leadDetail", JSON.stringify(leadDetailObject), function(response) {