if (typeof Fox == 'undefined') { Fox = {}; Fox.Strings = { add: function (object) { jQuery.extend(this, object); return this; } }; Fox.Options = { // Fox.Options.add('key', {...}); add: function (key, data) { var o = {}; o[key] = data; jQuery.extend(this, o); return this; }, // Return by copy: Fox.Options.get('key'); // Return by reference: Fox.Options['key']; get: function (key) { return jQuery.extend({}, this[key]); } }; } (function () { Fox.Strings.add( { JCANCEL: "Annuleren", COM_FOXCONTACT_BROWSE_FILES: "Blader bestanden", COM_FOXCONTACT_FAILED: "Mislukt", COM_FOXCONTACT_SUCCESS: "Succes", COM_FOXCONTACT_NO_RESULTS_MATCH: "Geen overeenkomende resultaten", COM_FOXCONTACT_MULTIPLE_JQUERY: "Multiple jQuery inclusion detected, please disable any extra instance.", COM_FOXCONTACT_READ_MORE: "Lees meer...", COM_FOXCONTACT_REMOVE_ALT: "Verwijder", COM_FOXCONTACT_REMOVE_TITLE: "Verwijder dit bestand", JURI_ROOT: "" } ); Date.monthNames = ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"]; Date.dayNames = ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"]; Date.monthNumbers = { "januari": 0, "februari": 1, "maart": 2, "april": 3, "mei": 4, "juni": 5, "juli": 6, "augustus": 7, "september": 8, "oktober": 9, "november": 10, "december": 11 }; // Calendar default options Fox.Options.add('calendar', { dayOfWeekStart: JSON.parse("1"), lang: 'dynamic', step: 60, i18n: { dynamic: { months: Date.monthNames, dayOfWeek: ["zo", "ma", "di", "wo", "do", "vr", "za"] } } }); })(); jQuery(document).ready(function ($) { $('.fox-item-captcha-img-reload').each(function () { $(this).click(function () { var image = document.getElementById($(this).attr("data-captcha-img")); // Generates a unique id with an 8 digits fixed length var uniqueid = Math.floor(Math.random() * Math.pow(10, 8)).toString(); while (uniqueid.length < 8) { uniqueid = '0' + uniqueid; } // Update the image src image.src = image.src.replace(/uniqueid=[0-9]{8}/, "uniqueid=" + uniqueid); }).show(); }); }); /* Enable the following function if you want to enable autofocus to the first input of the first form in the page */ /* jQuery(document).ready(function ($) { $('.fox-form').find('input[type=text]').filter(':visible:first').focus(); }); */