code
stringlengths
1
2.08M
language
stringclasses
1 value
// $Id: better_formats_node_type_form.js,v 1.4.2.3 2009/05/31 17:53:41 dragonwize Exp $ /** * @file * Enhances the default format selection on content type edit forms. * * Fixes bug that shows weight field when drag and drop is enabled * because the field is hidden by default. * Also hides formats that are not a...
JavaScript
// $Id: profile.action.js,v 1.1.2.1 2009/10/08 21:37:55 kratib Exp $ (function ($) { // START jQuery Drupal.vbo = Drupal.vbo || {}; Drupal.vbo.profileAction = Drupal.vbo.profileAction || {}; Drupal.vbo.profileAction.updateField = function(checkbox, direct) { var id = checkbox.id.replace('-check', ''); if ((checkb...
JavaScript
// $Id: fields.action.js,v 1.1.2.5 2009/12/08 00:50:39 kratib Exp $ (function ($) { // START jQuery Drupal.vbo = Drupal.vbo || {}; Drupal.vbo.fieldsAction = Drupal.vbo.fieldsAction || {}; Drupal.vbo.fieldsAction.updateToggler = function(toggler, direct) { var parent = $(toggler).parents('tr')[0]; if ((toggler.che...
JavaScript
(function ($) { // START jQuery Drupal.vbo = Drupal.vbo || {}; Drupal.vbo.profileAction = Drupal.vbo.profileAction || {}; Drupal.vbo.profileAction.updateField = function(checkbox, direct) { var id = checkbox.id.replace('-check', ''); if ((checkbox.checked && direct) || (!checkbox.checked && !direct)) { $('#'+...
JavaScript
(function ($) { // START jQuery Drupal.vbo = Drupal.vbo || {}; Drupal.vbo.fieldsAction = Drupal.vbo.fieldsAction || {}; Drupal.vbo.fieldsAction.updateToggler = function(toggler, direct) { var parent = $(toggler).parents('tr')[0]; if ((toggler.checked && direct) || (!toggler.checked && !direct)) { $('.fields-a...
JavaScript
(function ($) { // START jQuery Drupal.vbo = Drupal.vbo || {}; Drupal.behaviors.vbo = function(context) { // Force Firefox to reload the page if Back is hit. // https://developer.mozilla.org/en/Using_Firefox_1.5_caching window.onunload = function(){} // Prepare VBO forms for processing. $('form.views-bulk-...
JavaScript
/* http://www.JSON.org/json2.js 2010-11-17 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE...
JavaScript
(function ($) { // START jQuery Drupal.vbo = Drupal.vbo || {}; Drupal.vbo.action = Drupal.vbo.action || {}; Drupal.vbo.action.updateOperations = function(vid, trigger) { var options = ""; if (Drupal.settings.vbo.action.views_operations[vid] == undefined || Drupal.settings.vbo.action.views_operations[vid].length =...
JavaScript
// $Id: views_bulk_operations.js,v 1.1.4.19 2010/09/15 17:23:35 kratib Exp $ (function ($) { // START jQuery Drupal.vbo = Drupal.vbo || {}; Drupal.vbo.selectAll = function() { var table = this; var form = $(table).parents('form'); var select = $('th.select-all', table).click(function() { setSelectAll(false...
JavaScript
// $Id: views_bulk_operations.action.js,v 1.1.2.5 2010/06/07 14:50:10 kratib Exp $ (function ($) { // START jQuery Drupal.vbo = Drupal.vbo || {}; Drupal.vbo.action = Drupal.vbo.action || {}; Drupal.vbo.action.updateOperations = function(vid, trigger) { var options = ""; if (Drupal.settings.vbo.action.views_operat...
JavaScript
(function ($) { /** * Behavior to add "Insert" buttons. */ Drupal.behaviors.insert = function(context) { if (typeof(insertTextarea) == 'undefined') { insertTextarea = $('#edit-body').get(0) || false; } // Keep track of the last active textarea (if not using WYSIWYG). $('.node-form textarea:not([name$="...
JavaScript
// $Id: password_policy.js,v 1.2 2008/02/10 16:35:40 miglius Exp $ /** * Attach handlers to evaluate the strength of any password fields and to check * that its confirmation is correct. */ Drupal.behaviors.password = function(context) { var translate = Drupal.settings.password_policy; $("input.password-field:no...
JavaScript
/** * * MD5 (Message-Digest Algorithm) * http://www.webtoolkit.info/ * **/ var MD5 = function (string) { function RotateLeft(lValue, iShiftBits) { return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits)); } function AddUnsigned(lX,lY) { var lX4,lY4,lX8,lY8,lResult; lX8 = (lX & 0x80000000); lY8 = (lY & 0...
JavaScript
// $Id: tabs.js,v 1.4.2.1 2010/03/10 20:08:58 merlinofchaos Exp $ /** * @file tabs.js * jQuery UI Tabs (Tabs 3) * * This is nothing more than the pure jquery UI tabs implementation. * It has been implemented under the Drupal.Views.Tabs namespace to * avoid conflicts with alternatve versions of jquery, jquery UI....
JavaScript
// $Id: dependent.js,v 1.9.2.1 2009/11/18 02:43:47 merlinofchaos Exp $ /** * @file dependent.js * * Written by dmitrig01 (Dmitri Gaskin) for Views; this provides dependent * visibility for form items in Views' ajax forms. * * To your $form item definition add: * - '#process' => array('views_process_dependency'),...
JavaScript
// $Id: ajax_view.js,v 1.19.2.5 2010/03/25 18:25:28 merlinofchaos Exp $ /** * @file ajaxView.js * * Handles AJAX fetching of views, including filter submission and response. */ Drupal.Views.Ajax = Drupal.Views.Ajax || {}; /** * An ajax responder that accepts a packet of JSON data and acts appropriately. * * T...
JavaScript
// $Id: base.js,v 1.11.2.1 2010/03/10 20:08:58 merlinofchaos Exp $ /** * @file base.js * * Some basic behaviors and utility functions for Views. */ Drupal.Views = {}; /** * jQuery UI tabs, Views integration component */ Drupal.behaviors.viewsTabs = function (context) { $('#views-tabset:not(.views-processed)')...
JavaScript
// $Id: ajax.js,v 1.26.2.8 2010/04/08 21:29:59 merlinofchaos Exp $ /** * @file ajax_admin.js * * Handles AJAX submission and response in Views UI. */ Drupal.Views.Ajax = Drupal.Views.Ajax || {}; /** * Handles the simple process of setting the ajax form area with new data. */ Drupal.Views.Ajax.setForm = function...
JavaScript
// $Id: admin.menu.js,v 1.1.2.9 2010/08/01 05:07:31 yhahn Exp $ Drupal.behaviors.adminToolbarMenu = function(context) { if (jQuery().drilldown) { $('#admin-toolbar div.admin-block:has(ul.menu):not(.admin-toolbar-menu)') .addClass('admin-toolbar-menu') .each(function() { var menu = $(this); ...
JavaScript
// $Id: admin.devel.js,v 1.1.2.1 2009/11/20 02:44:32 yhahn Exp $ Drupal.behaviors.adminDevel = function(context) { $('#block-admin-devel:not(.admin-processed)').each(function() { var devel = $(this); devel.addClass('admin-processed'); // Pull logged values from footer output into the block. $('li', ...
JavaScript
// $Id: admin.toolbar.js,v 1.1.2.9 2010/07/31 21:22:44 yhahn Exp $ Drupal.behaviors.adminToolbar = function(context) { $('#admin-toolbar:not(.processed)').each(function() { var toolbar = $(this); toolbar.addClass('processed'); // Set initial toolbar state. Drupal.adminToolbar.init(toolbar); // ...
JavaScript
// $Id: jquery.drilldown.js,v 1.1.2.10 2010/08/06 15:31:44 yhahn Exp $ /** * Generic menu drilldown plugin for standard Drupal menu tree markup. * The plugin should be inited against a DOM element that *contains* * a Drupal ul.menu tree. Example: * * $('div.block-menu').drilldown('init', params); * * You mu...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @examp...
JavaScript
// $Id: context_reaction_block.js,v 1.1.2.23 2010/08/05 20:09:11 yhahn Exp $ Drupal.behaviors.contextReactionBlock = function(context) { $('form.context-editor:not(.context-block-processed)') .addClass('context-block-processed') .each(function() { var id = $(this).attr('id'); Drupal.contextBlockE...
JavaScript
// $Id: context_ui.js,v 1.3.2.5.2.2.2.3 2010/01/08 23:54:14 yhahn Exp $ /** * Context plugin form. */ function DrupalContextPlugins(form) { this.form = form; // Sync the form selector and state field with the list of plugins currently enabled. this.setState = function() { var state = []; $('.context-p...
JavaScript
// $Id: jquery.pageEditor.js,v 1.1.2.1 2010/01/08 20:48:22 yhahn Exp $ /** * Generic pageEditor plugin. Allows an editor DOM object to trigger * init, start, and end events. Implementors can check whether the * editor is currently editing and bind handlers for the events triggered * by the editor. */ (function($)...
JavaScript
// $Id: context_layouts_reaction_block.js,v 1.1.2.1 2009/12/14 22:36:12 yhahn Exp $ Drupal.behaviors.contextLayoutsReactionBlock = function(context) { // ContextBlockForm: Init. $('.context-blockform-layout:not(.contextLayoutsProcessed)').each(function() { $(this).addClass('contextLayoutsProcessed'); $(thi...
JavaScript
/** * Provide the HTML to create the modal dialog. */ Drupal.theme.prototype.CToolsSampleModal = function () { var html = '' html += '<div id="ctools-modal" class="popups-box">'; html += ' <div class="ctools-modal-content ctools-sample-modal-content">'; html += ' <table cellpadding="0" cellspacing="0" id="...
JavaScript
// $Id: modal.js,v 1.17.2.20 2010/10/20 19:22:08 merlinofchaos Exp $ /** * @file * * Implement a modal form. * * @see modal.inc for documentation. * * This javascript relies on the CTools ajax responder. */ (function ($) { // Make sure our objects are defined. Drupal.CTools = Drupal.CTools || {}; Drupal....
JavaScript
// $Id: ajax-responder.js,v 1.18.2.24 2010/08/27 22:09:48 merlinofchaos Exp $ /** * @file * * CTools flexible AJAX responder object. */ (function ($) { Drupal.CTools = Drupal.CTools || {}; Drupal.CTools.AJAX = Drupal.CTools.AJAX || {}; Drupal.CTools.AJAX.commands = Drupal.CTools.AJAX.commands || {}; Drupal...
JavaScript
// $Id: dropdown.js,v 1.3.2.1 2009/10/05 23:38:33 merlinofchaos Exp $ /** * @file * Implement a simple, clickable dropdown menu. * * See dropdown.theme.inc for primary documentation. * * The javascript relies on four classes: * - The dropdown must be fully contained in a div with the class * ctools-dropdown. ...
JavaScript
// $Id: dependent.js,v 1.4.2.2 2009/10/05 23:38:33 merlinofchaos Exp $ /** * @file * * Written by dmitrig01 (Dmitri Gaskin) for CTools; this provides dependent * visibility for form items in CTools' ajax forms. * * To your $form item definition add: * - '#process' => array('CTools_process_dependency'), * - Add ...
JavaScript
// $Id: jump-menu.js,v 1.1.2.2 2009/10/28 01:53:15 merlinofchaos Exp $ (function($) { Drupal.behaviors.CToolsJumpMenu = function(context) { $('.ctools-jump-menu-hide:not(.ctools-jump-menu-processed)') .addClass('ctools-jump-menu-processed') .hide(); $('.ctools-jump-menu-change:not(.ctools-jump-m...
JavaScript
// $Id: stylizer.js,v 1.1.2.1 2010/02/17 01:04:50 merlinofchaos Exp $ (function ($) { Drupal.CTools = Drupal.CTools || {}; Drupal.CTools.Stylizer = {}; Drupal.CTools.Stylizer.addFarbtastic = function(context) { // This behavior attaches by ID, so is only valid once on a page. if ($('ctools_stylizer_colo...
JavaScript
// $Id: auto-submit.js,v 1.1.2.2 2010/06/16 16:15:00 merlinofchaos Exp $ /** * To make a form auto submit, all you have to do is 3 things: * * ctools_add_js('auto-submit'); * * On gadgets you want to auto-submit when changed, add the ctools-auto-submit * class. With FAPI, add: * @code * '#attributes' => array...
JavaScript
// $Id: collapsible-div.js,v 1.6.2.2 2009/10/09 17:10:00 merlinofchaos Exp $ /** * @file * Javascript required for a simple collapsible div. * * Creating a collapsible div with this doesn't take too much. There are * three classes necessary: * * - ctools-collapsible-container: This is the overall container that ...
JavaScript
// $Id: page-list.js,v 1.3 2009/07/12 18:32:04 merlinofchaos Exp $ /** * Provide some extra responses for the page list so we can have automatic * on change. */ Drupal.behaviors.PageManagerList = function() { var timeoutID = 0; $('form#page-manager-list-pages-form select:not(.pm-processed)') .addClass('pm-...
JavaScript
// $Id: pathauto.js,v 1.4.2.2 2010/02/10 21:50:30 greggles Exp $ if (Drupal.jsEnabled) { $(document).ready(function() { if ($("#edit-pathauto-perform-alias").size() && $("#edit-pathauto-perform-alias").attr("checked")) { // Disable input and hide its description. $("#edit-path").attr("disabled","disab...
JavaScript
// $Id: boxes.js,v 1.2.2.4 2010/08/05 20:16:28 yhahn Exp $ Drupal.behaviors.boxes = function(context) { Drupal.CTools.AJAX.commands.getBlock = function(data) { $.ajax({ type: "GET", url: data.url, data: { 'boxes_delta': data.delta }, global: true, success: Drupal.CTools.AJAX.respond...
JavaScript
if (Drupal.jsEnabled) { $(document).ready(function() { // I am assuming that all of the links are refering to an internal node // add the attribute rel=facebox to all of the links I want to have a popup $('div.view-field > a').attr('class', 'popup'); // on click of a link $('a.popup').cli...
JavaScript
// $Id: calendar_overlap.js,v 1.1.2.1 2010/11/28 23:31:28 karens Exp $ /* * Create the splitter, set the viewport size, and set the position of the scrollbar to the first item. */ Drupal.behaviors.calendarSetScroll = function (context) { // Make multi-day resizable - stolen/borrowed from textarea.js $('.header-...
JavaScript
// $Id: calendar_colorpicker.js,v 1.1.4.3 2008/11/21 22:04:56 karens Exp $ /** * Implementation of hook_elements. * * Much of the colorpicker code was adapted from the Colorpicker module. * That module has no stable release yet nor any D6 branch. */ /* * Bind the colorpicker event to the form element */ Drupal...
JavaScript
Drupal.behaviors.activityLogAdmin = function (context) { // Make sure we can run context.find(). var ctxt = $(context); // Control toggling visibility of the acting UID field. var acting_uid = new Array(); acting_uid['group_method'] = false; acting_uid['stream_owner'] = false; acting_uid['viewer'] ...
JavaScript
Drupal.behaviors.activityLogAdmin = function (context) { // Make sure we can run context.find(). var ctxt = $(context); ctxt.find('.activity-log-collection-more').click(function(e) { e.preventDefault(); var parent = $(this).parents('.activity-log-collection'); var more = parent.find('.activity-log-col...
JavaScript
/*global Drupal,jQuery */ (function($) { "use strict"; Drupal.imagecache = { /** * Remove the files directory prefix from a path. */ stripFileDirectory: function(path) { var filePath = Drupal.settings.imagecache.filesDirectory; if (path.substr(0, filePath.length + 1) === filePath + '...
JavaScript
// $Id: ajax_load.js,v 1.14 2010/12/02 20:19:22 markuspetrux Exp $ (function ($) { Drupal.AjaxLoad = Drupal.AjaxLoad || { externalStyles: [], externalScripts: [], loadPending: [] }; /** * Load JavaScript and CSS files and data. */ Drupal.AjaxLoad.loadFiles = function (target, response) { // Initialize the list o...
JavaScript
// $Id: ajax_load_example.js,v 1.2 2009/09/20 14:01:06 markuspetrux Exp $ (function ($) { Drupal.AjaxLoadExample = Drupal.AjaxLoadExample || {}; /** * Ajax load example behavior. */ Drupal.behaviors.AjaxLoadExample = function (context) { $('a.ajax-load-example:not(.ajax-load-example-processed)', context) .e...
JavaScript
// $Id: tagging.plugin.js,v 1.12.2.6 2010/10/17 10:23:24 eugenmayer Exp $ /** * @author Eugen Mayer (http://kontextwork.de) * @Copyright 2010 KontextWork */ (function($) { $.fn.tagging = function() { return this.each( function(){ // **************** Init *****************/ var context = get_context...
JavaScript
// $Id: tagging.init.js,v 1.12.2.6 2010/10/17 10:23:24 eugenmayer Exp $ // Author: Eugen Mayer (http://kontextwork.de) // Copyright 2010 Drupal.behaviors.tagging = function() { $('input.tagging-widget-input:not(.tagging-processed)').tagging(); }
JavaScript
/* * Async Treeview 0.1 - Lazy-loading extension for Treeview * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses...
JavaScript
// $Id: date_popup.js,v 1.1.2.4 2010/11/20 12:03:36 karens Exp $ /** * Attaches the calendar behavior to all required fields */ Drupal.behaviors.date_popup = function (context) { for (var id in Drupal.settings.datePopup) { $('#'+ id).bind('focus', Drupal.settings.datePopup[id], function(e) { if (!$(this)...
JavaScript
// $Id: date_timezone.js,v 1.1.4.2.2.1 2008/06/20 12:25:30 karens Exp $ /** * Set the client's system time zone as default values of form fields. */ Drupal.setDefaultTimezone = function() { var dateString = Date(); // In some client environments, date strings include a time zone // abbreviation which can be in...
JavaScript
/** * Show/hide custom format sections on the date-time settings page. */ Drupal.behaviors.dateDateTime = function(context) { // Show/hide custom format depending on the select's value. $('select.date-format:not(.date-time-processed)', context).change(function() { $(this).addClass('date-time-processed').paren...
JavaScript
// Javascript for user_relationships_ui.module // Creating our own namespace for the module Drupal.user_relationships_ui = {}; if (Drupal.jsEnabled) { $(document).ready(function() { // Any links that we have created in the ui module are // Given a click handler so you can display the popup correctly $('...
JavaScript
$(document).ready(function() { // link demos $(".demoflow div.wrapper").click(function() { var demo = $(this).children('img').attr('_demo'); if (demo) { location.href = '/repository/real-world/' + demo; }else { //alert('Under construction!'); } }); if ($("div.demoflow").size()) {...
JavaScript
/* JS Beautifier --------------- $Date: 2008-04-21 16:13:36 +0300 (Mon, 21 Apr 2008) $ $Revision: 53 $ Written by Einars "elfz" Lielmanis, <elfz@laacz.lv> http://elfz.laacz.lv/beautify/ Originally converted to javascript by Vital, <vital76@gmail.com> http://my.opera.com/Vital/blog...
JavaScript
var uid = 0; /** * Render a demo template page * @author Eduardo Lundgren (braeker) * @param {Object} model */ var uiRenderDemo = function(model) { var title = model.title, renderAt = $(model.renderAt); function nl2br( str ) { return str.replace(/([^>])\n/g, '$1<br />\n'); } var js2html =...
JavaScript
$(document).ready(function() { $('.component-links a').history(function() { loadDemo( $(this).attr('href').replace(/^#/, "") ); }); var instructions = $("#containerDemo").html(); $.ajaxHistory.initialize(function() { $("#containerDemo").html(instructions); }); });
JavaScript
/** * History/Remote - jQuery plugin for enabling history support and bookmarking * @requires jQuery v1.0.3 * * http://stilbuero.de/jquery/history/ * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * h...
JavaScript
/* * jQuery blockUI plugin * Version 1.33 (09/14/2007) * @requires jQuery v1.1.1 * * $Id: jquery.blockUI.js 3291 2007-09-14 23:56:25Z malsup $ * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/l...
JavaScript
/* Copyright (c) 2007 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version: @VERSION * Requires jQuery 1.1.3+ * Docs: http://...
JavaScript
/* * The very first increment of Droppables&Draggables demo. The code is going to * be more concise (remove unnecessary code repetitions etc.). And imho the * photo management is a good candidate for demonstration of more jQuery UI * components (sortables, selectables...). More to come... * */ $(window)....
JavaScript
$(document).ready(function() { $("div.effect") .hover(function() { $(this).addClass("hover"); }, function() { $(this).removeClass("hover"); }) ; var effect = function(el, n, o) { $.extend(o, { easing: "easeOutQuint" }); $(el).bind("click", function() { $(this).addCla...
JavaScript
var getSizeImg = function(src) { var timg = $('<img>').attr('src', src).css({ position: 'absolute', top: '-1000px', left: '-1000px' }).appendTo('body'); var size = {width: timg.get(0).offsetWidth, height: timg.get(0).offsetHeight }; try { document.body.removeChild(timg[0]); } ...
JavaScript
/* * tabs unit tests */ (function($) { // // Tabs Test Helper Functions // var defaults = { ajaxOptions: null, cache: false, cookie: null, deselectable: false, deselectableClass: 'ui-tabs-deselectable', disabled: [], disabledClass: 'ui-tabs-disabled', event: 'click', fx: null, hideClass: ...
JavaScript
/* * selectable unit tests */ (function($) { // // Selectable Test Helper Functions // var defaults = { autoRefresh: true, disabled: false, filter: '*' }; var el; var drag = function(dx, dy) { var off = el.offset(), pos = { clientX: off.left, clientY: off.top }; el.simulate("mousedown", pos)...
JavaScript
/* * datepicker unit tests */ (function($) { module('datepicker'); function equalsDate(d1, d2, message) { if (!d1 || !d2) { ok(false, message + ' - missing date'); return; } d1 = new Date(d1.getFullYear(), d1.getMonth(), d1.getDate()); d2 = new Date(d2.getFullYear(), d2.getMonth(), d2.getDate(...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. ...
JavaScript
/* * slider unit tests */ (function($) { // // Selectable Test Helper Functions // var defaults = { animate: false, axis: "???", handle: ".ui-slider-handle", handles: "???", disabled: false, max: 100, min: 0, range: false, startValue: "???", stepping: "???", steps: 0 }; var keyCodes...
JavaScript
$(function() { $('body').prepend( '<h1 id="header">' + document.title + '</h1>' + '<h2 id="banner"></h2>' + '<h2 id="userAgent"></h2>' + '<ol id="tests"></ol>' ); });
JavaScript
/* * dialog unit tests */ (function($) { // // Dialog Test Helper Functions // var defaults = { autoOpen: true, autoResize: true, buttons: {}, closeOnEscape: true, closeText: 'close', disabled: false, dialogClass: undefined, draggable: true, height: 200, maxHeight: undefined, maxWidth: ...
JavaScript
/* * accordion unit tests */ (function($) { module("accordion"); jQuery.ui.accordion.defaults.animated = false; function state(accordion) { var args = $.makeArray(arguments).slice(1); $.each(args, function(i, n) { equals(accordion.find("div").eq(i).is(":visible"), n); }); } $.fn.triggerEvent ...
JavaScript
/* * common UI unit tests */ (function($) { var plugins = [ "accordion", "datepicker", "dialog", "draggable", "droppable", "resizable", "selectable", "slider", "sortable", "tabs" ]; module("version"); test("core", function() { equals($.ui.version, "@VERSION", "$.ui.version"); }); ...
JavaScript
/* * jquery.simulate - simulate browser mouse and keyboard events * * Copyright (c) 2007 Eduardo Lundgren (eduardolundgren@gmail.com) * and Richard D. Worth (rdworth@gmail.com) * * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licens...
JavaScript
/* * core unit tests */ (function($) { module("selectors"); test("tabbable - enabled elements", function() { expect(10); ok( $('#input1-1').is(':tabbable'), 'input, no type'); ok( $('#input1-2').is(':tabbable'), 'input, type text'); ok( $('#input1-3').is(':tabbable'), 'input, type checkbox'); ok(...
JavaScript
/* * draggable unit tests */ (function($) { // // Draggable Test Helper Functions // var defaults = { appendTo: "parent", axis: false, cancel: ":input", connectToSortable: false, containment: false, cursor: "default", cursorAt: null, delay: 0, disabled: false, distance: 1, grid: false, ...
JavaScript
/* * resizable tests */ (function($) { // // Resizable Test Helper Functions // var defaults = { animate: false, animateDuration: 'slow', animateEasing: 'swing', alsoResize: false, aspectRatio: false, autoHide: false, cancel: ':input', containment: false, delay: 0, disabled: false, disa...
JavaScript
/* * QUnit - jQuery unit testrunner * * http://docs.jquery.com/QUnit * * Copyright (c) 2008 John Resig, Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Id: testrunner.js 6173 2009-02-02 20:09:32Z jeresig $ */ (function($) { // Tests fo...
JavaScript
$(document).ready(function() { $("div.effect") .hover(function() { $(this).addClass("hover"); }, function() { $(this).removeClass("hover"); }) ; var effect = function(el, n, o) { $.extend(o, { easing: "easeOutQuint" }); $(el).bind("click", function() { $(this).addCla...
JavaScript
/* * droppable unit tests */ (function($) { // // Droppable Test Helper Functions // var defaults = { accept: null, activeClass: null, cssNamespace: "ui", disabled: false, greedy: false, hoverClass: null, scope: "default", tolerance: "intersect" }; var el, drg; function shouldBeDroppab...
JavaScript
/* * sortable unit tests */ (function($) { // // Sortable Test Helper Functions // var defaults = { appendTo: "parent", cancel: ":input", delay: 0, disabled: false, distance: 1, dropOnEmpty: true, helper: "original", items: "> *", scroll: true, scrollSensitivity: 20, scrollSpeed: 20, ...
JavaScript
/* * jQuery UI Effects Pulsate 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Pulsate * * Depends: * effects.core.js */ (function($) { $.effects.puls...
JavaScript
/* * jQuery UI Effects Explode 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Explode * * Depends: * effects.core.js */ (function($) { $.effects.expl...
JavaScript
/* * jQuery UI Effects Pulsate 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Pulsate * * Depends: * effects.core.js */ eval(function(p,a,c,k,e,d){e=func...
JavaScript
/* * jQuery UI Effects Highlight 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Highlight * * Depends: * effects.core.js */ eval(function(p,a,c,k,e,d){e=...
JavaScript
/* * jQuery UI Effects Blind 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Blind * * Depends: * effects.core.js */ eval(function(p,a,c,k,e,d){e=function...
JavaScript
/* * jQuery UI Selectable 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Selectables * * Depends: * ui.core.js */ (function($) { $.widget("ui.selectable", $....
JavaScript
/* * jQuery UI Effects Fold 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Fold * * Depends: * effects.core.js */ (function($) { $.effects.fold = fun...
JavaScript
/* * jQuery UI Droppable 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Droppables * * Depends: * ui.core.js * ui.draggable.js */ (function($) { $.widget("...
JavaScript
/* * jQuery UI Effects Bounce 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Bounce * * Depends: * effects.core.js */ (function($) { $.effects.bounce...
JavaScript
/* * jQuery UI Effects Drop 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Drop * * Depends: * effects.core.js */ (function($) { $.effects.drop = fun...
JavaScript
/* * jQuery UI Effects Clip 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Clip * * Depends: * effects.core.js */ (function($) { $.effects.clip = fun...
JavaScript
/* * jQuery UI Slider 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Slider * * Depends: * ui.core.js */ (function($) { $.fn.unwrap = $.fn.unwrap || function...
JavaScript
/* * jQuery UI Effects Transfer 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Transfer * * Depends: * effects.core.js */ (function($) { $.effects.tr...
JavaScript
/* * jQuery UI 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ ;(function($) { var _remove = $.fn.remove, isFF2 = $.browser.mozilla && (parseFloat($.browser.ve...
JavaScript
/* * jQuery UI Effects Scale 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Scale * * Depends: * effects.core.js */ (function($) { $.effects.puff = f...
JavaScript
/* * jQuery UI Datepicker 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Datepicker * * Depends: * ui.core.js */ (function($) { // hide the namespace $.ext...
JavaScript
/* * jQuery UI Effects Slide 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Slide * * Depends: * effects.core.js */ (function($) { $.effects.slide = ...
JavaScript
/* * jQuery UI Sortable 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Sortables * * Depends: * ui.core.js */ (function($) { $.widget("ui.sortable", $.extend...
JavaScript
/* * jQuery UI Draggable 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Draggables * * Depends: * ui.core.js */ (function($) { $.widget("ui.draggable", $.ext...
JavaScript