element $(document.documentElement).addClass('js'); // 'js enabled' cookie document.cookie = 'has_js=1; path=/'; // Attach all behaviors. $(document).ready(function() { Drupal.attachBehaviors(this); }); } /** * The default themes. */ Drupal.theme.prototype = { /** * Formats text for emphasized display in a placeholder inside a sentence. * * @param str * The text to format (plain-text). * @return * The formatted text (html). */ placeholder: function(str) { return '' + Drupal.checkPlain(str) + ''; } }; ;Drupal.locale = { 'pluralFormula': function($n) { return Number((((($n%10)==1)&&(($n%100)!=11))?(0):((((($n%10)>=2)&&(($n%10)<=4))&&((($n%100)<10)||(($n%100)>=20)))?(1):2))); }, 'strings': { "Unspecified error": "Не специфичная ошибка", "Your server has been successfully tested to support this feature.": "Ваш сервер был успешно протестирован и может использовать эту функцию", "Your system configuration does not currently support this feature. The \x3ca href=\"http://drupal.org/node/15365\"\x3ehandbook page on Clean URLs\x3c/a\x3e has additional troubleshooting information.": "Конфигурация вашей системы на данный момент не поддерживает этой функции. Дополнительная информация доступна на \x3ca href=\"http://drupal.org/node/15365\"\x3eстраницы документации о Clean URLs\x3c/a\x3e.", "Testing clean URLs...": "Тестирование чистых URL-ов...", "Loading...": "Загрузка...", "Upload": "Загрузить", "Select all rows in this table": "Отметить все колонки таблицы", "Deselect all rows in this table": "Снять отметку со всех колонок таблицы", "Join summary": "Объединить анонс", "Split summary at cursor": "Отделить анонс от основного материала", "An HTTP error @status occurred. \n@uri": "Произошла HTTP ошибка @status. \\n@uri", "Changes made in this table will not be saved until the form is submitted.": "Изменения, сделанные в списке не вступят в силу пока вы не сохраните их.", "Drag to re-order": "Переместите для изменения порядка", "An error occurred. \n@uri\n@text": "Возникла ошибка. \\n@uri\\n@text", "An error occurred. \n@uri\n(no information available).": "Возникла ошибка. \r\n@uri\r\n(нет доступной информации).", "Only files with the following extensions are allowed: %files-allowed.": "Прикреплять можно только файлы с расширениями: %files-allowed.", "The changes to these blocks will not be saved until the \x3cem\x3eSave blocks\x3c/em\x3e button is clicked.": "Изменения, сделанные в блоках не вступят в силу пока вы не нажмете кнопку \x3cem\x3eСохранить блоки\x3c/em\x3e.", "Send to @app": "Отправить для @app", "Preview requires \x3ca href=\"http://drupal.org/project/ajax_markup\"\x3eAjax markup\x3c/a\x3e module with proper permissions set.": "Предпросмотр нуждается в модуле \x3ca href=\"http://drupal.org/project/ajax_markup\"\x3eAjax markup\x3c/a\x3e с правильно установленными правами.", "The preview is disabled due to previously inserted HTML code in the content. This aims to protect you from any potentially harmful code inserted by other editors or users. If you own the content, just preview an empty text to re-enable the preview.": "Предварительный просмотр отключен в связи с ранее вставленным кодом HTML в содержание. Эта деятельность направлена на защиту от любого потенциально вредного кода добавлено в редактором или другим пользователем. Если у вас есть содержание, оставьте пустыми текст просмотра, чтобы снова включить preview.", "unlimited": "нелимитировано", "textarea": "textarea", "Please select a file.": "Пожалуйста выберите файл.", "You are not allowed to operate on more than %num files.": "Вам не разрешено управлять больше чем с %num файлами.", "Please specify dimensions within the allowed range that is from 1x1 to @dimensions.": "Пожалуйста укажите размер внутри разрешённого диапозона от 1x1 до @dimensions.", "%filename is not an image.": "%filename не изображение.", "Directory %dir is loaded.": "Папка %dir загружена.", "Directory %dir is empty.": "Папка \"%dir\" пуста.", "File browsing is disabled in directory %dir.": "Просмотр файлов запрещен для папки %dir.", "You can\'t perform this operation.": "Вы не можете выполните эту операцию.", "Do you want to refresh the current directory?": "Вы хотите обновить текущую папку?", "Uploading %filename...": "Загрузка %filename...", "Delete selected files?": "Удалить выбранные файлы?", "Please select a thumbnail.": "Пожалуйста выберите превью.", "Please select a single file.": "Пожалуйста, выберите файл.", "You must select at least %num files.": "Вы должны выбрать хотя бы %num файлов." } };;if (Drupal.jsEnabled) { paginator = function () { /** * Private properties */ var linkNext = null; var linkPrev = null; /** * Private methods */ var setLinks = function () { linkPrev = $("ul.pager li.pager-previous a").attr("href"); linkNext = $("ul.pager li.pager-next a").attr("href"); } var navigate = function (event) { var href = null; if ( event.ctrlKey && event.keyCode == 37 ) href = linkPrev; if ( event.ctrlKey && event.keyCode == 39 ) href = linkNext; if ( href ) document.location = href; } /** * Public methods */ this.__init = function () { // Get next/prev hrefs setLinks(); // Ctrl + arrow event handle $(document).keydown( function(event) { navigate(event); }); } } $(document).ready(function(){ var pageNavigation = new paginator(); pageNavigation.__init(); }); };// $Id: script.js,v 1.3 2009/11/02 12:03:18 jmburnz Exp $ ;