⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tagwin.js

📁 Ext JS是一个创建丰富互联网应用程序的跨浏览器的JavaScrip库。它包含:高效率
💻 JS
字号:
/*
 * Ext JS Library 3.0 Pre-alpha
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Imgorg.TagWindow = Ext.extend(Ext.Window, {    title: 'Choose Tag',    layout: 'fit',    closeAction: 'hide',    width: 300,    modal: true,        initComponent: function() {        Ext.apply(this, {            items: [{                autoHeight: true,                xtype: 'form',                id: 'tag-select',                bodyStyle: 'padding:15px',                labelWidth: 50,                items: [{                    anchor: '95%',                    fieldLabel: 'Tag',                    xtype: 'img-tagcombo',                    name: 'tag',                    allowBlank: false                }]            }],            buttons: [{                text: 'Tag Images',                handler: this.tagImages,                scope: this            },{                text: 'Cancel',                handler: function() {                    this.hide();                },                scope: this            }]        });        Imgorg.TagWindow.superclass.initComponent.call(this);    },                tagImages: function() {        var af = this.getComponent('tag-select').getForm();        if (af.isValid()) {            if (this.selectedRecords) {                var imageIds = [];                for (var i = 0; i < this.selectedRecords.length; i++) {                    var r = this.selectedRecords[i];                    imageIds.push(r.data.dbid || r.data.id);                }                var fld = af.findField('tag');                var tag = fld.getRawValue();                var idx = fld.store.find('text', tag);                if (idx != -1) {                    rec = fld.store.getAt(idx);                    tag = rec.data.id;                }                Imgorg.ss.Images.tagImage({                    images: imageIds,                    tag: tag                });            }            this.hide();        }    }});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -