code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
// THIS FILE IS ALSO AN APPJET MODULE: etherpad.collab.ace.easysync1
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
// THIS FILE IS ALSO AN APPJET MODULE: etherpad.collab.ace.domline
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lice... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
function getTestCode() {
var testCode = [
'/* appjet:version 0.1 */',
'(function(){',
'/*',
' * jQuery 1.2.1 - New Wave Javascript',
' *',
' * Copyright (c) 2007 John Resig (jquery.com)',
' * Dual licensed under the MIT (MIT-LICENSE.txt)',
' * and GPL (GPL-LICENSE.txt) licenses.',
' *',
' * $Date: 2007-09-16 23:42:06... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
// THIS FILE IS ALSO AN APPJET MODULE: etherpad.collab.ace.linestylefilter
// %APPJET%: import("etherpad.collab.ace.easysync2.Changeset");
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | JavaScript |
// THIS FILE IS ALSO AN APPJET MODULE: etherpad.collab.ace.contentcollector
// %APPJET%: import("etherpad.collab.ace.easysync2.Changeset")
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | JavaScript |
// THIS FILE IS ALSO SERVED AS CLIENT-SIDE JS
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | JavaScript |
// THIS FILE IS ALSO AN APPJET MODULE: etherpad.collab.ace.easysync2_tests
// %APPJET%: import("etherpad.collab.ace.easysync2.*")
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain... | JavaScript |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 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.att... | JavaScript |
// Flash Player Version Detection - Rev 1.6
// 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 |
// $Id: ldapdata.admin.js,v 1.1 2009/07/28 14:03:05 miglius Exp $
/**
* Behaviours are bound to the Drupal namespace.
*/
Drupal.behaviors.ldapdata = function(context) {
$('#edit-test').click(function(event) {
$('#test-message').hide();
$('#test-spinner').show();
var url = window.location.href + '/test'... | JavaScript |
// $Id: ldapauth.admin.js,v 1.1 2009/07/28 14:03:05 miglius Exp $
/**
* Behaviours are bound to the Drupal namespace.
*/
Drupal.behaviors.ldapauth = function(context) {
if(window.location.href.search(/add$/) > 0) {
$('#edit-test').hide();
}
$('#edit-test').click(function(event) {
$('#test-message').hid... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | 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 |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
(function($) {
/**
* Initialize editor libraries.
*
* Some editors need to be initialized before the DOM is fully loaded. The
* init hook gives them a chance to do so.
*/
Drupal.wysiwygInit = function() {
// This breaks in Konqueror. Prevent it from running.
if (/KDE/.test(navigator.vendor)) {
return;
}... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
* Rev: 5685
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c... | JavaScript |
/**
* 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(context) {
var table = $('#taxonomy', context);
var t... | JavaScript |
/**
* 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)", context).each(function() {
var passwordInput ... | JavaScript |
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[name=" + parts[i] + "]:not(.comment-processed)", context)... | JavaScript |
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 on a page.
if (!$("#edit-openid-identifier.openid-pr... | JavaScript |
/**
* 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) {
// This behavior attaches by ID, so is only valid once on ... | JavaScript |
/**
* 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 field from a profile category.
*/
Drupal.behaviors.profil... | JavaScript |
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 inputs = [];
var hooks = [];
var locks = [];
var f... | JavaScript |
/**
* 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(context) {
var table = $('table#blocks');
var tableD... | JavaScript |
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 running.
if (jQuery.browser.msie && parseInt(jQuery.browser.vers... | JavaScript |
/**
* 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 a better user experience.
*
* Created tableDrag instances ma... | JavaScript |
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;
}
var textarea = $(this).addClass('textarea-processed'), stat... | JavaScript |
/**
* 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 submit button behavior.
var content = $('> div:not(.acti... | JavaScript |
/**
* 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.teaser:not(.teaser-processed)', context).each(function() {
... | JavaScript |
/**
* 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).addClass('batch-processed').each(function () {
var hold... | JavaScript |
// 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.farbtastic = new jQuery._farbtastic(container, callback));
};
jQuery... | JavaScript |
/**
* 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.
*
* Drupal uses this file to enhance form elements with ... | JavaScript |
Drupal.behaviors.multiselectSelector = function() {
// Automatically selects the right radio button in a multiselect control.
$('.multiselect select:not(.multiselectSelector-processed)')
.addClass('multiselectSelector-processed').change(function() {
$('.multiselect input:radio[value="'+ this.id.substr(5)... | JavaScript |
var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };
/**
* Set the variable that indicates if JavaScript behaviors should be applied
*/
Drupal.jsEnabled = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.get... | JavaScript |
/**
* 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 (!acdb[uri]) {
acdb[uri] = new Drupal.ACDB(uri);
}
... | JavaScript |
/**
* 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".
*
* e.g. pb = new progressBar('myProgressBar');
* some_... | JavaScript |
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 checkboxes in the table
if ($('td input:checkbox', this).size... | JavaScript |
Drupal.behaviors.apachesolr = function(context) {
$('.apachesolr-hidden-facet', context).hide();
$('<a href="#" class="apachesolr-showhide"></a>').text(Drupal.t('Show more')).click(function() {
if ($(this).parent().find('.apachesolr-hidden-facet:visible').length == 0) {
$(this).parent().find('.apachesolr... | JavaScript |
// $Id: mollom.admin.js,v 1.1.2.3 2010/10/15 11:20:41 sun Exp $
(function ($) {
/**
* Filters blacklist entries.
*/
Drupal.behaviors.mollomBlacklistFilter = function (context) {
// Intentionally wrong indentation for simplified maintenance.
var self = {};
$('#mollom-blacklist:not(.mollom-processed)', conte... | JavaScript |
// $Id: mollom.js,v 1.2.2.13 2010/08/07 02:49:44 dries Exp $
(function ($) {
/**
* Open Mollom privacy policy link in a new window.
*
* Required for valid XHTML Strict markup.
*/
Drupal.behaviors.mollomPrivacy = function (context) {
$('.mollom-privacy a', context).click(function () {
this.target = '_blank';
... | JavaScript |
Drupal.shoutbox = {}
Drupal.behaviors.shoutbox = function(context) {
// Declare AJAX behavior for the form
var options = {
resetForm: true,
beforeSubmit: Drupal.shoutbox.validate,
success: Drupal.shoutbox.success
};
// Detect the shout form
var shoutForm = $('#shoutbox-add-form:not(.shoutbox-proc... | JavaScript |
Drupal.behaviors.RulesAdminSetAddArg = function (context) {
$('.rules-argument-data-type:not(.RulesAdminSetAddArg-processed)', context).addClass('RulesAdminSetAddArg-processed').each(function () {
$('select', this).bind("change", function() {
if ($(this).parents("td").nextAll(".rules-argument-name").fi... | JavaScript |
// $Id: comment.js,v 1.1.2.1 2009/12/09 01:08:39 davereid Exp $
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.verticalTabs.comment_settings = function() {
return $('.vertical-tabs-comment_settings input:checked').parent().text();
}
Drupal.verticalTabs.comment = function() {
var vals = [];
vals.push($... | JavaScript |
// $Id: taxonomy.js,v 1.1.2.1 2009/12/09 01:08:39 davereid Exp $
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.verticalTabs.taxonomy = function() {
var terms = {};
var termCount = 0;
$('fieldset.vertical-tabs-taxonomy').find('select, input.form-text').each(function() {
if (this.value) {
var ... | JavaScript |
// $Id: node.js,v 1.1.2.1 2009/12/09 01:08:39 davereid Exp $
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.verticalTabs.revision_information = function() {
if ($('#edit-revision').length) {
if ($('#edit-revision').attr('checked')) {
return Drupal.t('New revision');
}
else {
return ... | JavaScript |
// $Id: menu.js,v 1.1.2.1 2009/12/09 01:08:39 davereid Exp $
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.verticalTabs.menu = function() {
if ($('#edit-menu-link-title').val()) {
return $('#edit-menu-link-title').val();
}
else {
return Drupal.t('Not in menu');
}
}
| JavaScript |
// $Id: upload.js,v 1.1.2.1 2009/12/09 01:08:39 davereid Exp $
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.verticalTabs.attachments = function() {
var size = $('#upload-attachments tbody tr').size();
if (size) {
return Drupal.formatPlural(size, '1 attachment', '@count attachments');
}
else {
... | JavaScript |
// $Id: block.js,v 1.1.2.1 2009/12/09 04:35:33 davereid Exp $
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.verticalTabs.user_vis_settings = function() {
return $('fieldset.vertical-tabs-user_vis_settings input[name="custom"]:radio:checked').parent().text();
}
Drupal.verticalTabs.role_vis_settings = func... | JavaScript |
// $Id: book.js,v 1.1.2.1 2009/12/09 01:08:39 davereid Exp $
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.verticalTabs.book = function() {
var text = $('#edit-book-bid option[selected]').text();
if (text == Drupal.t('<none>')) {
return Drupal.t('Not in book');
}
else if (text == Drupal.t('<crea... | JavaScript |
// $Id: content_types.js,v 1.1.2.1 2009/12/09 01:08:39 davereid Exp $
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.verticalTabs.submission = function() {
var vals = [];
vals.push(Drupal.checkPlain($('.vertical-tabs-submission #edit-title-label').val()) || Drupal.t('Requires a title'));
vals.push(Drup... | JavaScript |
// $Id: path.js,v 1.1.2.1 2009/12/09 01:08:39 davereid Exp $
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.verticalTabs.path = function() {
var path = $('#edit-path').val();
if (path) {
return Drupal.t('Alias: @alias', { '@alias': path });
}
else {
return Drupal.t('No alias');
}
}
| JavaScript |
// $Id: vertical_tabs.js,v 1.3.2.19 2010/02/03 18:24:42 davereid Exp $
Drupal.verticalTabs = Drupal.verticalTabs || {};
Drupal.settings.verticalTabs = Drupal.settings.verticalTabs || {};
Drupal.behaviors.verticalTabs = function() {
if (!$('.vertical-tabs-list').size() && Drupal.settings.verticalTabs) {
var ul =... | JavaScript |
// Node authoring form for group posts
Drupal.behaviors.og_access_group_post = function() {
/* Node authoring form for group content -Disable the public checkbox if no groups are selected in in Audience */
$('.og-audience').click(function() {
// Audience can be checkboxes, a simple select, or have optgro... | JavaScript |
// $Id: og.js,v 1.9.2.3 2010/01/24 14:44:56 amitaibu Exp $
// Content type form
Drupal.behaviors.og_content_type = function() {
// Disable the group limit textarea if the content type is not a standard group post
$('input[name="og_content_type_usage"]').click(function(){
if (!$('#edit-og-content-type-usage-gro... | JavaScript |
/**
* Auto-attach standard client side file input validation.
*/
Drupal.behaviors.filefieldValidateAutoAttach = function(context) {
$("input[type=file]", context).bind('change', Drupal.filefield.validateExtensions);
};
/**
* Prevent FileField uploads when using buttons not intended to upload.
*/
Drupal.behavio... | JavaScript |
/*
* UI enhancements for the imagecache edit form
*/
if(Drupal.jsEnabled){
$(document).ready(function(){
// canvasactions_roundedcorners
// check if independent corners are enabled and disable other fields
canvasactions_roundedcorners_form_disable_fields();
$(":checkbox#edit-data-independent-corne... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.