<commit_before><?php
/**
 * YAWIK
 *
 * @filesource
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
 * @license   MIT
 */

$hasFacets = $jobs instanceof \Solr\FacetsProviderInterface;
?>
<?php if ($this->jobsByMailForm):?>
    <?=$this->form($this->jobsByMailForm)?>
<?php endif;?>
<?php if ($hasFacets):?>
	<?php
	$facets = $jobs->getFacets();
	$activeFacets = $facets->getActiveValues();
	?>
	<?php $this->headScript()->captureStart()?>
    $(document).on('click', '.facet-checkbox', function () {
        var $checkbox = $(this),
        	$form = $('#jobs-list-filter'),
        	name = $checkbox.attr('name');
        $form.find('input[name="' + name + '"]').remove();
        if ($checkbox.prop('checked')) {
        	$form.append('<input type="hidden" class="facet-param" name="' + name + '">');
        }
        $form.submit();
    }).on('click', '.facet-active', function () {
        $('#jobs-list-filter').find('input[name="' + $(this).data('name') + '"]').remove()
        	.end().submit();
    }).on('click', '.facet-reset', function () {
        var $form = $('#jobs-list-filter');
        $('#jobs-list-filter').find('.facet-param').remove()
        	.end().submit();
    });<commit_msg>#342 Core\View\Helper\Proxy used for subscription form rendering latest develop branch merged<commit_after><?php
/**
 * YAWIK
 *
 * @filesource
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
 * @license   MIT
 */

$hasFacets = $jobs instanceof \Solr\FacetsProviderInterface;
?>
<?=$this->proxy('jobsByMailSubscriptionForm')->render()?>
<?php if ($hasFacets):?>
	<?php
	$facets = $jobs->getFacets();
	$activeFacets = $facets->getActiveValues();
	?>
	<?php $this->headScript()->captureStart()?>
    $(document).on('click', '.facet-checkbox', function () {
        var $checkbox = $(this),
        	$form = $('#jobs-list-filter'),
        	name = $checkbox.attr('name');
        $form.find('input[name="' + name + '"]').remove();
        if ($checkbox.prop('checked')) {
        	$form.append('<input type="hidden" class="facet-param" name="' + name + '">');
        }
        $form.submit();
    }).on('click', '.facet-active', function () {
        $('#jobs-list-filter').find('input[name="' + $(this).data('name') + '"]').remove()
        	.end().submit();
    }).on('click', '.facet-reset', function () {
        var $form = $('#jobs-list-filter');
        $('#jobs-list-filter').find('.facet-param').remove()
        	.end().submit();
    });
{'fraction_non_alphanumeric': 0.2468937875751503, 'fraction_numerical': 0.007615230460921844, 'mean_word_length': 3.2162162162162162, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 30, 'https://': 0, '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': '6639025', 'n_tokens_mistral': 841, 'n_tokens_neox': 801, 'n_words': 141}