summaryrefslogtreecommitdiff
path: root/public/inversion.js
blob: 20a68713ef69e98196effd4f134714cb9ccef66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// public/inversion.js

// inverser la position de deux "articles" ou albums d'une page
function inversion()
{
	var page = '';
	var action = ''; // monter ou descendre
	var fileCode = ''; // <?= $Articles->fileList[$i]['fileCode'] ?>
	var position = ''; // <?= $Articles->fileList[$i]['position'] ?>

	const xhr = new XMLHttpRequest();
	url = 'index.php?page='+page+'&action='+action+'&file_code='+fileCode+'&position='+position+'#'+fileCode;
	url = 'index.php?action=restauration&file_name='+fileInfos.name+'&file_size='+fileInfos.size;
	xhr.open("GET", url);
	xhr.send();
}