Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
TagWin.js
Package: ext-3.1.0.zip [view]
Upload User: dawnssy
Upload Date: 2022-08-06
Package Size: 9345k
Code Size: 2k
Category:
JavaScript
Development Platform:
JavaScript
- /*!
- * Ext JS Library 3.1.0
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.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();
- }
- }
- });