<commit_before>/**
 * This file is part of the Nextras community extensions of Nette Framework
 *
 * @license    MIT
 * @link       https://github.com/nextras
 * @author     <NAME>
 */

jQuery(function($) {
	$('.date, .datetime-local').each(function(i, el) {
		el = $(el);
		el.get(0).type = 'text';
		el.datetimepicker({
			startDate: el.attr('min'),
			endDate: el.attr('max'),
			weekStart: 1,
			minView: el.is('.date') ? 'month' : 'hour',
			format: el.is('.date') ? 'd. m. yyyy' : 'd. m. yyyy - hh:ii',
			autoclose: true
		});
		el.datetimepicker('hide');
	});
});<commit_msg>Fixed js init example for newest plugin version<commit_after>/**
 * This file is part of the Nextras community extensions of Nette Framework
 *
 * @license    MIT
 * @link       https://github.com/nextras
 * @author     <NAME>
 */

jQuery(function($) {
	$('.date, .datetime-local').each(function(i, el) {
		el = $(el);
		el.get(0).type = 'text';
		el.datetimepicker({
			startDate: el.attr('min'),
			endDate: el.attr('max'),
			weekStart: 1,
			minView: el.is('.date') ? 'month' : 'hour',
			format: el.is('.date') ? 'd. m. yyyy' : 'd. m. yyyy - hh:ii',
			autoclose: true
		});
		el.attr('value') && el.datetimepicker('setValue');
	});
});
{'fraction_non_alphanumeric': 0.2099673202614379, 'fraction_numerical': 0.0032679738562091504, 'mean_word_length': 3.152542372881356, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2343004', 'n_tokens_mistral': 493, 'n_tokens_neox': 451, 'n_words': 108}