code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * @private */ Ext.define('Ext.fx.CubicBezier', { /* Begin Definitions */ singleton: true, /* End Definitions */ cubicBezierAtTime: function(t, p1x, p1y, p2x, p2y, duration) { var cx = 3 * p1x, bx = 3 * (p2x - p1x) - cx, ax = 1 - cx - bx, cy = 3 * p1y...
JavaScript
/** * @private */ Ext.define('Ext.fx.PropertyHandler', { /* Begin Definitions */ requires: ['Ext.draw.Draw'], statics: { defaultHandler: { pixelDefaultsRE: /width|height|top$|bottom$|left$|right$/i, unitRE: /^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/, sc...
JavaScript
/** * @class Ext.fx.Animator * * This class is used to run keyframe based animations, which follows the CSS3 based animation structure. * Keyframe animations differ from typical from/to animations in that they offer the ability to specify values * at various points throughout the animation. * * ## Using Keyframe...
JavaScript
/** * A Provider implementation which saves and retrieves state via cookies. The CookieProvider supports the usual cookie * options, such as: * * - {@link #path} * - {@link #expires} * - {@link #domain} * - {@link #secure} * * Example: * * var cp = Ext.create('Ext.state.CookieProvider', { * path...
JavaScript
/** * @class Ext.state.Manager * This is the global state manager. By default all components that are "state aware" check this class * for state information if you don't pass them a custom state provider. In order for this class * to be useful, it must be initialized with a provider when your application initialize...
JavaScript
/** * @class Ext.state.Stateful * A mixin for being able to save the state of an object to an underlying * {@link Ext.state.Provider}. */ Ext.define('Ext.state.Stateful', { /* Begin Definitions */ mixins: { observable: 'Ext.util.Observable' }, requires: ['Ext.state.Manager'], /* End ...
JavaScript
/** * @class Ext.state.Provider * <p>Abstract base class for state provider implementations. The provider is responsible * for setting values and extracting values to/from the underlying storage source. The * storage source can vary and the details should be implemented in a subclass. For example * a provider co...
JavaScript
/** * @class Ext.state.LocalStorageProvider * A Provider implementation which saves and retrieves state via the HTML5 localStorage object. * If the browser does not support local storage, an exception will be thrown upon instantiating * this class. */ Ext.define('Ext.state.LocalStorageProvider', { /* Begin De...
JavaScript
/** * A modal, floating Component which may be shown above a specified {@link Ext.Component Component} while loading data. * When shown, the configured owning Component will be covered with a modality mask, and the LoadMask's {@link #msg} will be * displayed centered, accompanied by a spinner image. * * If the {@l...
JavaScript
/** * Base class for all Ext components. * * The Component base class has built-in support for basic hide/show and enable/disable and size control behavior. * * ## xtypes * * Every component has a specific xtype, which is its Ext-specific type name, along with methods for checking the xtype * like {@link #getXT...
JavaScript
/** * Ext.Direct aims to streamline communication between the client and server by providing a single interface that * reduces the amount of common code typically required to validate data and handle returned data packets (reading data, * error conditions, etc). * * The Ext.direct namespace includes several classe...
JavaScript
/** * Supporting Class for Ext.Direct (not intended to be used directly). */ Ext.define('Ext.direct.Transaction', { /* Begin Definitions */ alias: 'direct.transaction', alternateClassName: 'Ext.Direct.Transaction', statics: { TRANSACTION_ID: 0 }, /* End Definitions */ ...
JavaScript
/** * @class Ext.direct.RemotingEvent * An event that is fired when data is received from a * {@link Ext.direct.RemotingProvider}. Contains a method to the * related transaction for the direct request, see {@link #getTransaction} */ Ext.define('Ext.direct.RemotingEvent', { /* Begin Definitions */ ...
JavaScript
/** * Small utility class used internally to represent a Direct method. * @private */ Ext.define('Ext.direct.RemotingMethod', { constructor: function(config){ var me = this, params = Ext.isDefined(config.params) ? config.params : config.len, name, pLen, p, param; me.name...
JavaScript
/** * @class Ext.direct.ExceptionEvent * An event that is fired when an exception is received from a {@link Ext.direct.RemotingProvider} */ Ext.define('Ext.direct.ExceptionEvent', { /* Begin Definitions */ extend: 'Ext.direct.RemotingEvent', alias: 'direct.exception', /* End Defini...
JavaScript
/** * Ext.direct.Provider is an abstract class meant to be extended. * * For example Ext JS implements the following subclasses: * * Provider * | * +---{@link Ext.direct.JsonProvider JsonProvider} * | * +---{@link Ext.direct.PollingProvider PollingProvider} * | * +...
JavaScript
/** * @class Ext.direct.JsonProvider A base provider for communicating using JSON. This is an abstract class and should not be instanced directly. * @markdown * @abstract */ Ext.define('Ext.direct.JsonProvider', { /* Begin Definitions */ extend: 'Ext.direct.Provider', alias: 'direct.jsonprovider',...
JavaScript
/** * @class Ext.direct.Event * A base class for all Ext.direct events. An event is * created after some kind of interaction with the server. * The event class is essentially just a data structure * to hold a Direct response. */ Ext.define('Ext.direct.Event', { /* Begin Definitions */ alias: 'direct.eve...
JavaScript
/** * @class Ext.direct.RemotingProvider * * <p>The {@link Ext.direct.RemotingProvider RemotingProvider} exposes access to * server side methods on the client (a remote procedure call (RPC) type of * connection where the client can initiate a procedure on the server).</p> * * <p>This allows for code to be orga...
JavaScript
/** * @class Ext.ComponentManager * <p>Provides a registry of all Components (instances of {@link Ext.Component} or any subclass * thereof) on a page so that they can be easily accessed by {@link Ext.Component component} * {@link Ext.Component#id id} (see {@link #get}, or the convenience method {@link Ext#getCmp Ex...
JavaScript
//@tail /* * This file represents the very last stage of the Ext definition process and is ensured * to be included at the end of the build via the 'tail' package of extjs.jsb3. * */ Ext._endTime = new Date().getTime(); if (Ext._beforereadyhandler){ Ext._beforereadyhandler(); }
JavaScript
/** * @private * @class Ext.util.LruCache * @extend Ext.util.HashMap * A linked {@link Ext.util.HashMap HashMap} implementation which maintains most recently accessed * items at the end of the list, and purges the cache down to the most recently accessed {@link #maxSize} items * upon add. */ Ext.define('Ext.util...
JavaScript
/** * Utility class for manipulating CSS rules * @singleton */ Ext.define('Ext.util.CSS', (function() { var rules = null, doc = document, camelRe = /(-[a-z])/gi, camelFn = function(m, a){ return a.charAt(1).toUpperCase(); }; return { singleton: true, constructor: fu...
JavaScript
/** * @docauthor Tommy Maintz <tommy@sencha.com> * * A mixin which allows a data component to be sorted. This is used by e.g. {@link Ext.data.Store} and {@link Ext.data.TreeStore}. * * **NOTE**: This mixin is mainly for internal use and most users should not need to use it directly. It * is more likely you will w...
JavaScript
/** * Represents a 2D point with x and y properties, useful for comparison and instantiation * from an event: * * var point = Ext.util.Point.fromEvent(e); * */ Ext.define('Ext.util.Point', { /* Begin Definitions */ extend: 'Ext.util.Region', statics: { /** * Returns a new insta...
JavaScript
/* * The dirty implementation in this class is quite naive. The reasoning for this is that the dirty state * will only be used in very specific circumstances, specifically, after the render process has begun but * the component is not yet rendered to the DOM. As such, we want it to perform as quickly as possible * ...
JavaScript
/** * This animation class is a mixin. * * Ext.util.Animate provides an API for the creation of animated transitions of properties and styles. * This class is used as a mixin and currently applied to {@link Ext.Element}, {@link Ext.CompositeElement}, * {@link Ext.draw.Sprite}, {@link Ext.draw.CompositeSprite}, and...
JavaScript
/** * A mixin to add floating capability to a Component. */ Ext.define('Ext.util.Floating', { uses: ['Ext.Layer', 'Ext.window.Window'], /** * @cfg {Boolean} focusOnToFront * Specifies whether the floated component should be automatically {@link Ext.Component#method-focus focused} when * it is...
JavaScript
/** * This mixin enables classes to declare relationships to child elements and provides the * mechanics for acquiring the {@link Ext.Element elements} and storing them on an object * instance as properties. * * This class is used by {@link Ext.Component components} and {@link Ext.layout.container.Container contai...
JavaScript
/** * Represents a single sorter that can be applied to a Store. The sorter is used * to compare two values against each other for the purpose of ordering them. Ordering * is achieved by specifying either: * * - {@link #property A sorting property} * - {@link #sorterFn A sorting function} * * As a contrived exa...
JavaScript
/** * Base class that provides a common interface for publishing events. Subclasses are expected to to have a property * "events" with all the events defined, and, optionally, a property "listeners" with configured listeners defined. * * For example: * * Ext.define('Employee', { * mixins: { * ...
JavaScript
/** * A subclass of Ext.dd.DragTracker which handles dragging any Component. * * This is configured with a Component to be made draggable, and a config object for the {@link Ext.dd.DragTracker} * class. * * A {@link #delegate} may be provided which may be either the element to use as the mousedown target or a {@l...
JavaScript
/** * An internal Queue class. * @private */ Ext.define('Ext.util.Queue', { constructor: function() { this.clear(); }, add : function(obj) { var me = this, key = me.getKey(obj); if (!me.map[key]) { ++me.length; me.items.push(obj); ...
JavaScript
/** * Represents a filter that can be applied to a {@link Ext.util.MixedCollection MixedCollection}. Can either simply * filter on a property/value pair or pass in a filter function with custom logic. Filters are always used in the * context of MixedCollections, though {@link Ext.data.Store Store}s frequently create...
JavaScript
/** * General purpose inflector class that {@link #pluralize pluralizes}, {@link #singularize singularizes} and * {@link #ordinalize ordinalizes} words. Sample usage: * * //turning singular words into plurals * Ext.util.Inflector.pluralize('word'); //'words' * Ext.util.Inflector.pluralize('person'); /...
JavaScript
/** * Handles mapping key events to handling functions for an element or a Component. One KeyMap can be used for multiple * actions. * * A KeyMap must be configured with a {@link #target} as an event source which may be an Element or a Component. * * If the target is an element, then the `keydown` event will trig...
JavaScript
/** * @class Ext.util.AbstractMixedCollection * @private */ Ext.define('Ext.util.AbstractMixedCollection', { requires: ['Ext.util.Filter'], mixins: { observable: 'Ext.util.Observable' }, /** * @property {Boolean} isMixedCollection * `true` in this class to identify an object as an...
JavaScript
/** * Provides a convenient wrapper for normalized keyboard navigation. KeyNav allows you to bind navigation keys to * function calls that will get called when the keys are pressed, providing an easy way to implement custom navigation * schemes for any UI component. * * The following are all of the possible keys t...
JavaScript
/** * This class represents a rectangular region in X,Y space, and performs geometric * transformations or tests upon the region. * * This class may be used to compare the document regions occupied by elements. */ Ext.define('Ext.util.Region', { /* Begin Definitions */ requires: ['Ext.util.Offset'], ...
JavaScript
/** * @class Ext.util.MixedCollection * <p> * Represents a collection of a set of key and value pairs. Each key in the MixedCollection * must be unique, the same key cannot exist twice. This collection is ordered, items in the * collection can be accessed by index or via the key. Newly added items are added to *...
JavaScript
/** * @class Ext.util.Grouper Represents a single grouper that can be applied to a Store. The grouper works in the same fashion as the {@link Ext.util.Sorter}. * @markdown */ Ext.define('Ext.util.Grouper', { /* Begin Definitions */ extend: 'Ext.util.Sorter', /* End Definitions */ isGrouper:...
JavaScript
/** * @class Ext.util.Memento * This class manages a set of captured properties from an object. These captured properties * can later be restored to an object. */ Ext.define('Ext.util.Memento', (function () { function captureOne (src, target, prop, prefix) { src[prefix ? prefix + prop : prop] = target[...
JavaScript
/** * Provides precise pixel measurements for blocks of text so that you can determine exactly how high and * wide, in pixels, a given block of text will be. Note that when measuring text, it should be plain text and * should not contain any HTML, otherwise it may not be measured correctly. * * The measurement wor...
JavaScript
/** * @class Ext.util.HashMap * <p> * Represents a collection of a set of key and value pairs. Each key in the HashMap * must be unique, the same key cannot exist twice. Access to items is provided via * the key only. Sample usage: * <pre><code> var map = new Ext.util.HashMap(); map.add('key1', 1); map.add('key2'...
JavaScript
/** * Given a component hierarchy of this: * * { * xtype: 'panel', * id: 'ContainerA', * layout: 'hbox', * renderTo: Ext.getBody(), * items: [ * { * id: 'ContainerB', * xtype: 'container', * ite...
JavaScript
/** * History management component that allows you to register arbitrary tokens that signify application * history state on navigation actions. You can then handle the history {@link #change} event in order * to reset your application UI to the appropriate state when the user navigates forward or backward through ...
JavaScript
/** * Utility class for setting/reading values from browser cookies. * Values can be written using the {@link #set} method. * Values can be read using the {@link #get} method. * A cookie can be invalidated on the client machine using the {@link #clear} method. */ Ext.define('Ext.util.Cookies', { singleton: tru...
JavaScript
/** * This class is used as a mixin. * * This class is to be used to provide basic methods for binding/unbinding stores to other * classes. In general it will not be used directly. */ Ext.define('Ext.util.Bindable', { /** * Binds a store to this instance. * @param {Ext.data.AbstractStore/String}...
JavaScript
/** * A wrapper class which can be applied to any element. Fires a "click" event while the * mouse is pressed. The interval between firings may be specified in the config but * defaults to 20 milliseconds. * * Optionally, a CSS class may be applied to the element during the time it is pressed. */ Ext.define('Ext....
JavaScript
/** * @private */ Ext.define('Ext.util.Offset', { /* Begin Definitions */ statics: { fromObject: function(obj) { return new this(obj.x, obj.y); } }, /* End Definitions */ constructor: function(x, y) { this.x = (x != null && !isNaN(x)) ? x : 0; this.y...
JavaScript
/** * @private */ Ext.define('Ext.chart.MaskLayer', { extend: 'Ext.Component', constructor: function(config) { config = Ext.apply(config || {}, { style: 'position:absolute;background-color:#888;cursor:move;opacity:0.6;border:1px solid #222;' }); this.callParent([config...
JavaScript
/** * @class Ext.chart.Callout * A mixin providing callout functionality for Ext.chart.series.Series. */ Ext.define('Ext.chart.Callout', { /* Begin Definitions */ /* End Definitions */ constructor: function(config) { if (config.callouts) { config.callouts.styles = Ext.applyIf(confi...
JavaScript
/** * A type of axis whose units are measured in time values. Use this axis * for listing dates that you will want to group or dynamically change. * If you just want to display dates as categories then use the * Category class for axis instead. * * For example: * * axes: [{ * type: 'Time', * ...
JavaScript
/** * @class Ext.chart.axis.Gauge * * Gauge Axis is the axis to be used with a Gauge series. The Gauge axis * displays numeric data from an interval defined by the `minimum`, `maximum` and * `step` configuration properties. The placement of the numeric data can be changed * by altering the `margin` option that is...
JavaScript
/** * @class Ext.chart.axis.Axis * * Defines axis for charts. The axis position, type, style can be configured. * The axes are defined in an axes array of configuration objects where the type, * field, grid and other configuration options can be set. To know more about how * to create a Chart please check the Cha...
JavaScript
/** * @class Ext.chart.axis.Category * * A type of axis that displays items in categories. This axis is generally used to * display categorical information like names of items, month names, quarters, etc. * but no quantitative values. For that other type of information `Number` * axis are more suitable. * * As ...
JavaScript
/** * @class Ext.chart.axis.Numeric * * An axis to handle numeric values. This axis is used for quantitative data as * opposed to the category axis. You can set mininum and maximum values to the * axis so that the values are bound to that. If no values are set, then the * scale will auto-adjust to the values. * ...
JavaScript
/** * @private */ Ext.define('Ext.chart.axis.Radial', { /* Begin Definitions */ extend: 'Ext.chart.axis.Abstract', /* End Definitions */ position: 'radial', alias: 'axis.radial', drawAxis: function(init) { var chart = this.chart, surface = chart.surface, b...
JavaScript
/** * @class Ext.chart.axis.Abstract * Base class for all axis classes. * @private */ Ext.define('Ext.chart.axis.Abstract', { /* Begin Definitions */ requires: ['Ext.chart.Chart'], /* End Definitions */ /** * @cfg {Ext.chart.Label} label * The config for chart label. */ /...
JavaScript
/** * @class Ext.chart.Tip * Provides tips for Ext.chart.series.Series. */ Ext.define('Ext.chart.Tip', { /* Begin Definitions */ requires: ['Ext.tip.ToolTip', 'Ext.chart.TipSurface'], /* End Definitions */ constructor: function(config) { var me = this, surface, spr...
JavaScript
/** * @class Ext.chart.series.Line * @extends Ext.chart.series.Cartesian * * Creates a Line Chart. A Line Chart is a useful visualization technique to display quantitative information for different * categories or other real values (as opposed to the bar chart), that can show some progression (or regression) in th...
JavaScript
/** * @class Ext.chart.series.Column * * Creates a Column Chart. Much of the methods are inherited from Bar. A Column Chart is a useful * visualization technique to display quantitative information for different categories that can * show some progression (or regression) in the data set. As with all other series, ...
JavaScript
/** * @class Ext.chart.series.Gauge * * Creates a Gauge Chart. Gauge Charts are used to show progress in a certain variable. There are two ways of using the Gauge chart. * One is setting a store element into the Gauge and selecting the field to be used from that store. Another one is instantiating the * visualiza...
JavaScript
/** * Creates a Bar Chart. A Bar Chart is a useful visualization technique to display quantitative information for * different categories that can show some progression (or regression) in the dataset. As with all other series, the Bar * Series must be appended in the *series* Chart array configuration. See the Chart...
JavaScript
/** * @class Ext.chart.series.Cartesian * * Common base class for series implementations which plot values using x/y coordinates. */ Ext.define('Ext.chart.series.Cartesian', { /* Begin Definitions */ extend: 'Ext.chart.series.Series', alternateClassName: ['Ext.chart.CartesianSeries', 'Ext.chart.Carte...
JavaScript
/** * @class Ext.chart.series.Area * @extends Ext.chart.series.Cartesian * * Creates a Stacked Area Chart. The stacked area chart is useful when displaying multiple aggregated layers of information. * As with all other series, the Area Series must be appended in the *series* Chart array configuration. See the Char...
JavaScript
/** * @class Ext.chart.series.Series * * Series is the abstract class containing the common logic to all chart series. Series includes * methods from Labels, Highlights, Tips and Callouts mixins. This class implements the logic of handling * mouse events, animating, hiding, showing all elements and returning the c...
JavaScript
/** * @class Ext.chart.series.Radar * * Creates a Radar Chart. A Radar Chart is a useful visualization technique for comparing different quantitative values for * a constrained number of categories. * * As with all other series, the Radar series must be appended in the *series* Chart array configuration. See the ...
JavaScript
/** * @class Ext.chart.series.Pie * * Creates a Pie Chart. A Pie Chart is a useful visualization technique to display quantitative information for different * categories that also have a meaning as a whole. * As with all other series, the Pie Series must be appended in the *series* Chart array configuration. See t...
JavaScript
/** * @class Ext.chart.series.Scatter * @extends Ext.chart.series.Cartesian * * Creates a Scatter Chart. The scatter plot is useful when trying to display more than two variables in the same visualization. * These variables can be mapped into x, y coordinates and also to an element's radius/size, color, etc. * As...
JavaScript
/** * @class Ext.chart.LegendItem * A single item of a legend (marker plus label) */ Ext.define('Ext.chart.LegendItem', { /* Begin Definitions */ extend: 'Ext.draw.CompositeSprite', requires: ['Ext.chart.Shape'], /* End Definitions */ // Position of the item, relative to the upper-left corne...
JavaScript
/** * @class Ext.chart.Legend * * Defines a legend for a chart's series. * The 'chart' member must be set prior to rendering. * The legend class displays a list of legend items each of them related with a * series being rendered. In order to render the legend item of the proper series * the series configuration ...
JavaScript
/** * @private */ Ext.define('Ext.chart.TipSurface', { /* Begin Definitions */ extend: 'Ext.draw.Component', /* End Definitions */ spriteArray: false, renderFirst: true, constructor: function(config) { this.callParent([config]); if (config.sprites) { this.sprit...
JavaScript
/** * @class Ext.chart.Navigation * * Handles panning and zooming capabilities. * * Used as mixin by Ext.chart.Chart. */ Ext.define('Ext.chart.Navigation', { constructor: function() { this.originalStore = this.store; }, /** * Zooms the chart to the specified selection range. * Can ...
JavaScript
/** * Defines a mask for a chart's series. * The 'chart' member must be set prior to rendering. * * A Mask can be used to select a certain region in a chart. * When enabled, the `select` event will be triggered when a * region is selected by the mask, allowing the user to perform * other tasks like zooming on th...
JavaScript
/** * Provides default colors for non-specified things. Should be sub-classed when creating new themes. * @private */ Ext.define('Ext.chart.theme.Base', { /* Begin Definitions */ requires: ['Ext.chart.theme.Theme'], /* End Definitions */ constructor: function(config) { Ext.chart.theme.cal...
JavaScript
/** * @class Ext.chart.theme.Theme * * Provides chart theming. * * Used as mixins by Ext.chart.Chart. */ Ext.define('Ext.chart.theme.Theme', { /* Begin Definitions */ requires: ['Ext.draw.Color'], /* End Definitions */ theme: 'Base', themeAttrs: false, initTheme: function(theme)...
JavaScript
/** * @class Ext.chart.Label * * Labels is a mixin to the Series class. Labels methods are implemented * in each of the Series (Pie, Bar, etc) for label creation and placement. * * The methods implemented by the Series are: * * - **`onCreateLabel(storeItem, item, i, display)`** Called each time a new label is c...
JavaScript
/** * @class Ext.chart.Highlight * A mixin providing highlight functionality for Ext.chart.series.Series. */ Ext.define('Ext.chart.Highlight', { /* Begin Definitions */ requires: ['Ext.fx.Anim'], /* End Definitions */ /** * Highlight the given series item. * @param {Boolean/Object} Defa...
JavaScript
/** * @private */ Ext.define('Ext.chart.Shape', { /* Begin Definitions */ singleton: true, /* End Definitions */ circle: function (surface, opts) { return surface.add(Ext.apply({ type: 'circle', x: opts.x, y: opts.y, stroke: null, ...
JavaScript
/* Ext JS 4.1 - JavaScript Library Copyright (c) 2006-2012, Sencha Inc. All rights reserved. licensing@sencha.com http://www.sencha.com/license Open Source License ------------------------------------------------------------------------------------------ This version of Ext JS is licensed under the terms of the Open ...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } } ); /* Default class modification */ $.extend...
JavaScript
/* jqBootstrapValidation * A plugin for automating validation on Twitter Bootstrap formatted forms. * * v1.3.6 * * License: MIT <http://opensource.org/licenses/mit-license.php> - see LICENSE file * * http://ReactiveRaven.github.com/jqBootstrapValidation/ */ (function( $ ){ var createdElements = []; var def...
JavaScript
/* * Dialog2: Yet another dialog plugin for jQuery. * * This time based on bootstrap styles with some nice ajax control features, * zero dependencies to jQuery.UI and basic options to control it. * * Licensed under the MIT license * http://www.opensource.org/licenses/mit-license.php * * @version: 2.0.0 (...
JavaScript
/* * Dialog2: Yet another dialog plugin for jQuery. * * This time based on bootstrap styles with some nice ajax control features, * zero dependencies to jQuery.UI and basic options to control it. * * Licensed under the MIT license * http://www.opensource.org/licenses/mit-license.php * * @version: 2.0.0 (...
JavaScript
/* * File: TableTools.js * Version: 2.1.4 * Description: Tools and buttons for DataTables * Author: Allan Jardine (www.sprymedia.co.uk) * Language: Javascript * License: GPL v2 or BSD 3 point style * Project: DataTables * * Copyright 2009-2012 Allan Jardine, all rights reserved. * ...
JavaScript
// Simple Set Clipboard System // Author: Joseph Huckaby var ZeroClipboard_TableTools = { version: "1.0.4-TableTools2", clients: {}, // registered upload clients on page, indexed by id moviePath: '', // URL to movie nextId: 1, // ID of next movie $: function(thingy) { // simple DOM lookup utility function ...
JavaScript
/*! * jQuery Simulate v0.0.1 - simulate browser mouse and keyboard events * https://github.com/jquery/jquery-simulate * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Sun Dec 9 12:15:33 2012 -0500 */ ;(function( $, undefined )...
JavaScript
app = function(){ return {init : function(){ Ext.BLANK_IMAGE_URL = 'js/extjs/resources/images/default/s.gif'; Ext.QuickTips.init(); //导航区所有面板,添加面板需在此更新 var westPanelArray = [systemIntro_panel, //系统简介 baseInfo_panel,monitor_panel]; //基础信息 //导航面板,采用card布局 var westPanel = { ...
JavaScript
//基础信息导航面板 var baseInfo_panel = { region:'west', id:'baseinfo_panel', title:'基础信息', collapsible :false, margins:'0 0 0 0', split:true, width: 210, minSize:150, autoEl : {}, ...
JavaScript
var http = require('http'); var path = require('path'); var qs = require('querystring'); var fs = require('fs'); var url = require('url'); //����http client���� var weibo_client = http.createClient(7080,'http://127.0.0.1:7080/apple'); //��ȡ��̬�ļ� var load_static_file = function(uri,response){ var filename...
JavaScript
//监测导航面板 var monitor_panel = { region:'west', id:'monitor_panel', title:'监测', collapsible :false, margins:'0 0 0 0', split:true, width: 210, minSize:150, autoEl : {}, ...
JavaScript
//系统简介导航面板 var systemIntro_panel = { region:'west', id:'systemIntro_panel', title:'系统简介', collapsible :false, margins:'0 0 0 0', split:true, width: 210, minSize:150, maxSize:250,...
JavaScript
/**窗口表单添加(修改)数据提交*/ var Window_SaveSubmit=function(postUrl,txt){ if(fp.getForm().isValid()){ //setDate(); fp.getForm().submit({ waitMsg : "正在提交数据……", waitTitle : "提示", url : postUrl, method : "post", success : function(form, action) { Ext.Msg.alert("提示",txt+"成功!...
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
function number_format1( number, decimals, dec_point, thousands_sep ) { var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals; var d = dec_point == undefined ? "." : dec_point; var t = thousands_sep == undefined ? "," : thousands_sep, s = n < 0 ? "-" : ""; var i = parseInt(n = Math.abs...
JavaScript
//==========================================================================================// //A fun??o abaixo exibe em um layer especifico um texto de ajuda hint a fun??o mais abaixo //limpa o layer function ShowInfo(whattoshow) { var InfoFrame = top.document.getElementById("INFO").contentWindow; InfoFrame.do...
JavaScript