svn: /web/doc-editor/trunk/js/ux/others/login_specific/ Ext.ux.IconCombo.css Ext.ux.IconCombo.js Ext.ux.WindowDrawer.js

From: Date: Wed, 20 Oct 2010 21:56:18 +0000
Subject: svn: /web/doc-editor/trunk/js/ux/others/login_specific/ Ext.ux.IconCombo.css Ext.ux.IconCombo.js Ext.ux.WindowDrawer.js
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1877@lists.php.net to get a copy of this message
yannick Wed, 20 Oct 2010 21:56:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=304575 Log: nettoyage Changed paths: D web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.IconCombo.css D web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.IconCombo.js U web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.WindowDrawer.js Deleted: web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.IconCombo.css =================================================================== --- web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.IconCombo.css 2010-10-20 21:32:11 UTC (rev 304574) +++ web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.IconCombo.css 2010-10-20 21:56:18 UTC (rev 304575) @@ -1,16 +0,0 @@ -/* -* Css for the IconCombo Ux -* -*/ - -.ux-icon-combo-input { - padding-left: 25px !important; -} - -.ux-icon-combo-value { - padding-left: 22px !important; -} - -.ux-icon-combo-item { - padding-left: 3px !important; -} \ No newline at end of file Deleted: web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.IconCombo.js =================================================================== --- web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.IconCombo.js 2010-10-20 21:32:11 UTC (rev 304574) +++ web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.IconCombo.js 2010-10-20 21:56:18 UTC (rev 304575) @@ -1,63 +0,0 @@ -// create namespace for plugins -Ext.namespace('Ext.ux.plugins'); - -/** - * Ext.ux.IconCombo Extension Class for Ext 2.x Library - * - * @author Ing. Jozef Sakalos - * @version $Id: Ext.ux.IconCombo.js 617 2007-12-20 11:29:56Z jozo $ - * - * @class Ext.ux.IconCombo - * @extends Ext.form.ComboBox - */ - -Ext.ux.IconCombo = Ext.extend(Ext.form.ComboBox, { - initComponent : function() - { - - Ext.apply(this, { - tpl: '<tpl for=".">' - + '<div class="x-combo-list-item ux-icon-combo-item">' - + '<div class="{' + this.iconClsField + '}" style="position:absolute"></div>' - + '<div class="ux-icon-combo-value">{' + this.displayField + '}</div>' - + '</div></tpl>' - }); - - // call parent initComponent - Ext.ux.IconCombo.superclass.initComponent.call(this); - - }, // end of function initComponent - - onRender:function(ct, position) - { - // call parent onRender - Ext.ux.IconCombo.superclass.onRender.call(this, ct, position); - - // adjust styles - this.wrap.applyStyles({position:'relative'}); - this.el.addClass('ux-icon-combo-input'); - - // add div for icon - this.icon = Ext.DomHelper.append(this.el.up('div.x-form-field-wrap'), { - tag: 'div', style:'position:absolute' - }); - - }, // end of function onRender - - setIconCls : function() - { - var rec = this.store.query(this.valueField, this.getValue()).itemAt(0); - if(rec) { - this.icon.className = rec.get(this.iconClsField); - } - }, // end of function setIconCls - - setValue : function(value) - { - Ext.ux.IconCombo.superclass.setValue.call(this, value); - this.setIconCls(); - } // end of function setValue -}); - -// register xtype -Ext.reg('iconcombo', Ext.ux.IconCombo); \ No newline at end of file Modified: web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.WindowDrawer.js =================================================================== --- web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.WindowDrawer.js 2010-10-20 21:32:11 UTC (rev 304574) +++ web/doc-editor/trunk/js/ux/others/login_specific/Ext.ux.WindowDrawer.js 2010-10-20 21:56:18 UTC (rev 304575) @@ -17,14 +17,15 @@ // private - used for dragging startDrag : function() { - var w = this.win; + var w = this.win, so, s; + w.fireEvent('ghost', []); this.proxy = w.ghost(); if (w.constrain !== false) { - var so = w.el.shadowOffset; + so = w.el.shadowOffset; this.constrainTo(w.container, {right: so, left: so, bottom: so}); } else if (w.constrainHeader !== false) { - var s = this.proxy.getSize(); + s = this.proxy.getSize(); this.constrainTo(w.container, {right: -(s.width - this.headerOffsets[0]), bottom: -(s.height - this.headerOffsets[1])}); } } @@ -55,6 +56,8 @@ } }); +Ext.namespace('Ext.ux','Ext.ux.plugins'); + // Drawer Base Class Ext.ux.plugins.WindowDrawer = Ext.extend(Ext.Window, { closable : false,

« previous php.doc.web (#1877) next »