if (typeof Fox == 'undefined') { Fox = {}; Fox.Text = { strings: {}, get: function (key) { return this.strings[key]; }, add: function (object) { for (var key in object) { this.strings[key] = object[key]; } return this; } }; } (function () { Fox.Text.add( { "JCANCEL": 'Отмена', "COM_FOXCONTACT_BROWSE_FILES": 'Обзор файлов', "COM_FOXCONTACT_FAILED": 'Ошибка', "COM_FOXCONTACT_SUCCESS": 'Успешно', "COM_FOXCONTACT_NO_RESULTS_MATCH": 'Нет результатов', "COM_FOXCONTACT_REMOVE_ALT": 'Удалить', "COM_FOXCONTACT_REMOVE_TITLE": 'Удалить данный файл' } ); })(); jQuery(document).ready(function ($) { jQuery('.fox_select').chosen( { disable_search_threshold: 10, allow_single_deselect: true, no_results_text: 'Нет результатов' }); }); // Called by the Reset button function ResetFoxControls() { // Reset each dropdown to its first value jQuery('select.fox_select').each( function (index, value) { // Search for the first option, select it and force a refresh jQuery(value).find('option:first-child').prop('selected', true).end().trigger('liszt:updated'); }); }