code
stringlengths
1
2.08M
language
stringclasses
1 value
jasmine.TrivialReporter = function(doc) { this.document = doc || document; this.suiteDivs = {}; this.logRunningSpecs = false; }; jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) { var el = document.createElement(type); for (var i = 2; i < arguments.length; i++) { var ...
JavaScript
window.model = function () { var STATUS = { pass: "PASS", fail: "FAIL", notRun: "NOT RUN" }; var KEYWORD_TYPE = { kw: 'KEYWORD', setup:'SETUP', teardown:'TEARDOWN' }; function Suite(data) { var suite = createModelObject(data); suite....
JavaScript
window.testdata = function () { var elementsById = {}; var idCounter = 0; var _statistics = null; var LEVELS = {T: 'trace', D: 'debug', I: 'info', H: 'info', W: 'warn', E: 'error', F: 'fail'}; var KEYWORD_TYPE = {kw: 'KEYWORD', setup: 'SETUP', teardown: 'TEARDOWN', ...
JavaScript
window.util = function () { function map(elems, func){ var ret = []; for (var i=0; i<elems.length; i++) { ret[i] = func(elems[i]); } return ret; } function filter(elems, predicate) { var ret = []; for (var i=0; i<elems.length; i++) { ...
JavaScript
function removeJavaScriptDisabledWarning() { $('#javascript_disabled').remove(); } function initLayout(suiteName, type) { parseTemplates(); setTitle(suiteName, type); addHeader(); addReportOrLogLink(type); } function parseTemplates() { $('script[type="text/x-jquery-tmpl"]').map(function (idx, ...
JavaScript
function openSuite(suiteId) { openElement(suiteId, ['keyword', 'suite', 'test']); } function openTest(testId) { openElement(testId, ['keyword']); } function openKeyword(kwId) { openElement(kwId, ['keyword', 'message']); } function addElements(elems, templateName, target){ for (var i in elems) { ...
JavaScript
//---public color schemes var ad_color_schemes = [ {id: "sys1", name: "初始", title: "0000FF", desc: "000000", link: "008000", border: "E6E6E6", bg: "FFFFFF", ctbg: "FFFFFF", bgpic: 0, corner: 0, icon:0}, {id: "sys2", name: "经典白", title: "0044DD", desc: "275689", link: "C1C1C1", border: "E1E1E1", bg:...
JavaScript
if(!this.JSON){JSON=function(){function f(n){return n<10?'0'+n:n;} Date.prototype.toJSON=function(){return this.getUTCFullYear()+'-'+ f(this.getUTCMonth()+1)+'-'+ f(this.getUTCDate())+'T'+ f(this.getUTCHours())+':'+ f(this.getUTCMinutes())+':'+ f(this.getUTCSeconds())+'Z';};var m={'\b':'\\b','\t':'\\t','\n':'\\...
JavaScript
/* * jQuery UI Tabs @VERSION * * Copyright (c) 2007, 2008 Klaus Hartl (stilbuero.de) * 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() { // create tab...
JavaScript
/* * jQuery UI @VERSION * * Copyright (c) 2008 Paul Bakaus (ui.jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ ;(function($) { /** jQuery core modifications and additions **/ $.keyCode = { BACKSPACE: 8, CAPS_LOCK: 20, COMMA: ...
JavaScript
/** * AliperLine是一条具有最大size的点组成的连线 * 当addPoint(x,y)超过最大尺寸后,会自动丢弃最前面的点 * 使得AliperLine的长度始终不超过最大尺寸 * */ function AliperLine(lineId,color){ this.needPointId = 0; this.points=[]; this.lineId = lineId; this.color = color; this.addPoint = function(x,y){ this.points[this.points.length] = [x,y]; this.needPointId+...
JavaScript
/** * 注意,callback为回调函数,它接受且只接受一个String作为参数 * callback的调用是异步的,这意味着服务器返回数据时才会调用callback * 而且不用等到服务器返回,你可以在ajax函数之后接着做其他的事情! * @param callback * @param url * @param isSyn 是否为同步调用 * @return * @author cori-chenxx */ function ajax(callback,url,syn) { var xmlHttp; try { // Firefox, Opera 8.0+, Safari ...
JavaScript
/* http://keith-wood.name/timeEntry.html Time entry for jQuery v1.4.9. Written by Keith Wood (kbwood{at}iinet.com.au) June 2007. Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. Please...
JavaScript
/* * Calculos estadisticos. * @Autor: Andrés Ubilla. */ /* CALCULOS GRASA CORPORAL */ function calcularPorcentajeGraso(){ var sexo = jQuery('#ctl0_cphMain_sexoPaciente').val(); var triceps = jQuery('#ctl0_cphMain_txtTriceps').val(); var subEscapular = jQuery('#ctl0_cphMain_txtSubEscapular').val(); ...
JavaScript
/** * Ajax Autocomplete for jQuery, version 1.1.5 * (c) 2010 Tomas Kirda, Vytautas Pranskunas * * Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license. * For details, see the web site: http://www.devbridge.com/projects/autocomplete/jquery/ * * Last Review: 07/24/2012 */ /*j...
JavaScript
/* jqBootstrapValidation * A plugin for automating validation on Twitter Bootstrap formatted forms. * * v1.3.3 * * http://ReactiveRaven.github.com/jqBootstrapValidation/ */ /* This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * a...
JavaScript
jQuery(document).on("click", ".ocultarEvaluaciones", function () { jQuery('#ctl0_cphMain_dgEvaluaciones').slideToggle(200); jQuery('.ocultarEvaluaciones').addClass('mostrarEvaluaciones'); jQuery('.ocultarEvaluaciones').removeClass('ocultarEvaluaciones'); document.getElementById('showHideEvaluaciones...
JavaScript
// script.aculo.us slider.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Marty Haught, Thomas Fuchs // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ if (!Control) var Control = { }; /...
JavaScript
// script.aculo.us sound.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Based on code created by Jules Gravinese (http://www.webveteran.com/) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // ...
JavaScript
// script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"),...
JavaScript
// script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ va...
JavaScript
//-------------------- ricoColor.js if(typeof(Rico) == "undefined") Rico = {}; Rico.Color = Class.create(); Rico.Color.prototype = { initialize: function(red, green, blue) { this.rgb = { r: red, g : green, b : blue }; }, setRed: function(r) { this.rgb.r = r; }, setGreen: f...
JavaScript
/** * TSlider client class. * This clas is mainly based on Scriptaculous Slider control (http://script.aculo.us) */ Prado.WebUI.TSlider = Class.extend(Prado.WebUI.PostBackControl, { onInit : function (options) { var slider = this; this.options=options || {}; this.track = $(options.ID+'_track'); this.handl...
JavaScript
Prado.WebUI.TTabPanel = Class.create(); Prado.WebUI.TTabPanel.prototype = { initialize : function(options) { this.element = $(options.ID); this.onInit(options); Prado.Registry.set(options.ID, this); }, onInit : function(options) { this.views = options.Views; this.viewsvis = options.ViewsVis...
JavaScript
Prado.WebUI.TKeyboard = Class.create(); Prado.WebUI.TKeyboard.prototype = { initialize : function(options) { this.element = $(options.ID); this.onInit(options); Prado.Registry.set(options.ID, this); }, onInit : function(options) { this.cssClass = options['CssClass']; this.forContro...
JavaScript
/* Created By: Corey Johnson E-mail: probablyCorey@gmail.com Requires: Prototype Javascript library (http://prototype.conio.net/) Use it all you want. Just remember to give me some credit :) */ // ------------ // Custom Event // ------------ CustomEvent = Class.create(); CustomEvent.prototype = { ...
JavaScript
Prado.WebUI.TRatingList = Base.extend( { selectedIndex : -1, rating: -1, readOnly : false, constructor : function(options) { var cap = $(options.CaptionID); this.options = Object.extend( { caption : cap ? cap.innerHTML : '' }, options || {}); Prado.WebUI.TRatingList.register(this); ...
JavaScript
/** * Prado base namespace * @namespace Prado */ var Prado = { /** * Version of Prado clientscripts * @var Version */ Version: '3.1', /** * Registry for Prado components * @var Registry */ Registry: $H(), /** * Returns browser information. * <pre> * var browser = Prado...
JavaScript
/** * Utilities and extions to Prototype/Scriptaculous * @file scriptaculous-adapter.js */ /** * Extension to * <a href="http://www.prototypejs.org/api/function" target="_blank">Prototype's Function</a> * @namespace Function */ /** * Similar to bindAsEventLister, but takes additional arguments. ...
JavaScript
Prado.WebUI.TActiveFileUpload = Base.extend( { constructor : function(options) { this.options = options || {}; Prado.WebUI.TActiveFileUpload.register(this); this.input = $(options.inputID); this.flag = $(options.flagID); this.form = $(options.formID); this.indicator = $(options.indicatorID); this....
JavaScript
/** * Prado client-side javascript validation fascade. * * <p>There are 4 basic classes: {@link Prado.Validation}, * {@link Prado.ValidationManager}, {@link Prado.WebUI.TValidationSummary} * and {@link Prado.WebUI.TBaseValidator}, * that interact together to perform validation. * The {@link Prado.Valida...
JavaScript
Prado.WebUI.TDatePicker = Class.create(); Object.extend(Prado.WebUI.TDatePicker, { /** * @return Date the date from drop down list options. */ getDropDownDate : function(control) { var now=new Date(); var year=now.getFullYear(); var month=now.getMonth(); var day=1; var month_list = this.g...
JavaScript
/** * TActiveDatePicker control */ Prado.WebUI.TActiveDatePicker = Class.extend(Prado.WebUI.TDatePicker, { initialize : function(options) { this.options = options || []; this.control = $(options.ID); this.dateSlot = new Array(42); this.weekSlot = new Array(6); this.minimalDaysInFirstWeek = 4; ...
JavaScript
Prado.WebUI.TInPlaceTextBox = Base.extend( { constructor : function(options) { this.isSaving = false; this.isEditing = false; this.editField = null; this.readOnly = options.ReadOnly; this.options = Object.extend( { LoadTextFromSource : false, TextMode : 'SingleLine' }, options ||...
JavaScript
Prado.AjaxRequest = Class.create(); Prado.AjaxRequest.prototype = Object.clone(Ajax.Request.prototype); /** * Override Prototype's response implementation. */ Object.extend(Prado.AjaxRequest.prototype, { /*initialize: function(request) { this.CallbackRequest = request; this.transport = Ajax.getTra...
JavaScript
/** * Generic postback control. */ Prado.WebUI.CallbackControl = Class.extend(Prado.WebUI.PostBackControl, { onPostBack : function(event, options) { var request = new Prado.CallbackRequest(options.EventTarget, options); request.dispatch(); Event.stop(event); } }); /** * TActiveButton control....
JavaScript
/* http://www.JSON.org/json2.js 2011-02-23 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE...
JavaScript
// script.aculo.us slider.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Marty Haught, Thomas Fuchs // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ if (!Control) var Control = { }; /...
JavaScript
// script.aculo.us sound.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Based on code created by Jules Gravinese (http://www.webveteran.com/) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // ...
JavaScript
// script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"),...
JavaScript
// script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ va...
JavaScript
//-------------------- ricoColor.js if(typeof(Rico) == "undefined") Rico = {}; Rico.Color = Class.create(); Rico.Color.prototype = { initialize: function(red, green, blue) { this.rgb = { r: red, g : green, b : blue }; }, setRed: function(r) { this.rgb.r = r; }, setGreen: f...
JavaScript
/* Simple Accordion Script * Requires Prototype and Script.aculo.us Libraries * By: Brian Crescimanno <brian.crescimanno@gmail.com> * http://briancrescimanno.com * Adapted to Prado & minor improvements: Gabor Berczi <gabor.berczi@devworx.hu> * This work is licensed under the Creative Commons Attribution-Share Ali...
JavaScript
/** * TSlider client class. * This clas is mainly based on Scriptaculous Slider control (http://script.aculo.us) */ Prado.WebUI.TSlider = Class.extend(Prado.WebUI.PostBackControl, { onInit : function (options) { var slider = this; this.options=options || {}; this.track = $(options.ID+'_track'); this.handl...
JavaScript
Prado.WebUI.TTabPanel = Class.create(Prado.WebUI.Control, { onInit : function(options) { this.views = options.Views; this.viewsvis = options.ViewsVis; this.hiddenField = $(options.ID+'_1'); this.activeCssClass = options.ActiveCssClass; this.normalCssClass = options.NormalCssClass; var length = op...
JavaScript
/* * * HtmlArea (tinyMCE) wrapper * * @author Gabor Berczi <gabor.berczi@devworx.hu> * */ Prado.WebUI.THtmlArea = Class.create(Prado.WebUI.Control, { initialize: function($super, options) { options.ID = options.EditorOptions.elements; $super(options); }, onInit : function(options)...
JavaScript
Prado.WebUI.TKeyboard = Class.create(Prado.WebUI.Control, { onInit : function(options) { this.cssClass = options['CssClass']; this.forControl = document.getElementById(options['ForControl']); this.autoHide = options['AutoHide']; this.flagShift = false; this.flagCaps = fa...
JavaScript
/* Created By: Corey Johnson E-mail: probablyCorey@gmail.com Requires: Prototype Javascript library (http://prototype.conio.net/) Use it all you want. Just remember to give me some credit :) */ // ------------ // Custom Event // ------------ CustomEvent = Class.create(); CustomEvent.prototype = { ...
JavaScript
Prado.WebUI.TRatingList = Base.extend( { selectedIndex : -1, rating: -1, readOnly : false, constructor : function(options) { var cap = $(options.CaptionID); this.options = Object.extend( { caption : cap ? cap.innerHTML : '' }, options || {}); Prado.WebUI.TRatingList.register(this); ...
JavaScript
/** * Prado base namespace * @namespace Prado */ var Prado = { /** * Version of Prado clientscripts * @var Version */ Version: '3.2', /** * Registry for Prado components * @var Registry */ Registry: $H(), /** * Returns browser information. * <pre> * var browser = Prado...
JavaScript
/** * Utilities and extions to Prototype/Scriptaculous * @file scriptaculous-adapter.js */ /** * Extension to * <a href="http://www.prototypejs.org/api/function" target="_blank">Prototype's Function</a> * @namespace Function */ /** * Similar to bindAsEventLister, but takes additional arguments. ...
JavaScript
Prado.WebUI.TActiveFileUpload = Class.create(Prado.WebUI.Control, { onInit : function(options) { this.options = options || {}; Prado.WebUI.TActiveFileUpload.register(this); this.input = $(options.inputID); this.flag = $(options.flagID); this.form = $(options.formID); this.indicator = $(options.indic...
JavaScript
/** * Prado client-side javascript validation fascade. * * <p>There are 4 basic classes: {@link Prado.Validation}, * {@link Prado.ValidationManager}, {@link Prado.WebUI.TValidationSummary} * and {@link Prado.WebUI.TBaseValidator}, * that interact together to perform validation. * The {@link Prado.Valida...
JavaScript
Prado.WebUI.TDatePicker = Class.create(Prado.WebUI.Control, { MonthNames : [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], AbbreviatedMonthNames : ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oc...
JavaScript
/** * TActiveDatePicker control */ Prado.WebUI.TActiveDatePicker = Class.create(Prado.WebUI.TDatePicker, { onInit : function(options) { this.options = options || []; this.control = $(options.ID); this.dateSlot = new Array(42); this.weekSlot = new Array(6); this.minimalDaysInFirstWeek = 4; th...
JavaScript
Prado.WebUI.TInPlaceTextBox = Class.create(Prado.WebUI.Control, { onInit : function(options) { this.isSaving = false; this.isEditing = false; this.editField = null; this.readOnly = options.ReadOnly; this.options = Object.extend( { LoadTextFromSource : false, TextMode : 'SingleLine' ...
JavaScript
Prado.AjaxRequest = Class.create(); Prado.AjaxRequest.prototype = Object.clone(Ajax.Request.prototype); /** * Override Prototype's response implementation. */ Object.extend(Prado.AjaxRequest.prototype, { /*initialize: function(request) { this.CallbackRequest = request; this.transport = Ajax.getTra...
JavaScript
/** * Generic postback control. */ Prado.WebUI.CallbackControl = Class.extend(Prado.WebUI.PostBackControl, { onPostBack : function(event, options) { var request = new Prado.CallbackRequest(options.EventTarget, options); request.dispatch(); Event.stop(event); } }); /** * TActiveButton control....
JavaScript
/* http://www.JSON.org/json2.js 2011-02-23 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE...
JavaScript
// DragDropExtra Scriptaculous Enhancement, version 0.5 // (c) 2007-2008 Christopher Williams, Iterative Designs // // v0.5 release // - Fixed bug where 2nd drag on an element in IE would result in funny placement of the // element. [shammond42] // v0.4 release // - Fixed issue with dragging and dropping...
JavaScript
// script.aculo.us slider.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Marty Haught, Thomas Fuchs // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ if (!Control) var Control = { }; /...
JavaScript
// script.aculo.us sound.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Based on code created by Jules Gravinese (http://www.webveteran.com/) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // ...
JavaScript
// script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"),...
JavaScript
// script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ va...
JavaScript
//-------------------- ricoColor.js if(typeof(Rico) == "undefined") Rico = {}; Rico.Color = Class.create(); Rico.Color.prototype = { initialize: function(red, green, blue) { this.rgb = { r: red, g : green, b : blue }; }, setRed: function(r) { this.rgb.r = r; }, setGreen: f...
JavaScript
/* Simple Accordion Script * Requires Prototype and Script.aculo.us Libraries * By: Brian Crescimanno <brian.crescimanno@gmail.com> * http://briancrescimanno.com * Adapted to Prado & minor improvements: Gabor Berczi <gabor.berczi@devworx.hu> * This work is licensed under the Creative Commons Attribution-Share Ali...
JavaScript
/** * TSlider client class. * This clas is mainly based on Scriptaculous Slider control (http://script.aculo.us) */ Prado.WebUI.TSlider = Class.extend(Prado.WebUI.PostBackControl, { onInit : function (options) { var slider = this; this.options=options || {}; this.track = $(options.ID+'_track'); this.handl...
JavaScript
Prado.WebUI.TTabPanel = Class.create(Prado.WebUI.Control, { onInit : function(options) { this.views = options.Views; this.viewsvis = options.ViewsVis; this.hiddenField = $(options.ID+'_1'); this.activeCssClass = options.ActiveCssClass; this.normalCssClass = options.NormalCssClass; var length = op...
JavaScript
/* * * HtmlArea (tinyMCE) wrapper * * @author Gabor Berczi <gabor.berczi@devworx.hu> * */ Prado.WebUI.THtmlArea = Class.create(Prado.WebUI.Control, { initialize: function($super, options) { options.ID = options.EditorOptions.elements; $super(options); }, onInit : function(options)...
JavaScript
Prado.WebUI.TKeyboard = Class.create(Prado.WebUI.Control, { onInit : function(options) { this.cssClass = options['CssClass']; this.forControl = document.getElementById(options['ForControl']); this.autoHide = options['AutoHide']; this.flagShift = false; this.flagCaps = fa...
JavaScript
/* Created By: Corey Johnson E-mail: probablyCorey@gmail.com Requires: Prototype Javascript library (http://prototype.conio.net/) Use it all you want. Just remember to give me some credit :) */ // ------------ // Custom Event // ------------ CustomEvent = Class.create(); CustomEvent.prototype = { ...
JavaScript
Prado.WebUI.TRatingList = Base.extend( { selectedIndex : -1, rating: -1, readOnly : false, constructor : function(options) { var cap = $(options.CaptionID); this.options = Object.extend( { caption : cap ? cap.innerHTML : '' }, options || {}); Prado.WebUI.TRatingList.register(this); ...
JavaScript
/** * Prado base namespace * @namespace Prado */ var Prado = { /** * Version of Prado clientscripts * @var Version */ Version: '3.2', /** * Registry for Prado components * @var Registry */ Registry: $H(), /** * Returns browser information. * <pre> * var browser = Prado...
JavaScript
/** * Utilities and extions to Prototype/Scriptaculous * @file scriptaculous-adapter.js */ /** * Extension to * <a href="http://www.prototypejs.org/api/function" target="_blank">Prototype's Function</a> * @namespace Function */ /** * Similar to bindAsEventLister, but takes additional arguments. ...
JavaScript
Prado.WebUI.TActiveFileUpload = Class.create(Prado.WebUI.Control, { onInit : function(options) { this.options = options || {}; Prado.WebUI.TActiveFileUpload.register(this); this.input = $(options.inputID); this.flag = $(options.flagID); this.form = $(options.formID); this.indicator = $(options.indic...
JavaScript
/** * Prado client-side javascript validation fascade. * * <p>There are 4 basic classes: {@link Prado.Validation}, * {@link Prado.ValidationManager}, {@link Prado.WebUI.TValidationSummary} * and {@link Prado.WebUI.TBaseValidator}, * that interact together to perform validation. * The {@link Prado.Valida...
JavaScript
Prado.WebUI.TDatePicker = Class.create(Prado.WebUI.Control, { MonthNames : [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], AbbreviatedMonthNames : ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oc...
JavaScript
/** * TActiveDatePicker control */ Prado.WebUI.TActiveDatePicker = Class.create(Prado.WebUI.TDatePicker, { onInit : function(options) { this.options = options || []; this.control = $(options.ID); this.dateSlot = new Array(42); this.weekSlot = new Array(6); this.minimalDaysInFirstWeek = 4; th...
JavaScript
Prado.WebUI.TInPlaceTextBox = Class.create(Prado.WebUI.Control, { onInit : function(options) { this.isSaving = false; this.isEditing = false; this.editField = null; this.readOnly = options.ReadOnly; this.options = Object.extend( { LoadTextFromSource : false, TextMode : 'SingleLine' ...
JavaScript
Prado.AjaxRequest = Class.create(); Prado.AjaxRequest.prototype = Object.clone(Ajax.Request.prototype); /** * Override Prototype's response implementation. */ Object.extend(Prado.AjaxRequest.prototype, { /*initialize: function(request) { this.CallbackRequest = request; this.transport = Ajax.getTra...
JavaScript
/** * Generic postback control. */ Prado.WebUI.CallbackControl = Class.extend(Prado.WebUI.PostBackControl, { onPostBack : function(event, options) { var request = new Prado.CallbackRequest(options.EventTarget, options); request.dispatch(); Event.stop(event); } }); /** * TActiveButton control....
JavaScript
/* http://www.JSON.org/json2.js 2011-02-23 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE...
JavaScript
// DragDropExtra Scriptaculous Enhancement, version 0.5 // (c) 2007-2008 Christopher Williams, Iterative Designs // // v0.5 release // - Fixed bug where 2nd drag on an element in IE would result in funny placement of the // element. [shammond42] // v0.4 release // - Fixed issue with dragging and dropping...
JavaScript
// SelBlocks name-space var selblocks = { name: "SelBlocks" }; (function($$){ /* Starting with FF4 lots of objects are in an XPCNativeWrapper, * and we need the underlying object for == and for..in operations. */ $$.unwrapObject = function(obj) { if (typeof(obj) === "undefined" || obj == null) ...
JavaScript
// selbocks name-space (function($$){ /* LOG wrapper for SelBlocks-specific behavior */ function Logger() { this.error = function (msg) { this.logit("error", msg); }; this.warn = function (msg) { this.logit("warn", msg); }; this.info = function (msg) { this.logit("info", msg); }; t...
JavaScript
// selbocks name-space (function($$){ /* Function interception */ $$.fn = {}; //@TODO It looks like functions intercepted by the following can't have any parameters. -Peter Kehl // execute the given function before each call of the specified function $$.fn.interceptBefore = function(targetObj, targ...
JavaScript
/** Provides richer functionality than is available via Selenium xpathEvaluator. * Used only by locator-builders, because it assumes a Firefox environment. */ // selbocks name-space (function($$){ $$.xp = { // Evaluate an xpathExpression against the given document object. // The document is als...
JavaScript
/* Copyright 2011 Chris Noe * Copyright 2011, 2012, 2013, 2014 Peter Kehl * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 1.1. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/1.1/. */ /** * SelBlocks Global = SelBlocks wit...
JavaScript
// selbocks name-space (function($$){ /* This function replaces native Selenium command handling while inside a try block. */ $$.handleAsTryBlock = function() { try { selenium.browserbot.runScheduledPollers(); this._executeCurrentCommand(); this.continueTestWhenConditionIsTrue();...
JavaScript
// selbocks name-space (function($$){ /* This function replaces native Selenium command handling for the exitScript command. * It alters command processing such that the script simply halts rather executing the next command. */ $$.handleAsExitTest = function() { try { selenium.browserbot.r...
JavaScript
/** Parse basic expressions. */ // selbocks name-space (function($$){ $$.InfixExpressionParser = { _objname : "InfixExpressionParser" ,BRACKET_PAIRS : { "(": ")", "{": "}", "[": "]" } ,trimListValues : true //- Parse a string into a list on the given delimiter character, // respect...
JavaScript
SeLiteExtensionSequencer.registerPlugin( { pluginId: 'selblocks-global@selite.googlecode.com', coreUrl: [ 'chrome://selite-selblocks-global/content/extensions/name-space.js', 'chrome://selite-selblocks-global/content/extensions/logger.js', 'chrome://selite-selblocks-global/content/extensions/f...
JavaScript
// Toggle a division as expanded or collapsed. // Also toggle the arrow icon. // Refer to the division and image by their IDs. // // "Collapsed" material is hidden using the // display property in CSS. // Used by adaptproduct function (see below) // to support adaptive doc in the Windows // version of the Help Browser...
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 w...
JavaScript
// Copyright 2011 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2011 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2010 Google Inc. All Rights Reserved. // // 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...
JavaScript
//Copyright 2010 Google Inc. All Rights Reserved. /** * @fileoverview This file contains the script manager. * * @author phu@google.com (Po Hu) */ goog.provide('rpf.ScriptManager'); goog.require('rpf.MiscHelper'); /** * A class for managing a given script. * @constructor * @export */ rpf.ScriptManager = ...
JavaScript
// Copyright 2010 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2010 Google Inc. All Rights Reserved. // // 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...
JavaScript