code
stringlengths
1
2.08M
language
stringclasses
1 value
jQuery(document).ready(function ($) { $('#notify').bind('change',function () { var $elem = $('#notify-email').parents('.form-group'); if ($(this).val() == 0) { $elem.hide(); } else { $elem.show(); } }).children('option:selected').trigger('change');...
JavaScript
var cssClassName = 'info'; /** * Marks all visible results * * @param $markAllElem * @param name * @param action */ function markEntries($markAllElem, name, action) { var fields = $markAllElem.parents('thead:first').next('tbody').find('input[name="' + name + '[]"]:visible'); jQuery.each(fiel...
JavaScript
jQuery(document).ready(function ($) { $('#redirect-message').delay(4000).animate({ height: 'hide' }); });
JavaScript
jQuery(document).ready(function ($) { $('#page-break-form').find('.modal-footer button.btn-primary').click(function (e) { e.preventDefault(); var $tocTitle = $('#toc-title'), text; if ($tocTitle.val().length > 0) { text = '<hr class="page-break" title="' + $...
JavaScript
/** * Marks options as selected * * @param action */ function mark_options(action) { var $elem = $('form #tables option'); if (action === 'add') { $elem.attr('selected', true); } else { $elem.removeAttr('selected'); } } $(function () { $('input[name="export_type"]...
JavaScript
$(function () { $(':radio[name="mailer_smtp_auth"]').bind('onload change', function () { var $elem = $('#mailer-smtp-2'); if ($(this).val() == 1) { $elem.show(); } else { $elem.hide(); } }); $('#mailer-type').bind('change',function () { ...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>t<'row'<'col-xs-6'i><'col-xs-6'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } } ); /* Default class modification */ $.exte...
JavaScript
jQuery(document).ready(function ($) { var $datepickerRange = $('[data-datepicker-range]'), $datepicker = $('[data-datepicker]'); if ($datepickerRange.length > 0) { $datepickerRange.each(function () { var datepickers = $datepickerRange.data('datepicker-range'); i...
JavaScript
/** * Simple AJAX form handler * * @param [customFormData] */ jQuery.fn.formSubmit = function (customFormData) { /** * Display a loading layer * @private */ function _showLoadingLayer($form) { var $body = $('body'), loadingText = $form.data('ajax-form-loading-t...
JavaScript
jQuery(document).ready(function ($) { // At first, remove all previous validation error states $('form .form-group.has-error').removeClass('has-error'); // Next, highlight all input fields where the validation has failed $('#error-box').find('li').each(function () { var errorClass = $(thi...
JavaScript
/*! jQuery Timepicker Addon - v1.4.6 - 2014-08-09 * http://trentrichardson.com/examples/timepicker * Copyright (c) 2014 Trent Richardson; Licensed MIT */ (function ($) { /* * Lets not redefine timepicker, Prevent "Uncaught RangeError: Maximum call stack size exceeded" */ $.ui.timepicker = $...
JavaScript
$(document).ready(function () { var $resourcesTable = $('#resources-table'); $resourcesTable.find('tbody tr:not(.sub-table-header)').hide(); $resourcesTable.find('.sub-table-header').click(function () { $(this).nextUntil('tr.sub-table-header').toggle(); var visibleLength = $resource...
JavaScript
$(document).ready(function () { $('input[name="action"]').bind('click',function () { if ($(this).val() == 1) { $('#test-newsletter').show(); } else { $('#test-newsletter').hide(); } }).filter(':checked').trigger('click'); });
JavaScript
jQuery(document).ready(function ($) { $('input[name="readmore"]').on('click',function () { var $elem = $('#readmore-container'); if ($(this).val() == 1) { $elem.show(); } else { $elem.hide(); } }).filter(':checked').click(); });
JavaScript
/** * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to bu...
JavaScript
/** * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#...
JavaScript
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */
JavaScript
/** * Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ // This file contains style definitions that can be used by CKEditor plugins. // // The most common use for it is the "stylescombo" plugin, which shows a combo ...
JavaScript
/** This file is part of KCFinder project * * @desc File related functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource....
JavaScript
/** This file is part of KCFinder project * * @desc Context menus * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/licenses/...
JavaScript
/** This file is part of KCFinder project * * @desc Object initializations * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/...
JavaScript
/** This file is part of KCFinder project * * @desc My jQuery UI & Uniform fixes * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensourc...
JavaScript
/** This file is part of KCFinder project * * @desc Upload files using drag and drop * @package KCFinder * @version 3.12 * @author Forum user (updated by Pavel Tzonkov) * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opens...
JavaScript
// @author Rich Adams <rich@richadams.me> // Implements a tap and hold functionality. If you click/tap and release, it will trigger a normal // click event. But if you click/tap and hold for 1s (default), it will trigger a taphold event instead. ;(function($) { // Default options var defaults = { dura...
JavaScript
/** This file is part of KCFinder project * * @desc Helper functions integrated in jQuery * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://...
JavaScript
/** This file is part of KCFinder project * * @desc Helper MD5 checksum function * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensourc...
JavaScript
/** This file is part of KCFinder project * * @desc Miscellaneous functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource...
JavaScript
/** This file is part of KCFinder project * * @desc Base JavaScript object properties * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://open...
JavaScript
/** This file is part of KCFinder project * * @desc Right Click jQuery Plugin * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.o...
JavaScript
/** This file is part of KCFinder project * * @desc Folder related functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensourc...
JavaScript
/* Uniform v2.1.2 Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC http://pixelmatrixdesign.com Requires jQuery 1.3 or newer Much thanks to Thomas Reynolds and Buck Wilson for their help and advice on this. Disabling text selection is made possible by Mathias Bynens <http://mathiasbynens.be/> and his noSelect p...
JavaScript
/** This file is part of KCFinder project * * @desc Settings panel functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensourc...
JavaScript
/** This file is part of KCFinder project * * @desc User Agent jQuery Plugin * @package KCFinder * @version 3.10 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.or...
JavaScript
/** This file is part of KCFinder project * * @desc User Agent jQuery Plugin * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.or...
JavaScript
/** This file is part of KCFinder project * * @desc Image viewer * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/licenses/L...
JavaScript
/** This file is part of KCFinder project * * @desc Dialog boxes functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource....
JavaScript
/** This file is part of KCFinder project * * @desc Toolbar functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/l...
JavaScript
/** This file is part of KCFinder project * * @desc Clipboard functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org...
JavaScript
new Image().src = 'themes/default/img/loading.gif'; // preload animated gif
JavaScript
new Image().src = 'themes/dark/img/loading.gif'; // preload animated gif
JavaScript
jQuery(document).ready(function ($) { $(':checkbox[name="create"]').on('click',function () { var $elem = $('#create-menu-item-container'); if ($(this).is(':checked')) { $elem.show(); } else { $elem.hide(); } }).triggerHandler('click'); });
JavaScript
$(document).ready(function () { if ($('#external').is(':checked')) { $('#file-external').show(); $('#external-filesize').show(); $('#file-internal').hide(); } else { $('#file-external').hide(); $('#external-filesize').hide(); $('#file-internal').show(); } ...
JavaScript
/** * Cursorposition in einem Textfeld bestimmen * * @returns {*} */ jQuery.fn.getCaretPosition = function () { if (this[0].selectionStart) { return this[0].selectionStart; } else if (document.selection) { this[0].focus(); var r = document.selection.createRange(); ...
JavaScript
jQuery(document).ready(function ($) { $(".thumbnail").fancybox({ type: 'image', padding: 0, nextClick: true, arrows: true, loop: true }); });
JavaScript
jQuery(document).ready(function ($) { $('input[name="overlay"]').bind('click',function () { var $elem = $('#comments-container'); if ($(this).val() == 1) { $elem.hide(); } else { $elem.show(); } }).filter(':checked').trigger('click'); });
JavaScript
$(document).ready(function () { var alias = $('#alias').parents('div.control-group'); var module = $('#module-container'); var hints = $('#link-hints'); var link = $('#link-container'); var articles = $('#articles-container'); var target = $('#target-container'); var articlesPattern = /^arti...
JavaScript
jQuery(document).ready(function ($) { var $parent = $('#parent_id'); // Nur die dem Block zugehörigen übergeordneten Seiten anzeigen $parent.find('optgroup').hide(); var $blockId = $('#block-id'), defaultBlock = $blockId.find('option:selected').index() || 0; $blockId.change(function () { ...
JavaScript
jQuery(document).ready(function ($) { $('#notify').bind('change',function () { var $elem = $('#notify-email').parents('.form-group'); if ($(this).val() == 0) { $elem.hide(); } else { $elem.show(); } }).children('option:selected').trigger('change');...
JavaScript
var cssClassName = 'info'; /** * Marks all visible results * * @param $markAllElem * @param name * @param action */ function markEntries($markAllElem, name, action) { var fields = $markAllElem.parents('thead:first').next('tbody').find('input[name="' + name + '[]"]:visible'); jQuery.each(fiel...
JavaScript
jQuery(document).ready(function ($) { $('#redirect-message').delay(4000).animate({ height: 'hide' }); });
JavaScript
jQuery(document).ready(function ($) { $('#page-break-form').find('.modal-footer button.btn-primary').click(function (e) { e.preventDefault(); var $tocTitle = $('#toc-title'), text; if ($tocTitle.val().length > 0) { text = '<hr class="page-break" title="' + $...
JavaScript
/** * Marks options as selected * * @param action */ function mark_options(action) { var $elem = $('form #tables option'); if (action === 'add') { $elem.attr('selected', true); } else { $elem.removeAttr('selected'); } } $(function () { $('input[name="export_type"]...
JavaScript
$(function () { $(':radio[name="mailer_smtp_auth"]').bind('onload change', function () { var $elem = $('#mailer-smtp-2'); if ($(this).val() == 1) { $elem.show(); } else { $elem.hide(); } }); $('#mailer-type').bind('change',function () { ...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>t<'row'<'col-xs-6'i><'col-xs-6'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } } ); /* Default class modification */ $.exte...
JavaScript
jQuery(document).ready(function ($) { var $datepickerRange = $('[data-datepicker-range]'), $datepicker = $('[data-datepicker]'); if ($datepickerRange.length > 0) { $datepickerRange.each(function () { var datepickers = $datepickerRange.data('datepicker-range'); i...
JavaScript
/** * Simple AJAX form handler * * @param [customFormData] */ jQuery.fn.formSubmit = function (customFormData) { /** * Displays a loading layer * @private */ function _showLoadingLayer($form) { var $loadingLayer = $('#loading-layer'); if ($loadingLayer.length ===...
JavaScript
jQuery(document).ready(function ($) { var $errorBox = $('#error-box'); // At first, remove all previous validation error states $('form .form-group.has-error') .removeClass('has-error') .find('.validation-failed').remove(); // Next, highlight all input fields where the validati...
JavaScript
$(document).ready(function () { var $resourcesTable = $('#resources-table'); $resourcesTable.find('tbody tr:not(.sub-table-header)').hide(); $resourcesTable.find('.sub-table-header').click(function () { $(this).nextUntil('tr.sub-table-header').toggle(); var visibleLength = $resource...
JavaScript
$(document).ready(function () { $('input[name="action"]').bind('click',function () { if ($(this).val() == 1) { $('#test-newsletter').show(); } else { $('#test-newsletter').hide(); } }).filter(':checked').trigger('click'); });
JavaScript
jQuery(document).ready(function ($) { $('input[name="readmore"]').on('click',function () { var $elem = $('#readmore-container'); if ($(this).val() == 1) { $elem.show(); } else { $elem.hide(); } }).filter(':checked').click(); });
JavaScript
/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to bu...
JavaScript
/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#...
JavaScript
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */
JavaScript
/** * Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ // This file contains style definitions that can be used by CKEditor plugins. // // The most common use for it is the "stylescombo" plugin, which shows a combo ...
JavaScript
/** This file is part of KCFinder project * * @desc File related functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource....
JavaScript
/** This file is part of KCFinder project * * @desc Context menus * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/licenses/...
JavaScript
/** This file is part of KCFinder project * * @desc Object initializations * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/...
JavaScript
/** This file is part of KCFinder project * * @desc My jQuery UI & Uniform fixes * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensourc...
JavaScript
/** This file is part of KCFinder project * * @desc Upload files using drag and drop * @package KCFinder * @version 3.12 * @author Forum user (updated by Pavel Tzonkov) * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opens...
JavaScript
// @author Rich Adams <rich@richadams.me> // Implements a tap and hold functionality. If you click/tap and release, it will trigger a normal // click event. But if you click/tap and hold for 1s (default), it will trigger a taphold event instead. ;(function($) { // Default options var defaults = { dura...
JavaScript
/** This file is part of KCFinder project * * @desc Helper functions integrated in jQuery * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://...
JavaScript
/** This file is part of KCFinder project * * @desc Helper MD5 checksum function * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensourc...
JavaScript
/** This file is part of KCFinder project * * @desc Miscellaneous functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource...
JavaScript
/** This file is part of KCFinder project * * @desc Base JavaScript object properties * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://open...
JavaScript
/** This file is part of KCFinder project * * @desc Right Click jQuery Plugin * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.o...
JavaScript
/** This file is part of KCFinder project * * @desc Folder related functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensourc...
JavaScript
/* Uniform v2.1.2 Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC http://pixelmatrixdesign.com Requires jQuery 1.3 or newer Much thanks to Thomas Reynolds and Buck Wilson for their help and advice on this. Disabling text selection is made possible by Mathias Bynens <http://mathiasbynens.be/> and his noSelect p...
JavaScript
/** This file is part of KCFinder project * * @desc Settings panel functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensourc...
JavaScript
/** This file is part of KCFinder project * * @desc User Agent jQuery Plugin * @package KCFinder * @version 3.10 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.or...
JavaScript
/** This file is part of KCFinder project * * @desc User Agent jQuery Plugin * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.or...
JavaScript
/** This file is part of KCFinder project * * @desc Image viewer * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/licenses/L...
JavaScript
/** This file is part of KCFinder project * * @desc Dialog boxes functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource....
JavaScript
/** This file is part of KCFinder project * * @desc Toolbar functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/l...
JavaScript
/** This file is part of KCFinder project * * @desc Clipboard functionality * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org...
JavaScript
new Image().src = 'themes/default/img/loading.gif'; // preload animated gif
JavaScript
new Image().src = 'themes/dark/img/loading.gif'; // preload animated gif
JavaScript
jQuery(document).ready(function ($) { $(':checkbox[name="create"]').on('click',function () { var $elem = $('#create-menu-item-container'); if ($(this).is(':checked')) { $elem.show(); } else { $elem.hide(); } }).triggerHandler('click'); });
JavaScript
$(document).ready(function () { if ($('#external').is(':checked')) { $('#file-external').show(); $('#external-filesize').show(); $('#file-internal').hide(); } else { $('#file-external').hide(); $('#external-filesize').hide(); $('#file-internal').show(); } ...
JavaScript
/** * Cursorposition in einem Textfeld bestimmen * * @returns {*} */ jQuery.fn.getCaretPosition = function () { if (this[0].selectionStart) { return this[0].selectionStart; } else if (document.selection) { this[0].focus(); var r = document.selection.createRange(); ...
JavaScript
jQuery(document).ready(function ($) { $(".thumbnail").fancybox({ type: 'image', padding: 0, nextClick: true, arrows: true, loop: true }); });
JavaScript
jQuery(document).ready(function ($) { $('input[name="overlay"]').bind('click',function () { var $elem = $('#comments-container'); if ($(this).val() == 1) { $elem.hide(); } else { $elem.show(); } }).filter(':checked').trigger('click'); });
JavaScript
$(document).ready(function () { var alias = $('#alias').parents('div.control-group'); var module = $('#module-container'); var hints = $('#link-hints'); var link = $('#link-container'); var articles = $('#articles-container'); var target = $('#target-container'); var articlesPattern = /^arti...
JavaScript
jQuery(document).ready(function ($) { var $parent = $('#parent_id'); // Nur die dem Block zugehörigen übergeordneten Seiten anzeigen $parent.find('optgroup').hide(); var $blockId = $('#block-id'), defaultBlock = $blockId.find('option:selected').index() || 0; $blockId.change(function () { ...
JavaScript
jQuery(document).ready(function ($) { $('#notify').bind('change',function () { var $elem = $('#notify-email').parents('.form-group'); if ($(this).val() == 0) { $elem.hide(); } else { $elem.show(); } }).children('option:selected').trigger('change');...
JavaScript
var cssClassName = 'info'; /** * Marks all visible results * * @param $markAllElem * @param name * @param action */ function markEntries($markAllElem, name, action) { var fields = $markAllElem.parents('thead:first').next('tbody').find('input[name="' + name + '[]"]:visible'); jQuery.each(fiel...
JavaScript
jQuery(document).ready(function ($) { $('#redirect-message').delay(4000).animate({ height: 'hide' }); });
JavaScript
jQuery(document).ready(function ($) { $('#page-break-form').find('.modal-footer button.btn-primary').click(function (e) { e.preventDefault(); var $tocTitle = $('#toc-title'), text; if ($tocTitle.val().length > 0) { text = '<hr class="page-break" title="' + $...
JavaScript
/** * Marks options as selected * * @param action */ function mark_options(action) { var $elem = $('form #tables option'); if (action === 'add') { $elem.attr('selected', true); } else { $elem.removeAttr('selected'); } } $(function () { $('input[name="export_type"]...
JavaScript
$(function () { $(':radio[name="mailer_smtp_auth"]').bind('onload change', function () { var $elem = $('#mailer-smtp-2'); if ($(this).val() == 1) { $elem.show(); } else { $elem.hide(); } }); $('#mailer-type').bind('change',function () { ...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>t<'row'<'col-xs-6'i><'col-xs-6'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } } ); /* Default class modification */ $.exte...
JavaScript