code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * 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
/* * jQuery UI Effects Shake 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/Shake * * Depends: * effects.core.js */ (function($) { $.effects.shake = ...
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 */ (function($) { $.effects....
JavaScript
/* * jQuery UI Dialog 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/Dialog * * Depends: * ui.core.js * ui.draggable.js * ui.resizable.js */ (function($) { ...
JavaScript
/* * jQuery UI Accordion 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/Accordion * * Depends: * ui.core.js */ (function($) { $.widget("ui.accordion", { ...
JavaScript
/* * jQuery UI Tabs 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/Tabs * * Depends: * ui.core.js */ (function($) { $.widget("ui.tabs", { _init: function...
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 */ (function($) { $.effects.blind = ...
JavaScript
/* * jQuery UI Resizable 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/Resizables * * Depends: * ui.core.js */ (function($) { $.widget("ui.resizable", $.ext...
JavaScript
/* Indonesian initialisation for the jQuery UI date picker plugin. */ /* Written by Deden Fathurahman (dedenf@gmail.com). */ jQuery(function($){ $.datepicker.regional['id'] = { clearText: 'kosongkan', clearStatus: 'bersihkan tanggal yang sekarang', closeText: 'Tutup', closeStatus: 'Tutup tanpa mengubah', p...
JavaScript
/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* @author Arturas Paleicikas <arturas@avalon.lt> */ jQuery(function($){ $.datepicker.regional['lt'] = { clearText: 'Išvalyti', clearStatus: '', closeText: 'Uždaryti', closeStatus: '', prevText: '&#x3c;Atgal', prevStatus: '', ...
JavaScript
/* Arabic Translation for jQuery UI date picker plugin. */ /* Khaled Al Horani -- koko.dw@gmail.com */ /* خالد الحوراني -- koko.dw@gmail.com */ /* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */...
JavaScript
/* Bulgarian initialisation for the jQuery UI date picker plugin. */ /* Written by Stoyan Kyosev (http://svest.org). */ jQuery(function($){ $.datepicker.regional['bg'] = { clearText: 'изчисти', clearStatus: 'изчисти актуалната дата', closeText: 'затвори', closeStatus: 'затвори без промени', ...
JavaScript
/* Turkish initialisation for the jQuery UI date picker plugin. */ /* Written by Izzet Emre Erkan (kara@karalamalar.net). */ jQuery(function($){ $.datepicker.regional['tr'] = { clearText: 'temizle', clearStatus: 'geçerli tarihi temizler', closeText: 'kapat', closeStatus: 'sadece göstergeyi kapat', prevText...
JavaScript
/* Hebrew initialisation for the UI Datepicker extension. */ /* Written by Amir Hardon (ahardon at gmail dot com). */ jQuery(function($){ $.datepicker.regional['he'] = { clearText: 'נקה', clearStatus: '', closeText: 'סגור', closeStatus: '', prevText: '&#x3c;הקודם', prevStatus: '', prevBigText: '&#x3c;&...
JavaScript
/* Korean initialisation for the jQuery calendar extension. */ /* Written by DaeKwon Kang (ncrash.dk@gmail.com). */ jQuery(function($){ $.datepicker.regional['ko'] = { clearText: '지우기', clearStatus: '', closeText: '닫기', closeStatus: '', prevText: '이전달', prevStatus: '', prevBigText: '&#x3c;&#x3c;', prevB...
JavaScript
/* Chinese initialisation for the jQuery UI date picker plugin. */ /* Written by Cloudream (cloudream@gmail.com). */ jQuery(function($){ $.datepicker.regional['zh-CN'] = { clearText: '清除', clearStatus: '清除已选日期', closeText: '关闭', closeStatus: '不改变当前选择', prevText: '&#x3c;上月', prevStatus: '显示上月', prevBigTe...
JavaScript
/* Hungarian initialisation for the jQuery UI date picker plugin. */ /* Written by Istvan Karaszi (jquerycalendar@spam.raszi.hu). */ jQuery(function($){ $.datepicker.regional['hu'] = { clearText: 'törlés', clearStatus: '', closeText: 'bezárás', closeStatus: '', prevText: '&laquo;&nbsp;vissza', prevStatus: ...
JavaScript
/* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* @author Arturas Paleicikas <arturas.paleicikas@metasite.net> */ jQuery(function($){ $.datepicker.regional['lv'] = { clearText: 'Notīrīt', clearStatus: '', closeText: 'Aizvērt', closeStatus: '', prevText: 'Iepr', prevStatus: '', ...
JavaScript
/* Croatian i18n for the jQuery UI date picker plugin. */ /* Written by Vjekoslav Nesek. */ jQuery(function($){ $.datepicker.regional['hr'] = { clearText: 'izbriši', clearStatus: 'Izbriši trenutni datum', closeText: 'Zatvori', closeStatus: 'Zatvori kalendar', prevText: '&#x3c;', prevStatus: 'Prikaži preth...
JavaScript
/* Polish initialisation for the jQuery UI date picker plugin. */ /* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */ jQuery(function($){ $.datepicker.regional['pl'] = { clearText: 'Wyczyść', clearStatus: 'Wyczyść obecną datę', closeText: 'Zamknij', closeStatus: 'Zamknij bez zapisywania', prevText: '...
JavaScript
/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Andrew Stromnov (stromnov@gmail.com). */ jQuery(function($){ $.datepicker.regional['ru'] = { clearText: 'Очистить', clearStatus: '', closeText: 'Закрыть', closeStatus: '', prevText: '&#x3c;Пред', prevStatus: '', pr...
JavaScript
/* Czech initialisation for the jQuery UI date picker plugin. */ /* Written by Tomas Muller (tomas@tomas-muller.net). */ jQuery(function($){ $.datepicker.regional['cs'] = { clearText: 'Vymazat', clearStatus: 'Vymaže zadané datum', closeText: 'Zavřít', closeStatus: 'Zavře kalendář beze změny', prevText: '...
JavaScript
/* Icelandic initialisation for the jQuery UI date picker plugin. */ /* Written by Haukur H. Thorsson (haukur@eskill.is). */ jQuery(function($){ $.datepicker.regional['is'] = { clearText: 'Hreinsa', clearStatus: '', closeText: 'Loka', closeStatus: '', prevText: '&#x3c; Fyrri', prevStatus: '', prevBigTex...
JavaScript
/* Slovenian initialisation for the jQuery UI date picker plugin. */ /* Written by Jaka Jancar (jaka@kubje.org). */ /* c = &#x10D;, s = &#x161; z = &#x17E; C = &#x10C; S = &#x160; Z = &#x17D; */ jQuery(function($){ $.datepicker.regional['sl'] = { clearText: 'Izbri&#x161;i', clearStatus: 'Izbri&#x161;i trenutni ...
JavaScript
/* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Maxim Drogobitskiy (maxdao@gmail.com). */ jQuery(function($){ $.datepicker.regional['uk'] = { clearText: 'Очистити', clearStatus: '', closeText: 'Закрити', closeStatus: '', prevText: '&#x3c;', prevStatus: '', pre...
JavaScript
/* Swedish initialisation for the jQuery UI date picker plugin. */ /* Written by Anders Ekdahl ( anders@nomadiz.se). */ jQuery(function($){ $.datepicker.regional['sv'] = { clearText: 'Rensa', clearStatus: '', closeText: 'Stäng', closeStatus: '', prevText: '&laquo;Förra', prevStatus: '', prevB...
JavaScript
/* Brazilian initialisation for the jQuery UI date picker plugin. */ /* Written by Leonildo Costa Silva (leocsilva@gmail.com). */ jQuery(function($){ $.datepicker.regional['pt-BR'] = { clearText: 'Limpar', clearStatus: '', closeText: 'Fechar', closeStatus: '', prevText: '&#x3c;Anterior', prevStatus: '', ...
JavaScript
/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Mathias Bynens <http://mathiasbynens.be/> */ jQuery(function($){ $.datepicker.regional.nl = { clearText: 'Wissen', clearStatus: 'Wis de huidige datum', closeText: 'Sluiten', closeStatus: 'Sluit zonder verandering', prev...
JavaScript
/* Romanian initialisation for the jQuery UI date picker plugin. */ /* Written by Edmond L. (ll_edmond@walla.com). */ jQuery(function($){ $.datepicker.regional['ro'] = { clearText: 'Curat', clearStatus: 'Sterge data curenta', closeText: 'Inchide', closeStatus: 'Inchide fara schimbare', prevText: '&#x3c;Ant...
JavaScript
/* Albanian initialisation for the jQuery UI date picker plugin. */ /* Written by Flakron Bytyqi (flakron@gmail.com). */ jQuery(function($){ $.datepicker.regional['sq'] = { clearText: 'fshije', clearStatus: 'fshije datën aktuale', closeText: 'mbylle', closeStatus: 'mbylle pa ndryshime', prevText: '&#x3c;m...
JavaScript
/* Slovak initialisation for the jQuery UI date picker plugin. */ /* Written by Vojtech Rinik (vojto@hmm.sk). */ jQuery(function($){ $.datepicker.regional['sk'] = { clearText: 'Zmazať', clearStatus: '', closeText: 'Zavrieť', closeStatus: '', prevText: '&#x3c;Predchádzajúci', prevStatus: '', prevBigText...
JavaScript
/* Norwegian initialisation for the jQuery UI date picker plugin. */ /* Written by Naimdjon Takhirov (naimdjon@gmail.com). */ jQuery(function($){ $.datepicker.regional['no'] = { clearText: 'Tøm', clearStatus: '', closeText: 'Lukk', closeStatus: '', prevText: '&laquo;Forrige', prevStatus: '', p...
JavaScript
/* German initialisation for the jQuery UI date picker plugin. */ /* Written by Milian Wolff (mail@milianw.de). */ jQuery(function($){ $.datepicker.regional['de'] = { clearText: 'löschen', clearStatus: 'aktuelles Datum löschen', closeText: 'schließen', closeStatus: 'ohne Änderungen schließen', prevText: '...
JavaScript
/* Italian initialisation for the jQuery UI date picker plugin. */ /* Written by Apaella (apaella@gmail.com). */ jQuery(function($){ $.datepicker.regional['it'] = { clearText: 'Svuota', clearStatus: 'Annulla', closeText: 'Chiudi', closeStatus: 'Chiudere senza modificare', prevText: '&#x3c;Prec', prevStatus...
JavaScript
/* Esperanto initialisation for the jQuery UI date picker plugin. */ /* Written by Olivier M. (olivierweb@ifrance.com). */ jQuery(function($){ $.datepicker.regional['eo'] = { clearText: 'Vakigi', clearStatus: '', closeText: 'Fermi', closeStatus: 'Fermi sen modifi', prevText: '&lt;Anta', prevStatus: 'Vidi ...
JavaScript
/* French initialisation for the jQuery UI date picker plugin. */ /* Written by Keith Wood (kbwood@virginbroadband.com.au) and Stéphane Nahmani (sholby@sholby.net). */ jQuery(function($){ $.datepicker.regional['fr'] = { clearText: 'Effacer', clearStatus: 'Effacer la date sélectionnée', closeText: 'Fermer', c...
JavaScript
/* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/ jQuery(function($){ $.datepicker.regional['hy'] = { clearText: 'Մաքրել', clearStatus: '', closeText: 'Փակել', closeStatus: '', prevText: '&#x3c;Նախ.', prevStatus: '', pre...
JavaScript
/* Thai initialisation for the jQuery UI date picker plugin. */ /* Written by pipo (pipo@sixhead.com). */ jQuery(function($){ $.datepicker.regional['th'] = { clearText: 'ลบ', clearStatus: '', closeText: 'ปิด', closeStatus: '', prevText: '&laquo;&nbsp;ย้อน', prevStatus: '', prevBigText: '&#x3c;&#x3c;', ...
JavaScript
/* Chinese initialisation for the jQuery UI date picker plugin. */ /* Written by Ressol (ressol@gmail.com). */ jQuery(function($){ $.datepicker.regional['zh-TW'] = { clearText: '清除', clearStatus: '清除已選日期', closeText: '關閉', closeStatus: '不改變目前的選擇', prevText: '&#x3c;上月', prevStatus: '顯示上月', prevBigText: ...
JavaScript
/* Japanese initialisation for the jQuery UI date picker plugin. */ /* Written by Kentaro SATO (kentaro@ranvis.com). */ jQuery(function($){ $.datepicker.regional['ja'] = { clearText: 'クリア', clearStatus: '日付をクリアします', closeText: '閉じる', closeStatus: '変更せずに閉じます', prevText: '&#x3c;前', prevStatus: '前月を表示します', ...
JavaScript
/* Arabic Translation for jQuery UI date picker plugin. */ /* Khaled Al Horani -- koko.dw@gmail.com */ /* خالد الحوراني -- koko.dw@gmail.com */ /* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */...
JavaScript
/* Persian (Farsi) Translation for the jQuery UI date picker plugin. */ /* Javad Mowlanezhad -- jmowla@gmail.com */ /* Jalali calendar should supported soon! (Its implemented but I have to test it) */ jQuery(function($) { $.datepicker.regional['fa'] = { clearText: 'حذف تاريخ', clearStatus: 'پاک کردن تاريخ جاري...
JavaScript
/* Danish initialisation for the jQuery UI date picker plugin. */ /* Written by Jan Christensen ( deletestuff@gmail.com). */ jQuery(function($){ $.datepicker.regional['da'] = { clearText: 'Nulstil', clearStatus: 'Nulstil den aktuelle dato', closeText: 'Luk', closeStatus: 'Luk uden ændringer', pre...
JavaScript
// $Id: custom_search.js,v 1.1.2.15 2010/12/22 13:36:36 jdanthinne Exp $ Drupal.behaviors.custom_search = function (context) { if (!Drupal.settings.custom_search.solr) { // Check if the search box is not empty on submit $('form.search-form', context).submit(function(){ var box = $(this).find('input.cu...
JavaScript
// $Id: custom_search_sort.js,v 1.1.2.1 2010/11/01 17:07:43 jdanthinne 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....
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add('uicolor',{requires:['dialog'],lang:['en'],init:function(a){if(CKEDITOR.env.ie6Compat)return;a.addCommand('uicolor',new CKEDITOR.dialogCommand('uic...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefi...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Compressed version of core/ckeditor_base.js. See original for instructions. /*jsl:ignore*/ if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',vers...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Compressed version of core/ckeditor_base.js. See original for instructions. /*jsl:ignore*/ if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',vers...
JavaScript
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'linktomenu', { init : function( editor ) { // Add the link and unlink buttons. editor.addCommand( 'linktomenu', new CKEDITOR.dialogCommand( 'linkt...
JavaScript
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'linktomenu', function( editor ) { //<!-- linktonode START --> CKEDITOR.scriptLoader.load( Drupal.settings.basePath + "misc/jquery.js"); CKEDITOR.scri...
JavaScript
// $Id: functions.js,v 1.2 2009/12/04 20:36:57 wwalc Exp $ function selectRow(row) { if (!row) { return; } $('#nodelist tbody tr').each( function() { $(this).css('background', 'transparent'); }); $(row).css('background', '#dadfe9'); selectedNode = row; $('#linktomenu_url').val(row.cells[0].firstChild.nodeVa...
JavaScript
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Plugin for inserting Drupal embeded media */ ( function() { CKEDITOR.plugins.add( 'mediaembed', { requires : [ 'fakeobjects', 'htmlwriter' ], init: ...
JavaScript
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'linktonode', { init : function( editor ) { // Add the link and unlink buttons. editor.addCommand( 'linktonode', new CKEDITOR.dialogCommand( 'linkt...
JavaScript
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'linktonode', function( editor ) { //<!-- linktonode START --> CKEDITOR.scriptLoader.load( Drupal.settings.basePath + "misc/jquery.js"); CKEDITOR.scri...
JavaScript
// $Id: functions.js,v 1.1 2009/12/04 20:36:57 wwalc Exp $ function selectRow(row) { if (!row) { return; } $('#nodelist tbody tr').each(function() { $(this).css({background: '#ffffff'}); selectedNode = null; }); selectedNode = row; $(row).css({background: '#dadfe9'}); $('#txtUrlPath').val( selectedNode....
JavaScript
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Plugin for inserting Drupal teaser and page breaks. */ CKEDITOR.plugins.add( 'drupalbreaks', { requires : [ 'fakeobjects', 'htmldataprocessor' ], init : fun...
JavaScript
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Plugin for inserting files from imce without image dialog */ ( function() { CKEDITOR.plugins.add( 'imce', { init: function( editor ) { //addin...
JavaScript
/* $Id: ckeditor.styles.js,v 1.1.2.2 2009/12/16 11:32:04 wwalc Exp $ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* * This file is used/requested by the 'Styles' button. * 'Styles' button is not enabled by default in D...
JavaScript
// $Id: ckeditor.config.js,v 1.2.2.7 2010/03/11 12:39:54 wwalc Exp $ /* WARNING: clear browser's cache after you modify this file. If you don't do this, you may notice that browser is ignoring all your changes. */ CKEDITOR.editorConfig = function(config) { config.indentClasses = [ 'rteindent1', 'rteindent2', 'rte...
JavaScript
/* Tokenizer for JavaScript code */ var tokenizeJavaScript = (function() { // Advance the stream until the given character (not preceded by a // backslash) is encountered, or the end of the line is reached. function nextUntilUnescaped(source, end) { var escaped = false; while (!source.endOfLine()...
JavaScript
var SparqlParser = Editor.Parser = (function() { function wordRegexp(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); } var ops = wordRegexp(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri", "isblank", "isliteral", "union", "a"]); ...
JavaScript
// Minimal framing needed to use CodeMirror-style parsers to highlight // code. Load this along with tokenize.js, stringstream.js, and your // parser. Then call highlightText, passing a string as the first // argument, and as the second argument either a callback function // that will be called with an array of SP...
JavaScript
/* This file defines an XML parser, with a few kludges to make it * useable for HTML. autoSelfClosers defines a set of tag names that * are expected to not have a closing tag, and doNotIndent specifies * the tags inside of which no indentation should happen (see Config * object). These can be disabled by passi...
JavaScript
/* String streams are the things fed to parsers (which can feed them * to a tokenizer if they want). They provide peek and next methods * for looking at the current character (next 'consumes' this * character, peek does not), and a get method for retrieving all the * text that was consumed since the last time ...
JavaScript