code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
function formset_init(formsetPrefix)
{
var totalformsObj = document.getElementById("id_" + formsetPrefix + "-TOTAL_FORMS");
totalformsObj.value = "1";
}
function show_new_form_HTML(father_id, divAttrs, divContent, formsetPrefix, addbeforeobj_id)
{
var fatherObj = document.getElementById(father_id);
var newdi... | JavaScript |
/*=============================================
#
# Copyright 2012 David Racca and Matias Molina.
#
# This file is part of ADIUC Salary Calculator.
#
# ADIUC Salary Calculator is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Soft... | JavaScript |
/*=============================================
#
# Copyright 2012 David Racca and Matias Molina.
#
# This file is part of ADIUC Salary Calculator.
#
# ADIUC Salary Calculator is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Soft... | JavaScript |
/*=============================================
#
# Copyright 2012 David Racca and Matias Molina.
#
# This file is part of ADIUC Salary Calculator.
#
# ADIUC Salary Calculator is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Soft... | JavaScript |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the... | JavaScript |
// Copyright 2008 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 to in ... | JavaScript |
/*
* Autocomplete - jQuery plugin 1.0.2
*
* Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.autocomplete.... | JavaScript |
/**
* Ajax Queue Plugin
*
* Homepage: http://jquery.com/plugins/project/ajaxqueue
* Documentation: http://docs.jquery.com/AjaxQueue
*/
/**
<script>
$(function(){
jQuery.ajaxQueue({
url: "test.php",
success: function(html){ jQuery("ul").append(html); }
});
jQuery.ajaxQueue({
url: "test.p... | JavaScript |
function Isolate() {}
init();
var $$ = {};
var $ = Isolate.$isolateProperties;
$$.ExceptionImplementation = {"":
["_msg"],
super: "Object",
toString$0: function() {
var t1 = this._msg;
return t1 == null ? 'Exception' : 'Exception: ' + $.S(t1);
}
};
$$.FutureImpl = {"":
["_completionListeners", "_exceptionHan... | JavaScript |
function Isolate() {}
init();
var $$ = {};
var $ = Isolate.$isolateProperties;
$$.DurationImplementation = {"":
["inMilliseconds?"],
super: "Object",
toString$0: function() {
var t1 = new $.DurationImplementation_toString_threeDigits();
var t2 = new $.DurationImplementation_toString_twoDigits();
var t3 = this... | JavaScript |
/**
* Creates a new Floor.
* @constructor
* @param {google.maps.Map=} opt_map
*/
function Floor(opt_map) {
/**
* @type Array.<google.maps.MVCObject>
*/
this.overlays_ = [];
/**
* @type boolean
*/
this.shown_ = true;
if (opt_map) {
this.setMap(opt_map);
}
}
/**
* @param {google.maps.M... | JavaScript |
/**
* Creates a new level control.
* @constructor
* @param {IoMap} iomap the IO map controller.
* @param {Array.<string>} levels the levels to create switchers for.
*/
function LevelControl(iomap, levels) {
var that = this;
this.iomap_ = iomap;
this.el_ = this.initDom_(levels);
google.maps.event.addList... | JavaScript |
/**
* @license
*
* Copyright 2011 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 l... | JavaScript |
// Copyright 2011 Google
/**
* 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 to in wri... | JavaScript |
/**
* Creates a new Floor.
* @constructor
* @param {google.maps.Map=} opt_map
*/
function Floor(opt_map) {
/**
* @type Array.<google.maps.MVCObject>
*/
this.overlays_ = [];
/**
* @type boolean
*/
this.shown_ = true;
if (opt_map) {
this.setMap(opt_map);
}
}
/**
* @param {google.maps.M... | JavaScript |
/**
* Creates a new level control.
* @constructor
* @param {IoMap} iomap the IO map controller.
* @param {Array.<string>} levels the levels to create switchers for.
*/
function LevelControl(iomap, levels) {
var that = this;
this.iomap_ = iomap;
this.el_ = this.initDom_(levels);
google.maps.event.addList... | JavaScript |
/**
* @license
*
* Copyright 2011 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 l... | JavaScript |
// Copyright 2011 Google
/**
* 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 to in wri... | JavaScript |
/**---
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
Translated to Korean by ionobgy
*/
//--------------------------------
//static/js/register.js
// Suggested email do... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
Vietnamese by Discuz.vn
*/
//--------------------------------
//static/js/register.js
// Suggested email domains for re... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
German Translation (2010-09-20) by Coldcut - http://www.cybertipps.com
*/
//--------------------------------
//static... | JavaScript |
/**---
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
Arabic by Khalid El-Nahhal, http://www.ar-discuz.com
*/
//--------------------------------
//static/js/register.js
... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
Thai Language by Jaideejung007
*/
//--------------------------------
//static/js/register.js
// Suggested email domains f... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
*/
//--------------------------------
//static/js/register.js
// Suggested email domains for registering:
var emaildomai... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
*/
//--------------------------------
//static/js/register.js
// Suggested email domains for registering:
var emaildomai... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
Translated to Spanish by jhoxi, discuzhispano.com
*/
//--------------------------------
//static/js/register.js
// Sugg... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
Traduction par André13 discuz-fr.fr -28.déc.2011- modeur Bertrand
*/
//--------------------------------
//static/js/regis... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
*/
//--------------------------------
//static/js/register.js
// Suggested email domains for registering:
var emaildomai... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
*/
//--------------------------------
//static/js/register.js
// Suggested email domains for registering:
var emaildomai... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
*/
//--------------------------------
//static/js/register.js
// Suggested email domains for registering:
var emaildomai... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
Javascript Language variables
$Id: lang_js.js by Valery Votintsev, codersclub.org
*/
//--------------------------------
//static/js/register.js
// Suggested email domains for registering:
var emaildomai... | JavaScript |
document.observe("dom:loaded", function() {
function handleRemote(element) {
var method, url, params;
if (element.tagName.toLowerCase() === 'form') {
method = element.readAttribute('method') || 'post';
url = element.readAttribute('action');
params = element.serialize(true);
} else {
... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
(function($){
var initLayout = function() {
var hash = window.location.hash.replace('#', '');
var currentTab = $('ul.navigationTabs a')
.bind('click', showTab)
.filter('a[rel=' + hash + ']');
if (currentTab.size() == 0) {
currentTab = $('ul.navigationTabs a:first');
}
showTab.apply(... | JavaScript |
jQuery(document).ready(function($) {
var taxonomy = radio_tax.slug; //Or set manually.
$('#' + taxonomy + 'checklist li :radio, #' + taxonomy + 'checklist-pop :radio').live( 'click', function(){
var t = $(this), c = t.is(':checked'), id = t.val();
$('#' + taxono... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
(function() {
// Technique from Juriy Zaytsev
// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
function isEventSupported(eventName) {
var el = document.createElement('div');
eventName = 'on' + eventName;
var isSupported = (eventName in el);
if (!isSuppor... | JavaScript |
/**
* Creates a new Floor.
* @constructor
* @param {google.maps.Map=} opt_map
*/
function Floor(opt_map) {
/**
* @type Array.<google.maps.MVCObject>
*/
this.overlays_ = [];
/**
* @type boolean
*/
this.shown_ = true;
if (opt_map) {
this.setMap(opt_map);
}
}
/**
* @param {google.maps.M... | JavaScript |
/**
* Creates a new level control.
* @constructor
* @param {IoMap} iomap the IO map controller.
* @param {Array.<string>} levels the levels to create switchers for.
*/
function LevelControl(iomap, levels) {
var that = this;
this.iomap_ = iomap;
this.el_ = this.initDom_(levels);
google.maps.event.addList... | JavaScript |
/**
* @license
*
* Copyright 2011 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 l... | JavaScript |
// Copyright 2011 Google
/**
* 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 to in wri... | JavaScript |
$(document).ready(function(){
bindLinks();
});
function bindLinks(){
$("#add_designee").bind('click',function(){
$.ajax({ type: "PUT", url: $("#AjaxController").val() + "?api=AddDesignee", async: false, data: viewGroupObjects(),
success: function(){
re... | JavaScript |
$(document).ready(function(){
$("#GroupDescription").width( $("#group_description").width() - 1 );
$("#save_description, #add_designee, #add_member, #add_guest").button();
bindDeleteButtons();
bindAddMemberElement();
bindSaveDescription();
bindAddDesigneeButton();
bindDeleteDesigneeBu... | JavaScript |
$(document).ready(function(){
$("#groups").tablesorter( );
}); | JavaScript |
$(document).ready(function(){
}); | JavaScript |
$(document).ready(function(){
//type-ahead
$("#GroupSearch").click(function(){
this.value = '';
});
//type-ahead
$("#GroupSearch").autocomplete({
source: function(request, response){
$("#GroupProgress").show();
$.ajax({
type... | JavaScript |
$(document).ready(function(){
$("#users").tablesorter( );
}); | JavaScript |
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
| JavaScript |
try {
var pageTracker = _gat._getTracker("UA-18761191-1");
pageTracker._trackPageview();
} catch(err) {}
| JavaScript |
function openPopupWindow(theURL, width, height) {
if (height == undefined && width == undefined){
var newWind = eval("window.open('"+theURL+"','popupwin','width=640,height=500,scrollbars=yes,resizable=yes')")}
else {
var newWind = eval("window.open('"+theURL+"','popupwin','width="+width+",h... | JavaScript |
/*
Copyright (C) 2011 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 to in writing, softwa... | JavaScript |
(function(window) {
var ORIGIN_ = location.protocol + '//' + location.host;
function SlideController() {
this.popup = null;
this.isPopup = window.opener;
if (this.setupDone()) {
window.addEventListener('message', this.onMessage_.bind(this), false);
// Close popups if we reload the main window.
win... | JavaScript |
/*
* Hammer.JS
* version 0.4
* author: Eight Media
* https://github.com/EightMedia/hammer.js
*/
function Hammer(element, options, undefined)
{
var self = this;
var defaults = {
// prevent the default event or not... might be buggy when false
prevent_default : false,
css_hacks ... | JavaScript |
/**
* @authors Luke Mahe
* @authors Eric Bidelman
* @fileoverview TODO
*/
document.cancelFullScreen = document.webkitCancelFullScreen ||
document.mozCancelFullScreen;
/**
* @constructor
*/
function SlideDeck(el) {
this.curSlide_ = 0;
this.prevSlide_ = 0;
this.config_ = null;
t... | JavaScript |
require(['order!../slide_config', 'order!modernizr.custom.45394',
'order!prettify/prettify', 'order!hammer', 'order!slide-controller',
'order!slide-deck'], function(someModule) {
});
| JavaScript |
var SLIDE_CONFIG = {
// Slide settings
settings: {
title: 'Title Goes Here<br>Up To Two Lines',
subtitle: 'Subtitle Goes Here',
useBuilds: true, // Default: true. False will turn off slide animation builds.
usePrettify: true, // Default: true
enableSlideAreas: true, // Default: true. False turns... | JavaScript |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time at http://ckeditor.com/builder to build CKEditor again.
*
... | JavaScript |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
| JavaScript |
/**
* @license Copyright (c) 2003-2013, 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 the complete reference:
// http://docs.ckeditor.com/#... | JavaScript |
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'myDialog', function( editor ) {
return {
title: 'My Dialog',
minWidth: 400,
minHeight: 200,
contents: [
{
id: 'tab1... | JavaScript |
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// Tool scripts for the sample pages.
// This file can be ignored and is not required to make use of CKEditor.
(function() {
// Check for sample complianc... | JavaScript |
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin, which shows a comb... | JavaScript |
//Useful links:
// http://code.google.com/apis/maps/documentation/javascript/reference.html#Marker
// http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding
// http://jqueryui.com/demos/autocomplete/#remote-with-cache
var geocoder;
var map;
va... | JavaScript |
(function() {
var showingNav = true;
$(document).ready( function () {
var jqNav = $('div.fw_nav');
jqNav.css('right', ($(window).width() - $('div.fw_container').width()) /2);
var n = $('div.nav_blocker')[0];
n.style.height = $(jqNav).outerHeight()+"px";
n.style.width = ($(jqNav).outerWidth()+20)+"px";
Syntax... | JavaScript |
/*
* jQuery Tooltip plugin 1.3
*
* http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
* http://docs.jquery.com/Plugins/Tooltip
*
* Copyright (c) 2006 - 2008 Jörn Zaefferer
*
* $Id: jquery.tooltip.js 5741 2008-06-21 15:22:16Z joern.zaefferer $
*
* Dual licensed under the MIT and GPL licenses:
* ht... | JavaScript |
/*
* Jeditable - jQuery in place edit plugin
*
* Copyright (c) 2006-2009 Mika Tuupola, Dylan Verheul
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Project home:
* http://www.appelsiini.net/projects/jeditable
*
* Based on editable by Dylan Verheul <dylan_at_d... | JavaScript |
/*
* File: unit_test.js
* Version: 0.0.1
* CVS: $Id$
* Description: Unit test framework
* Author: Allan Jardine (www.sprymedia.co.uk)
* Created: Sun Mar 8 22:02:49 GMT 2009
* Modified: $Date$ by $Author$
* Language: Javascript
* License: GPL v2 or BSD 3 point style
* Pro... | JavaScript |
var giTotalTestCount = 0;
var giActiveModule = 0;
var giModuleTests;
var giStartTime;
var giTest;
var gbStop = false;
var gtoTest;
function fnTestStart ( sTestInfo )
{
gaoTest[ giActiveModule ].iTests++;
document.getElementById('test_info').innerHTML +=
(giActiveModule+1)+'.'+(giModuleTests+1)+'. '+sTestInfo+'...... | JavaScript |
// DATA_TEMPLATE: dom_data
oTest.fnStart( "Sanity checks for DataTables with DOM data" );
oTest.fnTest(
"jQuery.dataTable function",
null,
function () { return typeof jQuery().dataTable == "function"; }
);
oTest.fnTest(
"jQuery.dataTableSettings storage array",
null,
function () { return typeof jQuery().dataTa... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.sClass" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(
"By default the test cla... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aaSorting" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(
"Default sorting is single colu... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoSearchCols" );
/* We could be here forever testing this one, so we test a limited subset on a couple of colums */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.t... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aaSortingFixed" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(
"No fixed sorting by defau... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnInitComplete" );
/* Fairly boring function compared to the others! */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSettings... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.fnRender" );
$(document).ready( function () {
/* Check the default */
var mTmp = 0;
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
"aoColumns": [
null,
{ "fnRender": function (a) {
mTmp++;
... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.sWidth" );
/* NOTE - we need to disable the auto width for the majority of these test in order to preform
* these tests as the auto width will convert the width to a px value. We can do 'non-exact' tests
* with auto width enabled however to ensure it scales co... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.sName" );
/* This has no effect at all in DOM methods - so we just check that it has applied the name */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.tx... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnRowCallback" );
/* Note - fnRowCallback MUST return the first arguments (modified or not) */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSetti... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.sTitle" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(
"If not given, then the ... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "iDisplayLength" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
oTest.fnWaitTest(
"Default length is ten",
null,
function () { return $('#example tbody tr'... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bFilter" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
oTest.fnWaitTest(
"Filtering div exists by default",
null,
function () { return document.getElemen... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "Sanity checks for DataTables with data from JS" );
oTest.fnTest(
"jQuery.dataTable function",
null,
function () { return typeof jQuery().dataTable == "function"; }
);
oTest.fnTest(
"jQuery.dataTableSettings storage array",
null,
function () { return typeof jQuery()... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sSearch" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(
"Search language is 'Se... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bPaginate" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
oTest.fnWaitTest(
"Pagiantion div exists by default",
null,
function () { return document.getEle... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sUrl" );
/* Note that we only test the internal storage of language information pulled form a file here
* as the other language tests will check it goes into the DOM correctly
*/
$(document).ready( function () {
/* Check the default */
var oTable = $('#examp... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bSort" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
oTest.fnWaitTest(
"Sorting is on by default",
null,
function () { return $('#example tbody td:eq(0)'... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "sAjaxSource" );
/* Sanitfy check really - all the other tests blast this */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSett... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sProcessing" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
"bProcessing": true
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oSearch" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(
"Default values should be blank",... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sLoadingRecords" );
$(document).ready( function () {
var tmp = false;
oTest.fnTest(
"Default loading text is 'Loading...'",
function () {
$('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
tmp = $('#exam... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnCreatedRow tests" );
$(document).ready( function () {
var tmp = 0;
var complete = false;
$('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
fnCreatedRow: function () {
tmp++;
}
} );
oTest.fnWaitTest(
"Row created is... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.sZeroRecords" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(
"Zero records lang... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "oLanguage.oPaginate" );
/* Note that the paging language information only has relevence in full numbers */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
"s... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnDrawCallback" );
/* Fairly boring function compared to the others! */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSettings... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bAutoWidth" );
/* It's actually a little tricky to test this. We can't test absolute numbers because
* different browsers and different platforms will render the width of the columns slightly
* differently. However, we certainly can test the principle of what should happ... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.bUseRendered" );
/* bUseRendered is used to alter sorting data, if false then the original data is used for
* sorting rather than the rendered data
*/
$(document).ready( function () {
/* Check the default */
var mTmp = 0;
var oTable = $('#example').dataTa... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnServerData for Ajax sourced data" );
$(document).ready( function () {
var mPass;
oTest.fnTest(
"Argument length",
function () {
$('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
"fnServerData": function () {
m... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "bLengthChange" );
$(document).ready( function () {
/* Check the default */
$('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
oTest.fnWaitTest(
"Length div exists by default",
null,
function () { return document.getEle... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "fnCreatedCell tests" );
$(document).ready( function () {
var tmp = 0;
var complete = false;
$('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
"aoColumnDefs": [ {
fnCreatedCell: function () {
tmp++;
},
"aTargets": ["... | JavaScript |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.bSortable" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
} );
var oSettings = oTable.fnSettings();
oTest.fnWaitTest(
"All columns are sort... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.