Subversion Repositories SmartDukaan

Rev

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

Rev 23379 Rev 23405
Line 147... Line 147...
147
		xhttp.setRequestHeader("Content-Type", "application/json");
147
		xhttp.setRequestHeader("Content-Type", "application/json");
148
	}
148
	}
149
	// You should set responseType as blob for binary responses
149
	// You should set responseType as blob for binary responses
150
	xhttp.responseType = 'blob';
150
	xhttp.responseType = 'blob';
151
	xhttp.send(data);
151
	xhttp.send(data);
-
 
152
}
-
 
153
 
-
 
154
 
-
 
155
function numberToComma(x) {
-
 
156
	x=x.toString();
-
 
157
	var lastThree = x.substring(x.length-3);
-
 
158
	var otherNumbers = x.substring(0,x.length-3);
-
 
159
	if(otherNumbers != '')
-
 
160
	    lastThree = ',' + lastThree;
-
 
161
	return otherNumbers.replace(/\B(?=(\d{2})+(?!\d))/g, ",") + lastThree;
152
}
162
}
153
163