Subversion Repositories eFlore/Applications.cel

Rev

Rev 3983 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3983 Rev 3985
Line 90... Line 90...
90
WidgetPhotoCommun.prototype.chaineValableAttributsHtml = function( chaine ) {
90
WidgetPhotoCommun.prototype.chaineValableAttributsHtml = function( chaine ) {
91
	chaine = chaine.latinise();
91
	chaine = chaine.latinise();
92
	return chaine.replace(/[^a-z0-9_\s]/gi, '').replace(/[_\s]/g, '_');
92
	return chaine.replace(/[^a-z0-9_\s]/gi, '').replace(/[_\s]/g, '_');
93
}
93
}
Line 94... Line 94...
94
 
94
 
95
WidgetPhotoCommun.prototype.envoyerVersService = function ( mode, url, donnees = null, callback = () => {}) {
95
WidgetPhotoCommun.prototype.envoyerVersService = function ( mode, url, token = null, donnees = null, callback = () => {}) {
Line 96... Line 96...
96
	const lthis = this;
96
	const lthis = this;
97
 
97
 
98
	var xhr = new XMLHttpRequest();
98
	var xhr = new XMLHttpRequest();
Line -... Line 99...
-
 
99
	xhr.open(mode, url, true);
-
 
100
	xhr.setRequestHeader("Content-Type", "application/json");
-
 
101
 
-
 
102
	if(token){
99
	xhr.open(mode, url, true);
103
		xhr.setRequestHeader("Authorization", token);
100
	xhr.setRequestHeader("Content-Type", "application/json");
104
	}
101
 
105
 
102
	xhr.onreadystatechange = function () {
106
	xhr.onreadystatechange = function () {