code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: forum_moderate.js 21562 2011-03-31 08:40:33Z monkey $
*/
function modaction(action, pid, extra, mod) {
if(!action) {
return;
}
var mod = mod ? mod : 'forum.php?mod=topicadmin';
var extra = !extra ?... | JavaScript |
var j = jQuery.noConflict();
if (typeof disallowfloat == 'undefined' || disallowfloat === null) {
var disallowfloat = '';
}
var currentNormalEditDisplay = 0;
j(document).ready(function() {
ajaxGetSearchResultThreads();
j('#previewForm').submit(function() {
return previewFormSubmit();
});
});
... | JavaScript |
function submitForm() {
if (dialogHtml == '') {
dialogHtml = $('siteInfo').innerHTML;
$('siteInfo').innerHTML = '';
}
showWindow(null, dialogHtml, 'html');
$('fwin_null').style.top = '80px';
$('cloud_api_ip').value = cloudApiIp;
return false;
}
function dealHandle(msg) {
getMsg = true;... | JavaScript |
var gSetColorType = "";
var gIsIE = document.all;
var gIEVer = fGetIEVer();
var gLoaded = false;
var ev = null;
var gIsHtml = true;
var pos = 0;
var sLength = 0;
function fGetEv(e){
ev = e;
}
function fGetIEVer(){
var iVerNo = 0;
var sVer = navigator.userAgent;
if(sVer.indexOf("MSIE")>-1){
var ... | JavaScript |
function uploadEdit(obj) {
mainForm = obj.form;
forms = $('attachbody').getElementsByTagName("FORM");
albumid = $('uploadalbum').value;
edit_save();
upload();
}
function edit_save() {
var p = window.frames['uchome-ifrHtmlEditor'];
var obj = p.window.frames['HtmlEditor'];
var status = p.document.getE... | JavaScript |
var userAgent = navigator.userAgent.toLowerCase();
var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3);
var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAgent.indexOf... | JavaScript |
var controlid = null;
var currdate = null;
var startdate = null;
var enddate = null;
var yy = null;
var mm = null;
var hh = null;
var ii = null;
var currday = null;
var addtime = false;
var today = new Date();
var lastcheckedyear = false;
var lastcheckedmonth = false;
function loadcalendar() {
s = '';... | JavaScript |
//Common
var userAgent = navigator.userAgent.toLowerCase();
var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3);
var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAge... | JavaScript |
var Ajaxs = new Array();
function Ajax(waitId) {
var aj = new Object();
aj.waitId = waitId ? $(waitId) : null;
aj.targetUrl = '';
aj.sendString = '';
aj.resultHandle = null;
aj.loading = '<img src="image/common/loading.gif" style="margin: 3px; vertical-align: middle" />Loading... ';
aj.createXMLHttpReque... | JavaScript |
var url = window.location.href;
var siteUrl = url.substr(0, url.indexOf('api/manyou/cloud_channel.htm'));
var params = getUrlParams(url);
var action = params['action'];
var identifier = params['identifier'];
setTopFrame();
changPageStatus(identifier);
function changPageStatus(identifier) {
var navTex... | JavaScript |
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject = function() {
var UNDEF = "undefined",
OBJECT = "object",
SHOCKWAVE_FLASH = "Shockwave Flash",
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlas... | JavaScript |
BrowserHistoryUtils = {
addEvent: function(elm, evType, fn, useCapture) {
useCapture = useCapture || false;
if (elm.addEventListener) {
elm.addEventListener(evType, fn, useCapture);
return true;
}
else if (elm.attachEvent) {
var r = elm.attachEvent... | JavaScript |
<script type="text/javascript">
alert("YES!");
</script> | JavaScript |
$(document).ready(function() {
var logger = $("#log");
/**
$("#user_btn_container").css({
top: $(window).height() - 50,
left: $(window).width() - 400
});
*/
/**
* Data structure to store the user chat history
* @Format
* {
* email1 : {
* name: 'Test',
* history: 'Chat... | JavaScript |
Ext.gesture.Manager = new Ext.AbstractManager({
eventNames: {
start: 'touchstart',
move: 'touchmove',
end: 'touchend'
},
defaultPreventedMouseEvents: ['click'],
clickMoveThreshold: 5,
init: function() {
this.targets = [];
this.followTouches = [];
t... | JavaScript |
/**
* @class Ext.LayoutManager
* <p>Provides a registry of all Layouts (instances of {@link Ext.layout.Layout} or any subclass
* thereof) on a page.
* @singleton
*/
Ext.layout.LayoutManager = new Ext.AbstractManager({
/**
* Creates a new Component from the specified config object using the
* config o... | JavaScript |
/**
* @class Ext.plugins.ListPagingPlugin
* @extends Ext.util.Observable
* Adds a Load More button at the bottom of the list. When the user presses this button,
* the next page of data will be loaded into the store and appended to the List.
*/
Ext.plugins.ListPagingPlugin = Ext.extend(Ext.util.Observable, {
/*... | JavaScript |
/**
* @class Ext.lib.Component
* @extends Ext.util.Observable
* Shared Component class
*/
Ext.lib.Component = Ext.extend(Ext.util.Observable, {
isComponent: true,
/**
* @cfg {Mixed} renderTpl
* <p>An {@link Ext.XTemplate XTemplate} used to create the internal structure inside this Component's
... | JavaScript |
/**
* @class Ext
*/
Ext.apply(Ext, {
/**
* The version of the framework
* @type String
*/
version : '1.1.1',
versionDetail : {
major : 1,
minor : 1,
patch : 1
},
/**
* Sets up a page for use on a mobile device.
* @param {Object} config
*
... | JavaScript |
/**
* @author Ed Spencer
* @class Ext.data.JsonWriter
* @extends Ext.data.Writer
*
* <p>Writer that outputs model data in JSON format</p>
*/
Ext.data.JsonWriter = Ext.extend(Ext.data.Writer, {
/**
* @cfg {String} root The key under which the records in this Writer will be placed. Defaults to 'records'.
... | JavaScript |
/**
* @author Ed Spencer
* @class Ext.data.XmlWriter
* @extends Ext.data.Writer
*
* <p>Writer that outputs model data in XML format</p>
*/
Ext.data.XmlWriter = Ext.extend(Ext.data.Writer, {
/**
* @cfg {String} documentRoot The name of the root element of the document. Defaults to <tt>'xmlData'</tt>.
... | JavaScript |
/**
* @author Ed Spencer
* @class Ext.data.Batch
* @extends Ext.util.Observable
*
* <p>Provides a mechanism to run one or more {@link Ext.data.Operation operations} in a given order. Fires the 'operationcomplete' event
* after the completion of each Operation, and the 'complete' event when all Operations have be... | JavaScript |
/**
* @class Ext
* Ext core utilities and functions.
* @singleton
*/
if (typeof Ext === "undefined") {
Ext = {};
}
/**
* Copies all the properties of config to obj.
* @param {Object} object The receiver of the properties
* @param {Object} config The source of the properties
* @param {Object} defaults A dif... | JavaScript |
/**
* @class Ext.ComponentMgr
* @extends Ext.AbstractManager
* <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... | JavaScript |
/**
* @class Ext.History
* @extends Ext.util.Observable
* @ignore
* @private
*
* Mobile-optimized port of Ext.History. Note - iPad on iOS < 4.2 does not have HTML5 History support so we still
* have to poll for changes.
*/
Ext.History = new Ext.util.Observable({
constructor: function() {
Ext.Histor... | JavaScript |
/**
* @class Array
*/
Ext.applyIf(Array.prototype, {
/**
* Checks whether or not the specified object exists in the array.
* @param {Object} o The object to check for
* @param {Number} from (Optional) The index at which to begin the search
* @return {Number} The index of o in the array (or -1 ... | JavaScript |
/**
* @class Ext.Element
* <p>Encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences.</p>
* <p>All instances of this class inherit the methods of {@link Ext.Fx} making visual effects easily available to all DOM elements.</p>
* <p>Note that the events documented in... | JavaScript |
/*
Copyright(c) 2011 Sencha Inc.
licensing@sencha.com
http://www.sencha.com/touchlicense
*/
if (typeof Ext === "undefined") {
Ext = {};
}
Ext.apply = (function() {
for(var key in {valueOf:1}) {
return function(object, config, defaults) {
if (defaults) {
... | JavaScript |
/**
* @class Ext.data.Connection
* @extends Ext.util.Observable
*/
Ext.data.Connection = Ext.extend(Ext.util.Observable, {
method: 'post',
url: null,
/**
* @cfg {Boolean} disableCaching (Optional) True to add a unique cache-buster param to GET requests. (defaults to true)
* @type Boolean
... | JavaScript |
/**
* @class Ext.IndexBar
* @extends Ext.DataPanel
* <p>IndexBar is a component used to display a list of data (primarily an {@link #alphabet}) which can then be used to quickly
* navigate through a list (see {@link Ext.List}) of data. When a user taps on an item in the {@link Ext.IndexBar}, it will fire
* the <tt... | JavaScript |
/**
* @class Ext.Sheet
* @extends Ext.Panel
*
* <p>A general sheet class. This renderable container provides base support for orientation-aware
* transitions for popup or side-anchored sliding Panels.</p>
*
* <h2>Screenshot:</h2>
*
* {@img Ext.Sheet/screenshot.png Ext.Sheet screenshot}
*
* <h2>Example usag... | JavaScript |
/**
* @class Ext.Container
* @extends Ext.lib.Container
* <p>Base class for any {@link Ext.BoxComponent} that may contain other Components. Containers handle the
* basic behavior of containing items, namely adding, inserting and removing items.</p>
*
* <p><u><b>Layout</b></u></p>
* <p>Container classes delegate ... | JavaScript |
/**
* @class Ext.Audio
* @extends Ext.Media
*
* <p>Provides a simple container for HTML5 Audio.</p>
* <p><i>Recommended types: Uncompressed WAV and AIF audio, MP3 audio, and AAC-LC or HE-AAC audio</i></p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
* <li>{@link #url}</li>
* <li>{@link #autoPause}<... | JavaScript |
/**
* @class Ext.Map
* @extends Ext.Component
*
* <p>Wraps a Google Map in an Ext.Component.<br/>
* http://code.google.com/apis/maps/documentation/v3/introduction.html</p>
*
* <p>To use this component you must include an additional JavaScript file from
* Google:</p>
* <pre><code><script type="text/javascrip... | JavaScript |
/**
* @class Ext.DatePicker
* @extends Ext.Picker
*
* <p>A date picker component which shows a DatePicker on the screen. This class extends from {@link Ext.Picker} and {@link Ext.Sheet} so it is a popup.</p>
* <p>This component has no required properties.</p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
... | JavaScript |
/**
* @class Ext.Tab
* @extends Ext.Button
*
* <p>Used in the {@link Ext.TabBar} component. This shouldn't be used directly, instead use {@link Ext.TabBar} or {@link Ext.TabPanel}.</p>
*
* @xtype tab
*/
Ext.Tab = Ext.extend(Ext.Button, {
isTab: true,
baseCls: 'x-tab',
/**
* @cfg {String} pres... | JavaScript |
/**
* @class Ext.Media
* @extends Ext.Container
*
* <p>Provides a base class for audio/visual controls. Should not be used directly.</p>
* @xtype media
*/
Ext.Media = Ext.extend(Ext.Component, {
/**
* @constructor
* @param {Object} config
* Create a new Media component.
*/
/**
* ... | JavaScript |
/**
* @class Ext.Button
* @extends Ext.Component
*
* <p>A simple class to display different styles of buttons.</p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
* <li>{@link #ui} (defines the style of the button)</li>
* </ul>
*
* <h2>Useful Methods</h2>
* <ul class="list">
* <li>{@link #handler} (... | JavaScript |
/**
* @class Ext.List
* @extends Ext.DataView
* <p>A mechanism for displaying data using a list layout template. List uses an {@link Ext.XTemplate}
* as its internal templating mechanism, and is bound to an {@link Ext.data.Store} so that as the data
* in the store changes the view is automatically updated to refl... | JavaScript |
/**
* @class Ext.TabBar
* @extends Ext.Panel
*
* <p>Used in the {@link Ext.TabPanel} component to display {@link Ext.Tab} components.</p>
*
* <h2>Screenshot:</h2>
*
* {@img Ext.TabBar/screenshot.png Ext.TabBar screenshot}
*
* <h2>Example code:</h2>
<pre><code>
var bar = new Ext.TabBar({
dock : 'top',
... | JavaScript |
/**
* @class Ext.MessageBox
* @extends Ext.Sheet
*
* <p>Utility class for generating different styles of message boxes. The framework provides a global singleton {@link Ext.Msg} for common usage.<p/>
* <p>Note that the MessageBox is asynchronous. Unlike a regular JavaScript <code>alert</code> (which will halt
*... | JavaScript |
/**
* @class Ext.TabPanel
* @extends Ext.Panel
*
* TabPanel is a Container which can hold other components to be accessed in a tabbed
* interface. It uses a {@link Ext.TabBar} to display a {@link Ext.Tab} for each item defined.
*
* <h2>Useful Properties</h2>
* <ul class="list">
* <li>{@link #ui}</li>
* <l... | JavaScript |
/**
* @class Ext.Video
* @extends Ext.Media
*
* <p>Provides a simple Container for HTML5 Video.</p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
* <li>{@link #url}</li>
* <li>{@link #autoPause}</li>
* <li>{@link #autoResume}</li>
* </ul>
*
* <h2>Useful Methods</h2>
* <ul class="list">
* <l... | JavaScript |
/**
* @class Ext.DataView
* @extends Ext.Component
* A mechanism for displaying data using custom layout templates and formatting. DataView uses an {@link Ext.XTemplate}
* as its internal templating mechanism, and is bound to an {@link Ext.data.Store}
* so that as the data in the store changes the view is automati... | JavaScript |
/**
* @class Ext.Picker
* @extends Ext.Sheet
*
* <p>A general picker class. Slots are used to organize multiple scrollable slots into a single picker. {@link #slots} is
* the only necessary property</p>
*
* <h2>Example usage:</h2>
* <pre><code>
var picker = new Ext.Picker({
slots: [
{
... | JavaScript |
/**
* @class Ext.Toolbar
* @extends Ext.Container
*
* <p>Toolbars are most commonly used as dockedItems within an Ext.Panel. They can
* be docked at the 'top' or 'bottom' of a Panel by specifying the dock config.</p>
*
* <p>The {@link #defaultType} of Toolbar's is '{@link Ext.Button button}'.</p>
*
* <h2>Scre... | JavaScript |
/**
* @class Ext.form.Url
* @extends Ext.form.Text
* Wraps an HTML5 url field. See {@link Ext.form.FormPanel FormPanel} for example usage.
* @xtype urlfield
* @alternateClassName Ext.form.UrlField
*/
Ext.form.Url = Ext.extend(Ext.form.Text, {
inputType: 'url',
autoCapitalize: false
});
Ext.reg('urlf... | JavaScript |
/**
* @class Ext.form.TextArea
* @extends Ext.form.Text
* <p>Wraps a textarea. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype textareafield
* @xtype textarea
*/
Ext.form.TextArea = Ext.extend(Ext.form.Text, {
ui: 'textarea',
/**
* @cfg {Integer} maxRows The maximum number o... | JavaScript |
/**
* @class Ext.form.DatePicker
* @extends Ext.form.Field
* <p>Specialized field which has a button which when pressed, shows a {@link Ext.DatePicker}.</p>
* @xtype datepickerfield
* @alternateClassName Ext.form.DatePickerField
*/
Ext.form.DatePicker = Ext.extend(Ext.form.Field, {
ui: 'select',
/**
... | JavaScript |
/**
* @class Ext.form.Hidden
* @extends Ext.form.Field
* <p>Wraps a hidden field. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype hiddenfield
* @xtype hidden
* @alternateClassName Ext.form.HiddenField
*/
Ext.form.Hidden = Ext.extend(Ext.form.Field, {
ui: 'hidden',
inputType:... | JavaScript |
/**
* @class Ext.form.Password
* @extends Ext.form.Text
* <p>Wraps an HTML5 password field. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype passwordfield
* @alternateClassName Ext.form.PasswordField
*/
Ext.form.Password = Ext.extend(Ext.form.Text, {
inputType: 'password',
autoCapi... | JavaScript |
/**
* @class Ext.form.Radio
* @extends Ext.form.Checkbox
* <p>Single radio field. Same as Checkbox, but provided as a convenience for automatically setting the input type.
* Radio grouping is handled automatically by the browser if you give each radio in a group the same name.</p>
* @constructor
* Creates a new ... | JavaScript |
/**
* @class Ext.form.FormPanel
* @extends Ext.Panel
* <p>Simple form panel which enables easy getting and setting of field values. Can load model instances. Example usage:</p>
<pre><code>
var form = new Ext.form.FormPanel({
items: [
{
xtype: 'textfield',
name : 'first',
... | JavaScript |
/**
* @class Ext.form.Field
* @extends Ext.Container
* <p>Base class for form fields that provides default event handling, sizing, value handling and other functionality. Ext.form.Field
* is not used directly in applications, instead the subclasses such as {@link Ext.form.Text} should be used.</p>
* @constructor
... | JavaScript |
/**
* @class Ext.form.Slider
* @extends Ext.form.Field
* <p>Form component allowing a user to move a 'thumb' along a slider axis to choose a value. Sliders can equally be used outside
* of the context of a form. Example usage:</p>
<pre><code>
new Ext.form.FormPanel({
items: [
{
xtype : ... | JavaScript |
/**
* @class Ext.form.Email
* @extends Ext.form.Text
* <p>Wraps an HTML5 email field. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype emailfield
* @alternateClassName Ext.form.EmailField
*/
Ext.form.Email = Ext.extend(Ext.form.Text, {
inputType: 'email',
autoCapitalize: false... | JavaScript |
/**
* @class Ext.form.FieldSet
* @extends Ext.Container
* <p>Simple FieldSet, can contain fields as items. FieldSets do not add any behavior, other than an optional title, and
* are just used to group similar fields together. Example usage (within a form):</p>
<pre><code>
new Ext.form.FormPanel({
items: [
... | JavaScript |
/**
* @class Ext.form.Number
* @extends Ext.form.Text
* <p>Wraps an HTML5 number field. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype numberfield
* @alternateClassName Ext.form.NumberField
*/
Ext.form.Number = Ext.extend(Ext.form.Text, {
ui: 'number',
inputType: 'number',
... | JavaScript |
/**
* @class Ext.form.Toggle
* @extends Ext.form.Slider
* <p>Specialized Slider with a single thumb and only two values. By default the toggle component can
* be switched between the values of 0 and 1.</p>
* @xtype togglefield
* @xtype toggle
*/
Ext.form.Toggle = Ext.extend(Ext.form.Slider, {
minValue: 0,
... | JavaScript |
/**
* @class Ext.form.Text
* @extends Ext.form.Field
* <p>Simple text input field. See {@link Ext.form.FormPanel FormPanel} for example usage.</p>
* @xtype textfield
* @alternateClassName Ext.form.TextField
*/
Ext.form.Text = Ext.extend(Ext.form.Field, {
ui: 'text',
/**
* @cfg {String} focusCls The ... | JavaScript |
/**
* @class Ext.form.Select
* @extends Ext.form.Text
* Simple Select field wrapper. Example usage:
<pre><code>
new Ext.form.Select({
options: [
{text: 'First Option', value: 'first'},
{text: 'Second Option', value: 'second'},
{text: 'Third Option', value: 'third'}
]
});
</code></pr... | JavaScript |
/**
* @class Ext.form.Search
* @extends Ext.form.Text
* Wraps an HTML5 search field. See {@link Ext.form.FormPanel FormPanel} for example usage.
* @xtype searchfield
* @alternateClassName Ext.form.SearchField
*/
Ext.form.Search = Ext.extend(Ext.form.Text, {
inputType: 'search'
/**
* @cfg {Boolean} us... | JavaScript |
/**
* @class Ext.form.Spinner
* @extends Ext.form.Number
* <p>Wraps an HTML5 number field. Example usage:
* <pre><code>
new Ext.form.Spinner({
minValue: 0,
maxValue: 100,
incrementValue: 2,
cycle: true
});
</code></pre>
* @xtype spinnerfield
* @alternateClassName Ext.form.SpinnerField
*/
Ext.form... | JavaScript |
/**
* @class Ext.form.Checkbox
* @extends Ext.form.Field
* Simple Checkbox class. Can be used as a direct replacement for traditional checkbox fields.
* @constructor
* @param {Object} config Optional config object
* @xtype checkboxfield
* @xtype checkbox
*/
Ext.form.Checkbox = Ext.extend(Ext.form.Field, {
u... | JavaScript |
/**
* @class Ext.Panel
* @extends Ext.lib.Panel
* <p>Panel is a container that has specific functionality and structural components that make
* it the perfect building block for application-oriented user interfaces.</p>
* <p>Panels are, by virtue of their inheritance from {@link Ext.Container}, capable
* of being... | JavaScript |
/**
* @class Ext.SegmentedButton
* @extends Ext.Container
* <p>SegmentedButton is a container for a group of {@link Ext.Button}s. Generally a SegmentedButton would be
* a child of a {@link Ext.Toolbar} and would be used to switch between different views.</p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
... | JavaScript |
/**
* @class Ext.Component
* @extends Ext.lib.Component
* <p>Base class for all Ext components. All subclasses of Component may participate in the automated
* Ext component lifecycle of creation, rendering and destruction which is provided by the {@link Ext.Container Container} class.
* Components may be added to... | JavaScript |
/**
* @class Ext.NestedList
* @extends Ext.Panel
*
* <p>NestedList provides a miller column interface to navigate between nested sets
* and provide a clean interface with limited screen real-estate.</p>
*
* <pre><code>
// store with data
var data = {
text: 'Groceries',
items: [{
text: 'Drinks',
... | JavaScript |
/**
* @class Ext.Carousel
* @extends Ext.Panel
*
* <p>A customized Panel which provides the ability to slide back and forth between
* different child items.</p>
*
* <h2>Useful Properties</h2>
* <ul class="list">
* <li>{@link #ui} (defines the style of the carousel)</li>
* <li>{@link #direction} (defines ... | JavaScript |
/**
* @class Ext.Element
*/
Ext.applyIf(Ext.Element, {
/**
* Returns the calculated CSS 2D transform offset values (translate x and y)
* @static
* @param {Ext.Element/Element} el the element
* @return {Ext.util.Offset} instance of Ext.util.Offset, with x and y properties
*/
getCo... | JavaScript |
/**
* @class Ext.Anim
* @extends Object
* <p>Ext.Anim is used to excute animations defined in {@link Ext.anims}. The {@link #run} method can take any of the
* properties defined below.</p>
*
* <h2>Example usage:</h2>
* <code><pre>
Ext.Anim.run(this, 'fade', {
out: false,
autoClear: true
});
* </pre></... | JavaScript |
/**
* @class Ext.DomHelper
* <p>The DomHelper class provides a layer of abstraction from DOM and transparently supports creating
* elements via DOM or using HTML fragments. It also has the ability to create HTML fragment templates
* from your DOM building code.</p>
*
* <p><b><u>DomHelper element specification obj... | JavaScript |
/**
* @class Ext.anims
*/
Ext.apply(Ext.anims, {
/**
* Flip Animation
*/
flip: new Ext.Anim({
is3d: true,
direction: 'left',
before: function(el) {
var rotateProp = 'Y',
fromScale = 1,
toScale = 1,
fromRotate = 0,
... | JavaScript |
/**
* @class Ext.CompositeElement
* <p>This class encapsulates a <i>collection</i> of DOM elements, providing methods to filter
* members, or to perform collective actions upon the whole set.</p>
*
* Example:<pre><code>
var els = Ext.select("#some-el div.some-class");
// or select directly from an existing element... | JavaScript |
/**
* @class Ext.Element
*/
Ext.Element.addMethods({
/**
* Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
* @return {Number} The Y position of the element
*... | JavaScript |
/**
* @class Ext.DomQuery
* Provides functionality to select elements on the page based on a CSS selector.
*
<p>
All selectors, attribute filters and pseudos below can be combined infinitely in any order. For example "div.foo:nth-child(odd)[@foo=bar].bar:first" would be a perfectly valid selector.
</p>
<h4>Element S... | JavaScript |
(function() {
/**
* @class Ext.Element
*/
Ext.Element.classReCache = {};
var El = Ext.Element,
view = document.defaultView;
El.addMethods({
marginRightRe: /marginRight/i,
trimRe: /^\s+|\s+$/g,
spacesRe: /\s+/,
/**
* Adds one or more CSS classe... | JavaScript |
/**
* @class Ext.Element
*/
Ext.Element.addMethods({
/**
* Gets the x,y coordinates specified by the anchor position on the element.
* @param {String} anchor (optional) The specified anchor position (defaults to "c"). See {@link #alignTo}
* for details on supported anchor positions.
* @param ... | JavaScript |
/**
* @class Ext.Element
*/
Ext.Element.addMethods({
/**
* Gets the Scroller instance of the first parent that has one.
* @return {Ext.util.Scroller/null} The first parent scroller
*/
getScrollParent : function() {
var parent = this.dom, scroller;
while (parent && parent != docu... | JavaScript |
/**
* @class Ext
*/
Ext.apply(Ext, {
/**
* The version of the framework
* @type String
*/
version : '1.1.1',
versionDetail : {
major : 1,
minor : 1,
patch : 1
},
/**
* Sets up a page for use on a mobile device.
* @param {Object} config
*
... | JavaScript |
/**
* @class Ext.Element
* <p>Encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences.</p>
* <p>All instances of this class inherit the methods of {@link Ext.Fx} making visual effects easily available to all DOM elements.</p>
* <p>Note that the events documented in... | JavaScript |
/**
* @class Ext.Viewport
* @singleton
* @ignore
* @private
*
* Handles viewport sizing for the whole application
*/
Ext.Viewport = new (Ext.extend(Ext.util.Observable, {
constructor: function() {
var me = this;
this.addEvents(
'orientationchange',
'resize'
)... | JavaScript |
/**
* @class Ext.History
* @extends Ext.util.Observable
* @ignore
* @private
*
* Mobile-optimized port of Ext.History. Note - iPad on iOS < 4.2 does not have HTML5 History support so we still
* have to poll for changes.
*/
Ext.History = new Ext.util.Observable({
constructor: function() {
Ext.Histor... | JavaScript |
/**
* @class Ext.plugins.ListPagingPlugin
* @extends Ext.util.Observable
* This plugin adds pull to refresh functionality to the List.
*/
Ext.plugins.PullRefreshPlugin = Ext.extend(Ext.util.Observable, {
/**
* @cfg {String} pullRefreshText The text that will be shown while you are pulling down.
*/
... | JavaScript |
/**
* @class Ext.plugins.ListPagingPlugin
* @extends Ext.util.Observable
* Adds a Load More button at the bottom of the list. When the user presses this button,
* the next page of data will be loaded into the store and appended to the List.
*/
Ext.plugins.ListPagingPlugin = Ext.extend(Ext.util.Observable, {
/*... | JavaScript |
Ext.gesture.Tap = Ext.extend(Ext.gesture.Gesture, {
handles: [
'tapstart',
'tapcancel',
'tap',
'doubletap',
'taphold',
'singletap'
],
cancelThreshold: 10,
doubleTapThreshold: 800,
singleTapThreshold: 400,
holdThreshold: 1000,
fir... | JavaScript |
Ext.gesture.Pinch = Ext.extend(Ext.gesture.Gesture, {
handles: ['pinchstart', 'pinch', 'pinchend'],
touches: 2,
onTouchStart: function(e) {
var me = this;
if (this.isMultiTouch(e)) {
me.lock('swipe', 'scroll', 'scrollstart', 'scrollend', 'touchmove', 'touchend', 'touchstart', ... | JavaScript |
Ext.gesture.Drag = Ext.extend(Ext.gesture.Touch, {
handles: ['dragstart', 'drag', 'dragend'],
dragThreshold: 5,
direction: 'both',
horizontal: false,
vertical: false,
constructor: function() {
var me = this;
Ext.gesture.Drag.superclass.constructor.apply(me, arguments);
... | JavaScript |
Ext.gesture.Manager = new Ext.AbstractManager({
eventNames: {
start: 'touchstart',
move: 'touchmove',
end: 'touchend'
},
defaultPreventedMouseEvents: ['click'],
clickMoveThreshold: 5,
init: function() {
this.targets = [];
this.followTouches = [];
t... | JavaScript |
Ext.gesture.Gesture = Ext.extend(Object, {
listenForStart: true,
listenForEnd: true,
listenForMove: true,
disableLocking: false,
touches: 1,
constructor: function(config) {
config = config || {};
Ext.apply(this, config);
this.target = Ext.getDo... | JavaScript |
Ext.gesture.Touch = Ext.extend(Ext.gesture.Gesture, {
handles: ['touchstart', 'touchmove', 'touchend', 'touchdown'],
touchDownInterval: 500,
onTouchStart: function(e, touch) {
this.startX = this.previousX = touch.pageX;
this.startY = this.previousY = touch.pageY;
this.start... | JavaScript |
Ext.gesture.Swipe = Ext.extend(Ext.gesture.Gesture, {
listenForEnd: false,
swipeThreshold: 35,
swipeTime: 1000,
onTouchStart : function(e, touch) {
this.startTime = e.timeStamp;
this.startX = touch.pageX;
this.startY = touch.pageY;
this.lock('scroll', 'scroll... | JavaScript |
Ext.TouchEventObjectImpl = Ext.extend(Object, {
constructor : function(e, args) {
if (e) {
this.setEvent(e, args);
}
},
setEvent : function(e, args) {
Ext.apply(this, {
event: e,
time: e.timeStamp
});
this.touches = e.touches || [... | JavaScript |
/**
* @class Ext.ComponentQuery
* @extends Object
*
* Provides searching of Components within Ext.ComponentMgr (globally) or a specific
* Ext.Container on the document with a similar syntax to a CSS selector.
*
* Xtypes can be retrieved by their name with an optional . prefix
<ul>
<li>component or .component... | JavaScript |
/**
* @class Ext.lib.Container
* @extends Ext.Component
* Shared Container class
*/
Ext.lib.Container = Ext.extend(Ext.Component, {
/**
* @cfg {String/Object} layout
* <p><b>*Important</b>: In order for child items to be correctly sized and
* positioned, typically a layout manager <b>must</b> be ... | JavaScript |
Ext.DataViewSelectionModel = Ext.extend(Ext.AbstractStoreSelectionModel, {
deselectOnContainerClick: true,
bindComponent: function(view) {
this.view = view;
this.bind(view.getStore());
var eventListeners = {
refresh: this.refresh,
scope: this,
el: {
... | JavaScript |
/**
* @class Ext.DataView
* @extends Ext.Component
* A mechanism for displaying data using custom layout templates and formatting. DataView uses an {@link Ext.XTemplate}
* as its internal templating mechanism, and is bound to an {@link Ext.data.Store}
* so that as the data in the store changes the view is automati... | JavaScript |
/**
* @class Ext.AbstractStoreSelectionModel
* @extends Ext.util.Observable
*
* Tracks what records are currently selected in a databound widget.
*
* This is an abstract class and is not meant to be directly used.
*
* DataBound UI widgets such as GridPanel, TreePanel, and ListView
* should subclass AbstractSto... | JavaScript |
/**
* @class Ext.is
*
* Determines information about the current platform the application is running on.
*
* @singleton
*/
Ext.is = {
init: function(navigator) {
var me = this,
platforms = me.platforms,
ln = platforms.length,
i, platform;
navigator = nav... | JavaScript |
/**
* @class Ext.ComponentMgr
* @extends Ext.AbstractManager
* <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... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.