Overview
Comment:Amélioration ergonomie power-users : possibilité de modifier le champ date sans passer par le calendrier
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: fbc4d45632d13615c6b11a6bc9ef2074ff5b2ac9
User & Date: bohwaz on 2013-09-29 10:07:56
Other Links: manifest | tags
Context
2013-09-29
11:27
Merges multiples de corrections dans la branche stable check-in: 3d710711d8 user: bohwaz tags: stable, 0.5.9
10:25
Fix bug logique check-in: 45c60f5552 user: bohwaz tags: trunk
10:07
Amélioration ergonomie power-users : possibilité de modifier le champ date sans passer par le calendrier check-in: fbc4d45632 user: bohwaz tags: trunk
09:55
javascript de test de la sûreté du mot de passe check-in: 0c974390a6 user: bohwaz tags: trunk
Changes

Modified src/www/admin/static/datepickr.js from [ac4e850f0a] to [0eef8662ba].

419
420
421
422
423
424
425
426
427
428
429
430
431
432
433

		for (i = 0; i < inputs.length; i++)
		{
			if (inputs[i].getAttribute('type') == 'date' && (inputs[i].type == 'text' || window.webkitConvertPointFromNodeToPage))
			{
				inputs[i].setAttribute('type', 'text');
				new datepickr(inputs[i], config_fr);
				inputs[i].setAttribute('readonly', 'readonly');
				enabled = true;
			}
		}

		if (enabled)
		{
			var scripts = document.head.getElementsByTagName('script');







|







419
420
421
422
423
424
425
426
427
428
429
430
431
432
433

		for (i = 0; i < inputs.length; i++)
		{
			if (inputs[i].getAttribute('type') == 'date' && (inputs[i].type == 'text' || window.webkitConvertPointFromNodeToPage))
			{
				inputs[i].setAttribute('type', 'text');
				new datepickr(inputs[i], config_fr);
				inputs[i].setAttribute('pattern', '[0-9]{4}-[0-9]{2}-[0-9]{2}');
				enabled = true;
			}
		}

		if (enabled)
		{
			var scripts = document.head.getElementsByTagName('script');