Subversion Repositories SmartDukaan

Rev

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

Rev 34825 Rev 34968
Line 751... Line 751...
751
			'    align-items: center;\n' +
751
			'    align-items: center;\n' +
752
			'    font-size: 1.5rem;\n' +
752
			'    font-size: 1.5rem;\n' +
753
			'    font-weight: 200;\n' +
753
			'    font-weight: 200;\n' +
754
			'    color: #555;" >Loading...</div>');
754
			'    color: #555;" >Loading...</div>');
755
 
755
 
756
		doGetAjaxRequestHandler(context + "/dashboardModal", function (response) {
756
		doGetAjaxRequestHandler(context + "/dashboardModal", function (response, status, xhr) {
-
 
757
			if (xhr.status === 500) {
-
 
758
				// Do nothing or show optional toast
-
 
759
				return;
-
 
760
			}
757
			$('#chartData').html(response);
761
			$('#chartData').html(response);
758
			$('#partnerTasks').css('zoom', '125%').modal('show');
762
			$('#partnerTasks').css('zoom', '125%').modal('show');
759
		});
763
		});
760
	} else {
764
	} else {
761
		$('#chartData').html('<p>No data to load</p>');
765
		$('#chartData').html('<p>No data to load</p>');