code
stringlengths
1
2.08M
language
stringclasses
1 value
WYMeditor.STRINGS['pt'] = { Strong: 'Negrito', Emphasis: 'Itálico', Superscript: 'Sobrescrito', Subscript: 'Subsescrito', Ordered_List: 'Lista Numerada', Unordered_List: 'Lista Marcada', Indent: 'Aumentar Indentaçã', Outdent: 'Diminu...
JavaScript
WYMeditor.STRINGS['gl'] = { Strong: 'Moita énfase', Emphasis: 'Énfase', Superscript: 'Superíndice', Subscript: 'Subíndice', Ordered_List: 'Lista ordenada', Unordered_List: 'Lista sen ordenar', Indent: 'Aniñar', Outdent: 'Desaniñar', ...
JavaScript
WYMeditor.STRINGS['ca'] = { Strong: 'Ressaltar', Emphasis: 'Emfatitzar', Superscript: 'Superindex', Subscript: 'Subindex', Ordered_List: 'Llistat ordenat', Unordered_List: 'Llistat sense ordenar', Indent: 'Indentat', Outdent: 'Sense...
JavaScript
WYMeditor.STRINGS['he'] = { Strong: 'חזק', Emphasis: 'מובלט', Superscript: 'כתב עילי', Subscript: 'כתב תחתי', Ordered_List: 'רשימה ממוספרת', Unordered_List: 'רשימה לא ממוספרת', Indent: 'הזחה פנימה', Outdent: 'הזחה החוצה', Undo: ...
JavaScript
WYMeditor.STRINGS['sv'] = { Strong: 'Viktigt', Emphasis: 'Betoning', Superscript: 'Upphöjt', Subscript: 'Nedsänkt', Ordered_List: 'Nummerlista', Unordered_List: 'Punktlista', Indent: 'Indrag', Outdent: 'Utdrag', Undo: ...
JavaScript
WYMeditor.STRINGS['de'] = { Strong: 'Fett', Emphasis: 'Kursiv', Superscript: 'Text hochstellen', Subscript: 'Text tiefstellen', Ordered_List: 'Geordnete Liste einfügen', Unordered_List: 'Ungeordnete Liste einfügen', Indent: 'Einzug erhöhen', ...
JavaScript
WYMeditor.STRINGS['it'] = { Strong: 'Grassetto', Emphasis: 'Corsetto', Superscript: 'Apice', Subscript: 'Pedice', Ordered_List: 'Lista Ordinata', Unordered_List: 'Lista Puntata', Indent: 'Indenta', Outdent: 'Caccia', Undo: ...
JavaScript
WYMeditor.STRINGS['nl'] = { Strong: 'Sterk benadrukken', Emphasis: 'Benadrukken', Superscript: 'Bovenschrift', Subscript: 'Onderschrift', Ordered_List: 'Geordende lijst', Unordered_List: 'Ongeordende lijst', Indent: 'Inspringen', Outdent: ...
JavaScript
WYMeditor.STRINGS['es'] = { Strong: 'Resaltar', Emphasis: 'Enfatizar', Superscript: 'Superindice', Subscript: 'Subindice', Ordered_List: 'Lista ordenada', Unordered_List: 'Lista sin ordenar', Indent: 'Indentado', Outdent: 'Sin indent...
JavaScript
WYMeditor.STRINGS['pt-br'] = { Strong: 'Resaltar', Emphasis: 'Enfatizar', Superscript: 'Sobre escrito', Subscript: 'Sub escrito ', Ordered_List: 'Lista ordenada', Unordered_List: 'Lista desordenada', Indent: 'Indentado', Outdent: 'De...
JavaScript
WYMeditor.STRINGS['pl'] = { Strong: 'Nacisk', Emphasis: 'Emfaza', Superscript: 'Indeks górny', Subscript: 'Indeks dolny', Ordered_List: 'Lista numerowana', Unordered_List: 'Lista wypunktowana', Indent: 'Zwiększ wcięcie', Outdent: 'Zm...
JavaScript
WYMeditor.STRINGS['cs'] = { Strong: 'Tučné', Emphasis: 'Kurzíva', Superscript: 'Horní index', Subscript: 'Dolní index', Ordered_List: 'Číslovaný seznam', Unordered_List: 'Nečíslovaný seznam', Indent: 'Zvětšit odsazení', Outdent: 'Zme...
JavaScript
WYMeditor.STRINGS['hr'] = { Strong: 'Podebljano', Emphasis: 'Naglašeno', Superscript: 'Iznad', Subscript: 'Ispod', Ordered_List: 'Pobrojana lista', Unordered_List: 'Nepobrojana lista', Indent: 'Uvuci', Outdent: 'Izvuci', Undo: ...
JavaScript
WYMeditor.STRINGS['fi'] = { Strong: 'Lihavoitu', Emphasis: 'Korostus', Superscript: 'Yläindeksi', Subscript: 'Alaindeksi', Ordered_List: 'Numeroitu lista', Unordered_List: 'Luettelomerkit', Indent: 'Suurenna sisennystä', Outdent: 'Pi...
JavaScript
WYMeditor.STRINGS['bg'] = { Strong: 'Получер', Emphasis: 'Курсив', Superscript: 'Горен индекс', Subscript: 'Долен индекс', Ordered_List: 'Подреден списък', Unordered_List: 'Неподреден списък', Indent: 'Блок навътре', Outdent: 'Блок н...
JavaScript
WYMeditor.STRINGS['hu'] = { Strong: 'Félkövér', Emphasis: 'Kiemelt', Superscript: 'Felső index', Subscript: 'Alsó index', Ordered_List: 'Rendezett lista', Unordered_List: 'Rendezetlen lista', Indent: 'Bekezdés', Outdent: 'Bekezdés tö...
JavaScript
WYMeditor.STRINGS['en'] = { Strong: 'Strong', Emphasis: 'Emphasis', Superscript: 'Superscript', Subscript: 'Subscript', Ordered_List: 'Ordered List', Unordered_List: 'Unordered List', Indent: 'Indent', Outdent: 'Outdent', Undo: ...
JavaScript
/** * @version 0.5-rc1 * * WYMeditor : what you see is What You Mean web-based editor * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/ * Dual licensed under the MIT (MIT-license.txt) * and GPL (GPL-license.txt) licenses. * * For further information visit: * http://www.wymedit...
JavaScript
/*! * jQuery Cycle Plugin (with Transition Definitions) * Examples and documentation at: http://jquery.malsup.com/cycle/ * Copyright (c) 2007-2010 M. Alsup * Version: 2.9999.5 (10-APR-2012) * Dual licensed under the MIT and GPL licenses. * http://jquery.malsup.com/license.html * Requires: jQuery v1.3.2 or later ...
JavaScript
/* * jQuery clueTip plugin * Version 1.0.7 (January 28, 2010) * @requires jQuery v1.3+ * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /* * * Full list of options/settings can be found at the bottom of this ...
JavaScript
/*! * jQuery Peelback * Copyright 2011, Rob Flaherty * * Dual licensed under the MIT and GPL licenses * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ (function($) { $.Peelback = function(el, settings) { //Caching var base = this; base.$el = $...
JavaScript
/** * @preserve Galleria v 1.2.3 2011-04-14 * http://galleria.aino.se * * Copyright (c) 2011, Aino * Licensed under the MIT license. */ /*global jQuery, navigator, Galleria, Image */ (function( $ ) { // some references var undef, window = this, doc = window.document, $doc = $( doc ), // inter...
JavaScript
//Custom Validations $(function() { $.validator.addMethod("requiredGroup", function(value, element, params) { return $(element).parents("fieldset").find(':input:checked').size()>0; }, $.format("This field is required.")); $.validator.addMethod("money", function(value, element, params) { return this.opti...
JavaScript
/* ### jQuery Multiple File Upload Plugin v1.47 - 2010-03-26 ### * Home: http://www.fyneworks.com/jquery/multiple-file-upload/ * Code: http://code.google.com/p/jquery-multifile-plugin/ * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/...
JavaScript
/*! * jQuery blockUI plugin * Version 2.39 (23-MAY-2011) * @requires jQuery v1.2.3 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2010 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl....
JavaScript
// ---------------------------------------------------------------------------- // markItUp! Universal MarkUp Engine, JQuery plugin // v 1.1.x // Dual licensed under the MIT and GPL licenses. // ---------------------------------------------------------------------------- // Copyright (C) 2007-2010 Jay Salvat // http://...
JavaScript
/* * jQuery Nivo Slider v2.7.1 * http://nivo.dev7studios.com * * Copyright 2011, Gilbert Pellegrom * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * March 2010 */ (function($) { var NivoSlider = function(element, options){ //Defaults ...
JavaScript
/*! * jQuery Form Plugin * version: 2.82 (15-JUN-2011) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(functi...
JavaScript
/* Masked Input plugin for jQuery Copyright (c) 2007-2011 Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: 1.3 */ (function($) { var pasteEventName = ($.browser.msie ? 'paste' : 'input') + ".mask"; var iPhone = (window.orientation ...
JavaScript
/*! * jQuery Cycle Lite Plugin * http://malsup.com/jquery/cycle/lite/ * Copyright (c) 2008-2012 M. Alsup * Version: 1.6 (02-MAY-2012) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * Requires: jQuery v1.3.2 or later */...
JavaScript
// ---------------------------------------------------------------------------- // markItUp! // ---------------------------------------------------------------------------- // Copyright (C) 2008 Jay Salvat // http://markitup.jaysalvat.com/ // ------------------------------------------------------------------------...
JavaScript
// ---------------------------------------------------------------------------- // markItUp! // ---------------------------------------------------------------------------- // Copyright (C) 2008 Jay Salvat // http://markitup.jaysalvat.com/ // ---------------------------------------------------------------------------- ...
JavaScript
/** * @preserve Galleria Classic Theme 2011-02-14 * http://galleria.aino.se * * Copyright (c) 2011, Aino * Licensed under the MIT license. */ /*global jQuery, Galleria */ (function($) { Galleria.addTheme({ name: 'classic', author: 'Galleria', css: 'galleria.classic.css', defaults: { tr...
JavaScript
alert('plugin one nested js file');
JavaScript
alert('win sauce');
JavaScript
alert('I am a root level file!');
JavaScript
alert("Test App");
JavaScript
nested theme js file
JavaScript
root theme js file
JavaScript
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject = function() { var UNDEF = "undefined", OBJECT = "object", SHOCKWAVE_FLASH = "Shockwave Flash", SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlas...
JavaScript
BrowserHistoryUtils = { addEvent: function(elm, evType, fn, useCapture) { useCapture = useCapture || false; if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent) { var r = elm.attachEvent...
JavaScript
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject = function() { var UNDEF = "undefined", OBJECT = "object", SHOCKWAVE_FLASH = "Shockwave Flash", SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlas...
JavaScript
// Flash Player Version Detection - Rev 1.5 // Detect Client Browser type // Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved. var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var...
JavaScript
// $Revision: 1.49 $ // Vars Vars = function(qStr) { this.numVars = 0; if(qStr != null) { var nameValue, name; var pairs = qStr.split('&'); var pairLen = pairs.length; for(var i = 0; i < pairLen; i++) { var pair = pairs[i]; if( (pair.indexOf('=')!= -1) && (pair.length > 3) ) { var nameVal...
JavaScript
BrowserHistoryUtils = { addEvent: function(elm, evType, fn, useCapture) { useCapture = useCapture || false; if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent) { var r = elm.attachEvent...
JavaScript
/* $Id: lightbox2.js,v 1.1.4.37 2009/01/07 17:46:47 snpower Exp $ */ function alt_layout_handler(event) { if ($("input[@name=lightbox2_lite]:checked").val() != 1) { if ($("input[@name=lightbox2_use_alt_layout]:checked").val() == 1) { $("input[@name=lightbox2_force_show_nav]").attr("disabled", "disabled"); ...
JavaScript
/* $Id: auto_image_handling.js,v 1.1.4.23 2009/01/04 21:07:48 snpower Exp $ */ // Image Node Auto-Format with Auto Image Grouping. // Original version by Steve McKenzie. // Altered by Stella Power for jQuery version. function parse_url(url, param) { param = param.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); url...
JavaScript
/* $Id: lightbox.js,v 1.5.2.6.2.114 2009/01/05 14:21:52 snpower Exp $ */ /** * jQuery Lightbox * @author * Stella Power, <http://drupal.org/user/66894> * * Based on Lightbox v2.03.3 by Lokesh Dhakar * <http://www.huddletogether.com/projects/lightbox2/> * Also partially based on the jQuery Lightbox by Warren K...
JavaScript
/* $Id: lightbox_lite.js,v 1.1.2.2.2.18 2008/08/14 11:28:16 snpower Exp $ */ /** * Lightbox JS: Fullsize Image Overlays * by Lokesh Dhakar - http://www.huddletogether.com * * For more information on this script, visit: * http://huddletogether.com/projects/lightbox/ * * This script is distributed via Drupal.org ...
JavaScript
// $Id: lightbox_modal.js,v 1.1.2.2 2009/01/05 15:59:08 snpower Exp $ function lightbox2_login() { $("a[@href*='/user/login'], a[@href*='?q=user/login']").each(function() { $(this).attr({ href: this.href.replace(/user\/login?/,"user/login/lightbox2"), rel: 'lightmodal[|width:250px; height:210px;]' ...
JavaScript
/* $Id: lightbox_video.js,v 1.1.4.13 2009/01/05 01:12:34 snpower Exp $ */ /** * Lightbox video * @author * Stella Power, <http://drupal.org/user/66894> */ var Lightvideo = { // startVideo() startVideo: function (href) { if (Lightvideo.checkKnownVideos(href)) { return; } else if (href.matc...
JavaScript
// $Id: taxonomy.js,v 1.2 2007/12/16 10:36:53 goba Exp $ /** * Move a block in the blocks table from one region to another via select list. * * This behavior is dependent on the tableDrag behavior, since it uses the * objects initialized in that behavior to update the row. */ Drupal.behaviors.termDrag = function(...
JavaScript
// $Id: user.js,v 1.6 2007/09/12 18:29:32 goba 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; $("input.password-field:not(.password-processed...
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: comment.js,v 1.5 2007/09/12 18:29:32 goba Exp $ Drupal.behaviors.comment = function (context) { var parts = new Array("name", "homepage", "mail"); var cookie = ''; for (i=0;i<3;i++) { cookie = Drupal.comment.getCookie('comment_info_' + parts[i]); if (cookie != '') { $("#comment-form input[n...
JavaScript
// $Id: openid.js,v 1.6 2008/01/30 22:11:22 goba Exp $ Drupal.behaviors.openid = function (context) { var $loginElements = $("#edit-name-wrapper, #edit-pass-wrapper, li.openid-link"); var $openidElements = $("#edit-openid-identifier-wrapper, li.user-link"); // This behavior attaches by ID, so is only valid once...
JavaScript
// $Id: modal.js,v 1.17.2.10 2010/05/26 16:42:44 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.12 2010/05/26 16:42:44 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
/* * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate: 2007-03-27 16:29:43 -0500 (Tue, 27 Mar 2007) $ * $Rev: 1601 $ */ (function ($) { $.fn._height = $.fn.height; $.fn._width = $.fn...
JavaScript
/** * Modified modalContent jQuery Plugin */ (function ($) { // Make sure our objects are defined. Drupal.CTools = Drupal.CTools || {}; Drupal.CTools.Modal = Drupal.CTools.Modal || {}; /** * modalContent * @param content string to display in the content box * @param css obj of css attributes * @...
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: 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: system.js,v 1.14.2.2 2009/07/21 08:59:12 goba Exp $ /** * Internal function to check using Ajax if clean URLs can be enabled on the * settings page. * * This function is not used to verify whether or not clean URLs * are currently enabled. */ Drupal.behaviors.cleanURLsSettingsCheck = function(context) { ...
JavaScript
// $Id: profile.js,v 1.2 2007/12/08 14:06:22 goba Exp $ /** * Add functionality to the profile drag and drop table. * * This behavior is dependent on the tableDrag behavior, since it uses the * objects initialized in that behavior to update the row. It shows and hides * a warning message when removing the last fi...
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
// $Id: node_gallery.admin.js,v 1.2.4.11 2010/05/08 14:02:30 justintime Exp $ $(document).ready(function(){ // View original as text link $view_original_text = $('input#edit-config-original-view-original-text'); $view_original_text_value = $('.view-original-text-value'); $view_original_radios = $('.vie...
JavaScript
// $Id: node_gallery_lightbox2.admin.js,v 1.1.2.3 2010/05/08 14:02:30 justintime Exp $ $(document).ready(function(){ // View Original as Lightbox2 Popup $lightbox2_input = $('input#edit-config-original-view-original-lightbox2'); $lightbox2_preset = $('.lightbox2-preset'); // View thumbnail informat...
JavaScript
// $Id: flexible-admin.js,v 1.1.2.4 2009/10/07 22:20:29 merlinofchaos Exp $ Drupal.flexible = Drupal.flexible || {}; Drupal.flexible.splitters = []; /** * Fix the height of all splitters to be the same as the items they are * splitting. */ Drupal.flexible.fixHeight = function() { for (i in Drupal.flexible.split...
JavaScript
// $Id: panels-base.js,v 1.1.4.1 2009/10/05 22:40:35 merlinofchaos Exp $ /** * @file * Implement basic methods required by all of panels. */ (function ($) { Drupal.Panels = {} Drupal.Panels.changed = function(item) { if (!item.is('.changed')) { item.addClass('changed'); item.find('div.grabber s...
JavaScript
// $Id: panels.js,v 1.2.4.1 2009/10/05 22:40:35 merlinofchaos Exp $ (function ($) { Drupal.Panels = {}; Drupal.Panels.autoAttach = function() { if ($.browser.msie) { // If IE, attach a hover event so we can see our admin links. $("div.panel-pane").hover( function() { $('div.panel...
JavaScript
// $Id: display_editor.js,v 1.4.4.7 2009/10/07 22:20:29 merlinofchaos Exp $ /** * @file display_editor.js * * Contains the javascript for the Panels display editor. */ (function ($) { /** Delete pane button **/ Drupal.Panels.bindClickDelete = function(context) { $('a.pane-delete:not(.pane-delete-processed)...
JavaScript
// $Id: layout.js,v 1.2.4.2 2009/10/05 22:40:35 merlinofchaos Exp $ /** * @file layout.js * * Contains javascript to make layout modification a little nicer. */ (function ($) { Drupal.Panels.Layout = {}; Drupal.Panels.Layout.autoAttach = function() { $('div.form-item div.layout-icon').click(function() { ...
JavaScript
// $Id: panels-style.js,v 1.1.2.1 2010/02/17 01:09:46 merlinofchaos Exp $ /** * Provide some extra responses for the page list so we can have automatic * on change. */ Drupal.behaviors.PanelsStyleList = function() { var timeoutID = 0; $('form#panels-stylizer-list-styles-form select:not(.panels-processed)') ...
JavaScript
// $Id: color.js,v 1.6 2007/09/12 18:29:32 goba Exp $ Drupal.behaviors.color = function (context) { // This behavior attaches by ID, so is only valid once on a page. if ($('#color_scheme_form .color-form.color-processed').size()) { return; } var form = $('#color_scheme_form .color-form', context); var in...
JavaScript
// $Id$ var allowClickRefresh = true; Drupal.behaviors.facebookStatus = function (context) { var initialLoad = false; if (context == document) { initialLoad = true; context = $(document); } facebook_status_submit_disabled = false; var $facebook_status_field = context.find('.facebook_status_text:first'...
JavaScript
// Mostly copied from the AHAH Helper module. (function($) { if (Drupal.jsEnabled) { $(document).ready(function() { if (Drupal.ahah != undefined) { /** * Override of Drupal.ahah.prototype.success to allow for new Drupal.settings. */ Drupal.ahah.prototype.success = function (response, status) { var wrapper =...
JavaScript
// $Id: content.js,v 1.1.2.3 2008/10/06 14:30:01 karens Exp $ Drupal.behaviors.cckManageFields = function(context) { attachUpdateSelects(context); }; function attachUpdateSelects(context) { var widgetTypes = Drupal.settings.contentWidgetTypes; var fields = Drupal.settings.contentFields; // Store the default ...
JavaScript
// $Id: block.js,v 1.2 2007/12/16 10:36:53 goba Exp $ /** * Move a block in the blocks table from one region to another via select list. * * This behavior is dependent on the tableDrag behavior, since it uses the * objects initialized in that behavior to update the row. */ Drupal.behaviors.blockDrag = function(co...
JavaScript
// $Id: tableheader.js,v 1.16.2.2 2009/03/30 12:48:09 goba Exp $ Drupal.tableHeaderDoScroll = function() { if (typeof(Drupal.tableHeaderOnScroll)=='function') { Drupal.tableHeaderOnScroll(); } }; Drupal.behaviors.tableHeader = function (context) { // This breaks in anything less than IE 7. Prevent it from r...
JavaScript
// $Id: tabledrag.js,v 1.13.2.5 2009/06/18 12:24:24 goba Exp $ /** * Drag and drop table rows with field manipulation. * * Using the drupal_add_tabledrag() function, any table with weights or parent * relationships may be made into draggable tables. Columns containing a field * may optionally be hidden, providing...
JavaScript
// $Id: textarea.js,v 1.22 2008/01/17 19:31:56 goba Exp $ Drupal.behaviors.textarea = function(context) { $('textarea.resizable:not(.textarea-processed)', context).each(function() { // Avoid non-processed teasers. if ($(this).is(('textarea.teaser:not(.teaser-processed)'))) { return false; } v...
JavaScript
// $Id: collapse.js,v 1.17 2008/01/29 10:58:25 goba Exp $ /** * Toggle the visibility of a fieldset using smooth animations */ Drupal.toggleFieldset = function(fieldset) { if ($(fieldset).is('.collapsed')) { // Action div containers are processed separately because of a IE bug // that alters the default su...
JavaScript
// $Id: teaser.js,v 1.12.2.2 2010/03/01 10:13:18 goba Exp $ /** * Auto-attach for teaser behavior. * * Note: depends on resizable textareas. */ Drupal.behaviors.teaser = function(context) { // This breaks in Konqueror. Prevent it from running. if (/KDE/.test(navigator.vendor)) { return; } $('textarea....
JavaScript
// $Id: batch.js,v 1.4 2007/10/21 18:59:01 goba Exp $ /** * Attaches the batch behavior to progress bars. */ Drupal.behaviors.batch = function (context) { // This behavior attaches by ID, so is only valid once on a page. if ($('#progress.batch-processed').size()) { return; } $('#progress', context).addCl...
JavaScript
// $Id: farbtastic.js,v 1.4.2.1 2008/06/25 09:34:17 goba Exp $ // Farbtastic 1.2 jQuery.fn.farbtastic = function (callback) { $.farbtastic(this, callback); return this; }; jQuery.farbtastic = function (container, callback) { var container = $(container).get(0); return container.farbtastic || (container.farbta...
JavaScript
// $Id: ahah.js,v 1.7.2.1 2008/02/11 14:46:27 goba Exp $ /** * Provides AJAX-like page updating via AHAH (Asynchronous HTML and HTTP). * * AHAH is a method of making a request via Javascript while viewing an HTML * page. The request returns a small chunk of HTML, which is then directly * injected into the page. ...
JavaScript
// $Id: form.js,v 1.1 2007/09/12 18:29:32 goba Exp $ Drupal.behaviors.multiselectSelector = function() { // Automatically selects the right radio button in a multiselect control. $('.multiselect select:not(.multiselectSelector-processed)') .addClass('multiselectSelector-processed').change(function() { $(...
JavaScript
// $Id: drupal.js,v 1.41.2.4 2009/07/21 08:59:10 goba Exp $ var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} }; /** * Set the variable that indicates if JavaScript behaviors should be applied */ Drupal.jsEnabled = document.getElementsByTagName && document.createElement && documen...
JavaScript
// $Id: autocomplete.js,v 1.23 2008/01/04 11:53:21 goba Exp $ /** * Attaches the autocomplete behavior to all required fields */ Drupal.behaviors.autocomplete = function (context) { var acdb = []; $('input.autocomplete:not(.autocomplete-processed)', context).each(function () { var uri = this.value; if (!...
JavaScript
// $Id: progress.js,v 1.20 2008/01/04 11:53:21 goba Exp $ /** * A progressbar object. Initialized with the given id. Must be inserted into * the DOM afterwards through progressBar.element. * * method is the function which will perform the HTTP request to get the * progress bar state. Either "GET" or "POST". * *...
JavaScript
// $Id: tableselect.js,v 1.8 2007/11/19 12:15:16 goba Exp $ Drupal.behaviors.tableSelect = function (context) { $('form table:has(th.select-all):not(.tableSelect-processed)', context).each(Drupal.tableSelect); }; Drupal.tableSelect = function() { // Do not add a "Select all" checkbox if there are no rows with che...
JavaScript
$(document).ready( function() { // Hide the breadcrumb details, if no breadcrumb. $('#edit-zen-breadcrumb').change( function() { div = $('#div-zen-breadcrumb-collapse'); if ($('#edit-zen-breadcrumb').val() == 'no') { div.slideUp('slow'); } else if (div.css('display') == 'none') { ...
JavaScript