X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..HEAD:/examples/shared/extjs/site.js diff --git a/examples/shared/extjs/site.js b/examples/shared/extjs/site.js index 3387ffdf..e90e46b6 100644 --- a/examples/shared/extjs/site.js +++ b/examples/shared/extjs/site.js @@ -1,82 +1,18 @@ -/*! - * Ext JS Library 3.2.0 - * Copyright(c) 2006-2010 Ext JS, Inc. - * licensing@extjs.com - * http://www.extjs.com/license - */ -Ext.onReady(function(){ - - var activeMenu; - - function createMenu(name){ - var el = Ext.get(name+'-link'); - var tid = 0, menu, doc = Ext.getDoc(); - - var handleOver = function(e, t){ - if(t != el.dom && t != menu.dom && !e.within(el) && !e.within(menu)){ - hideMenu(); - } - }; - - var hideMenu = function(){ - if(menu){ - menu.hide(); - el.setStyle('text-decoration', ''); - doc.un('mouseover', handleOver); - doc.un('mousedown', handleDown); - } - }; - - var handleDown = function(e){ - if(!e.within(menu)){ - hideMenu(); - } - }; +/* - var showMenu = function(){ - clearTimeout(tid); - tid = 0; +This file is part of Ext JS 4 - if (!menu) { - menu = new Ext.Layer({shadow:'sides',hideMode: 'display'}, name+'-menu'); - } - menu.hideMenu = hideMenu; +Copyright (c) 2011 Sencha Inc - menu.el = el; - if(activeMenu && menu != activeMenu){ - activeMenu.hideMenu(); - } - activeMenu = menu; +Contact: http://www.sencha.com/contact - if (!menu.isVisible()) { - menu.show(); - menu.alignTo(el, 'tl-bl?'); - menu.sync(); - el.setStyle('text-decoration', 'underline'); +GNU General Public License Usage +This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. - doc.on('mouseover', handleOver, null, {buffer:150}); - doc.on('mousedown', handleDown); - } - }; - - el.on('mouseover', function(e){ - if(!tid){ - tid = showMenu.defer(150); - } - }); - - el.on('mouseout', function(e){ - if(tid && !e.within(el, true)){ - clearTimeout(tid); - tid = 0; - } - }); - } - - createMenu('products'); - createMenu('support'); - createMenu('store'); +If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. +*/ +Ext.onReady(function(){ // expanders Ext.getBody().on('click', function(e, t){ t = Ext.get(t); @@ -92,10 +28,11 @@ Ext.onReady(function(){ }else{ bdi.hide(); bd.show(); - bdi.slideIn('l', {duration:0.2, stopFx: true, easing:'easeOut'}); + bdi.slideIn('l', {duration:0.2, stopAnimation: true, easing:'easeOut'}); } t.update(!expanded ? 'Hide details' : 'Show details'); }, null, {delegate:'a.expander'}); }); +