code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/**
* 客户选择器
*/
var CustomerSelector = {
/**
* @param callback
* 回调函数
* @param isSingle
* 是否单选
*/
getView : function(callback, isSingle) {
var treeCustomer = new Ext.tree.TreePanel({
title : '客户地区',
region : 'west',
width : 180,
height : 300,
... | JavaScript |
/**
* 商品选择器
*/
var GoodsSelector = {
/**
* @param callback
* 回调函数
* @param isSingle
* 是否单选
*/
getView : function(callback, isSingle) {
var treeGoods = new Ext.tree.TreePanel({
title : '商品显示',
region : 'west',
width : 180,
height : 300,
split... | JavaScript |
/**
* 用户选择器
*/
var OnlineUserSelector = {
getView : function(callback,isSingle) {
var panel=this.initPanel(isSingle);
var window = new Ext.Window({
title : '选择在线用户',
width : 440,
height : 420,
layout:'fit',
items : [panel],
modal:true,
buttonAlign : 'center',
buttons : [{
... | JavaScript |
/**
* 用户选择器
*/
var UserSelector = {
getView : function(callback,isSingle) {
var panel=this.initPanel(isSingle);
var window = new Ext.Window({
title : '选择联系人',
width : 440,
height : 420,
layout:'fit',
items : [panel],
modal:true,
buttonAlign : 'center',
buttons : [{
te... | JavaScript |
Ext.ns('PublicDocumentView');
var PublicDocumentView = function() {
};
PublicDocumentView.prototype.getView=function(){
return new Ext.Panel({
id:'PublicDocumentView',
title:'公共文档列表',
autoScroll : true,
region:'center',
anchor:'100%',
items:[new Ext.FormPanel({
heig... | JavaScript |
var PublicDocumentDetailWin=function(docId,docName){
this.docId = docId;
this.docName=docName;
var pa=this.setup();
var window=new Ext.Window({
id : 'PulicDocumentDetailWin',
title : ''+docName,
autoHeight :true,
width:510,
modal : true,
autoScroll:true,
layout : 'anchor... | JavaScript |
Ext.ns('FindPublicDocumentView');
var FindPublicDocumentView=function(){
var selectedNode;
var publicDocumentView=new PublicDocumentView();
var treePanel = new Ext.tree.TreePanel({
region : 'west',
id : 'leftPublicDocumentPanel',
title : '公共文档目录',
collapsible : true,
split ... | JavaScript |
var DocumentForm = function(docId) {
this.docId = docId;
var fp = this.setup();
var window = new Ext.Window({
id : 'DocumentFormWin',
title : '文档详细信息',
width : 680,
height : 500,
modal : true,
minWidth : 300,
minHeight : 200,
layout : 'anchor',
plain : true,
bodyS... | JavaScript |
var DocFolderForm = function(folderId,parentId,isShared) {
this.folderId = folderId;
this.parentId=parentId;
this.isShared=isShared;
var fp = this.setup();
var window = new Ext.Window({
id : 'DocFolderFormWin',
title : '目录详细信息',
width : 400,
height : 150,
modal : true,
minWidth :... | JavaScript |
var PersonalDocFolderSelector = {
getView : function(callback) {
var nodeValue;
var clickNode = function(node) {
if (node != null) {
if(!node.disabled){
nodeValue=node;
return nodeValue;
}
}
};
var treePanel = new Ext.tree.TreePanel({
id : 'docFolderTreePanel'... | JavaScript |
Ext.ns('DocPrivilegeView');
/**
* ������������������������������������������������������������列表
*/
var DocPrivilegeView = function(){
}
DocPrivilegeView.prototype.getView=function(){
return new Ext.Panel({
id:'DocPrivilegeView',
title:'权限列表',
region:'center',
autoScroll:true,
item... | JavaScript |
Ext.ns('DocFolderView');
/**
* TODO: add class/table comments列表
*/
var DocFolderView = function() {
return new Ext.Panel({
id:'DocFolderView',
title:'公共文件夹列表',
autoScroll:true,
items:[
new Ext.FormPanel({
height:35,
frame:true,
id:'DocFolderSearchForm',
layout:'column',
... | JavaScript |
var DocPrivilegeForm = function(privilegeId) {
this.privilegeId = privilegeId;
var fp = this.setup();
var window = new Ext.Window({
id : 'DocPrivilegeFormWin',
title : '文档权限详细信息',
width : 500,
height : 420,
modal: true,
layout : 'anchor',
plain : true,
bodyStyle : 'padding:... | JavaScript |
Ext.ns("DocFolder");
/**
* 个人文档目录视图
*/
var PersonalDocumentView = function() {
var selectedNode;
var documentView=new DocumentView();
var treePanel = new Ext.tree.TreePanel({
region : 'west',
id : 'leftFolderPanel',
title : '我的文档目录',
collapsible : true,
split : true,
widt... | JavaScript |
var DocFolderMoveForm=function(){
return this.setup();
}
DocFolderMoveForm.prototype.setup = function() {
var toolbar = this.initToolbar();
var formPanel = new Ext.FormPanel({
url : __ctxPath + '/document/moveDocFolder.do',
title:'文件夹转移',
iconCls:'menu-folder-go',
layout : 'form',
id... | JavaScript |
var DocFolderSelector = {
getView : function(callback) {
var nodeValue;
var clickNode = function(node) {
if (node != null) {
if(!node.disabled){
nodeValue=node;
return nodeValue;
}
}
};
var treePanel = new Ext.tree.TreePanel({
id : 'docFolderTreePanel',
ti... | JavaScript |
Ext.ns('DocFolderSharedView');
var DocFolderSharedView=function(){
var selectedNode;
var docPrivilegeView=new DocPrivilegeView();
var treePanel = new Ext.tree.TreePanel({
region : 'west',
id : 'leftDocFolderSharedPanel',
title : '文件夹目录',
collapsible : true,
split : true,
... | JavaScript |
/**
* 文档共享表单
*
*/
var DocumentSharedForm = function(docId) {
this.docId = docId;
};
/**
* 显示视图
*
* @return {}
*/
DocumentSharedForm.prototype.getView = function() {
var docId = this.docId;
var formPanel = new Ext.FormPanel({
id : 'documentSharedForm',
bodyStyle : 'padding:4px 10px 4px ... | JavaScript |
var NewPublicDocumentForm = function(dId,dName) {
return this.setup(dId,dName);
};
NewPublicDocumentForm.prototype.setup = function(dId,dName) {
var docId;
this.docId=dId;
var toolbar = this.initToolbar();
var formPanel = new Ext.FormPanel({
url : __ctxPath + '/document/saveDocument.do',
title:d... | JavaScript |
Ext.ns('DocumentSharedView');
var DocumentSharedView=function(){
return new Ext.Panel({
id:'DocumentSharedView',
title:'共享文档列表',
iconCls:'menu-folder-shared',
autoScroll:true,
items : [
new Ext.FormPanel({
height : 35,
frame : true,
id : 'SharedDocumentForm',
layout : 'colum... | JavaScript |
/**
* 文档共享表单
*
*/
var DocFolderSharedForm = function(privilegeId, folderId) {
this.folderId = folderId;
// var folderId = this.folderId;
this.privilegeId = privilegeId;
var checkRead=function(){
alert('ffdf');
}
var formPanel = new Ext.FormPanel({
id : 'DocFolderSharedForm',
bodyStyle : ... | JavaScript |
var DocumentSharedWin=function(docId){
this.docId = docId;
var pa=this.setup();
var window=new Ext.Window({
id : 'DocumentSharedWin',
title : '文档信息',
width : 510,
autoHeight :true,
modal : true,
autoScroll:true,
layout : 'anchor',
plain : true,
bodyStyle : 'padding:5... | JavaScript |
Ext.ns('DocumentView');
/**
* 文档列表
*/
var DocumentView = function() {
};
/**
* 显示列表
* @return {}
*/
DocumentView.prototype.getView=function(){
return new Ext.Panel({
id : 'DocumentView',
title : '所有文档',
autoScroll : true,
region:'center',
anchor:'100%',
items : [new Ext.FormPanel({... | JavaScript |
var SharedPhoneBookWin=function(phoneId){
this.phoneId = phoneId;
var pa=this.setup();
var window=new Ext.Window({
id : 'SharedPhoneBookWin',
title : '联系人信息',
width : 600,
height :520,
modal : true,
autoScroll:true,
layout : 'anchor',
plain : true,
bodyStyle : 'padding... | JavaScript |
Ext.ns('PhoneBookView');
/**
* 联系人列表
*/
var PhoneBookView = function() {
};
PhoneBookView.prototype.getStore = function() {
var store = PhoneBookView.store;
return store;
};
PhoneBookView.prototype.getView = function() {
return new Ext.Panel({
id : 'PhoneBookView',
region : 'center',
titl... | JavaScript |
Ext.ns('SharedPhoneBookView');
var SharedPhoneBookView=function(){
return new Ext.Panel({
id:'SharedPhoneBookView',
iconCls:"menu-phonebook-shared",
title:'共享联系人列表',
autoScroll:true,
items:[
new Ext.FormPanel({
height:35,
frame:true,
id:'PhoneSearchForm',
layout:'column',... | JavaScript |
var PhoneBookForm = function(phoneId) {
this.phoneId = phoneId;
var fp = this.setup();
var window = new Ext.Window( {
id : 'PhoneBookFormWin',
title : '联系人详细信息',
width : 600,
height : 330,
modal : true,
minWidth : 600,
minHeight : 330,
layout : 'anchor',
plain : true,
bodyStyle : 'pa... | JavaScript |
var MailForm = function(mailId,boxId,opt) {
return this.setup(mailId,boxId,opt);
};
MailForm.prototype.setup = function(mailId,boxId,opt) {
var toolbar = this.initToolbar();
var copyFieldItem = new copyFieldItems();
var formPanel = new Ext.FormPanel({
url : __ctxPath + '/communicate/saveMail.do',
... | JavaScript |
Ext.ns("PersonalPhoneBookView");
/**
* 个人通讯薄目录视图
*/
var PersonalPhoneBookView = function() {
var selectedNode;
var phoneBookView=new PhoneBookView();
var treePanel = new Ext.tree.TreePanel({
region : 'west',
id : 'leftBookPanel',
title : '我的通讯分组',
collapsible : true,
split :... | JavaScript |
var PhoneGroupForm = function(groupId) {
this.groupId = groupId;
var fp = this.setup();
var window = new Ext.Window( {
id : 'PhoneGroupFormWin',
title : '通讯分组详细信息',
width : 300,
height : 170,
modal : true,
minWidth : 280,
minHeight : 160,
layout : 'form',
plain : true,
bodyStyle : 'p... | JavaScript |
Ext.ns('MailView');
/**
* 邮件列表
*/
var MailView = function() {
}
MailView.prototype.getView=function(){
return new Ext.Panel({
id : 'MailView',
//region:'center',
title : '[收件箱]',
autoScroll : true,
items : [new Ext.FormPanel({
height : 35,
frame : true,
id : 'MailSearchForm',
... | JavaScript |
Ext.ns("MailFolder");
/**
* 个人文档目录视图
*/
var PersonalMailBoxView = function() {
var selectedNode;
var mailView=new MailView();
//var mailBoxView = new MailBoxView();
var treePanel = new Ext.tree.TreePanel({
//region : 'west',
id : 'leftMailBoxTree',
//title : '我的邮箱目录',
//collapsible ... | JavaScript |
var MailFolderForm = function(folderId,parentId) {
this.folderId = folderId;
this.parentId = parentId;
var fp = this.setup();
var window = new Ext.Window({
id : 'MailFolderFormWin',
title : 'MailFolder详细信息',
width : 300,
height : 160,
modal : true,
minWidth : 200,
minHeight : ... | JavaScript |
Ext.ns('PhoneGroupView');
/**
* TODO: add class/table comments列表
*/
var PhoneGroupView = function() {
return new Ext.Panel({
id : 'PhoneGroupView',
title : '通讯组列表',
autoScroll : true,
items : [new Ext.FormPanel({
height : 35,
frame : true,
id : 'PhoneGroupSearchForm',
layout : 'colum... | JavaScript |
// Define Button Object
function edButton(id, display, tagStart, tagEnd, access, title, sve, open) {
this.id = id; // used to name the toolbar button
this.display = display; // label on button
this.tagStart = tagStart; // open tag
this.tagEnd = tagEnd; // close tag
this.access = access; // set to -1 if tag does ... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
/**
* WYSIWYG HTML Editor for Internet
*
* @author Roddy <[email protected]>
* @version 2.5.3
*/
var KE_VERSION = "2.5.4";
var KE_EDITOR_TYPE = "full"; //full or simple
var KE_SAFE_MODE = false; // true or false
var KE_UPLOAD_MODE = true; // true or false
var KE_FONT_FAMILY = "Courier New";
var KE_WIDTH ... | JavaScript |
/*
Textile Editor v0.1
created by: dave olsen, wvu web services
created on: march 17, 2007
project page: slateinfo.blogs.wvu.edu
inspired by:
- Patrick Woods, http://www.hakjoon.com/code/38/textile-quicktags-redirect &
- Alex King, http://alexking.org/projects/js-quicktags
features:
- supports: IE7, FF2, Safari... | JavaScript |
/**
* WYSIWYG HTML Editor for Internet
*
* @author Roddy <[email protected]>
* @version 2.5.3
*/
var KE_VERSION = "2.5.4";
var KE_EDITOR_TYPE = "full"; //full or simple
var KE_SAFE_MODE = false; // true or false
var KE_UPLOAD_MODE = true; // true or false
var KE_FONT_FAMILY = "Courier New";
var KE_WIDTH ... | JavaScript |
var teButtons = TextileEditor.buttons;
teButtons.push(new TextileEditorButton('ed_strong', 'bold.png', '*', '*', 'b', 'Bold','s'));
teButtons.push(new TextileEditorButton('ed_emphasis', 'italic.png', '_', '_', 'i', 'Italicize','s'));
teButtons.push(new TextileEditorButton('ed_underline', 'unde... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
/**
* WYSIWYG HTML Editor for Internet
*
* @author Roddy <[email protected]>
* @version 2.5.3
*/
var KE_VERSION = "2.5.4";
var KE_EDITOR_TYPE = "full"; //full or simple
var KE_SAFE_MODE = false; // true or false
var KE_UPLOAD_MODE = true; // true or false
var KE_FONT_FAMILY = "Courier New";
var KE_WIDTH ... | JavaScript |
/*
Textile Editor v0.2
created by: dave olsen, wvu web services
created on: march 17, 2007
project page: slateinfo.blogs.wvu.edu
inspired by:
- Patrick Woods, http://www.hakjoon.com/code/38/textile-quicktags-redirect &
- Alex King, http://alexking.org/projects/js-quicktags
features:
- supports: IE7, FF2, Safari... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
/**
* WYSIWYG HTML Editor for Internet
*
* @author Roddy <[email protected]>
* @version 2.5.3
*/
var KE_VERSION = "2.5.4";
var KE_EDITOR_TYPE = "full"; //full or simple
var KE_SAFE_MODE = false; // true or false
var KE_UPLOAD_MODE = true; // true or false
var KE_FONT_FAMILY = "Courier New";
var KE_WIDTH ... | JavaScript |
var teButtons = TextileEditor.buttons;
teButtons.push(new TextileEditorButton('ed_strong', 'bold.png', '*', '*', 'b', 'Bold','s'));
teButtons.push(new TextileEditorButton('ed_emphasis', 'italic.png', '_', '_', 'i', 'Italicize','s'));
teButtons.push(new TextileEditorButton('ed_underline', 'unde... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
/**
* WYSIWYG HTML Editor for Internet
*
* @author Roddy <[email protected]>
* @version 2.5.3
*/
var KE_VERSION = "2.5.4";
var KE_EDITOR_TYPE = "full"; //full or simple
var KE_SAFE_MODE = false; // true or false
var KE_UPLOAD_MODE = true; // true or false
var KE_FONT_FAMILY = "Courier New";
var KE_WIDTH ... | JavaScript |
/*
Textile Editor v0.2
created by: dave olsen, wvu web services
created on: march 17, 2007
project page: slateinfo.blogs.wvu.edu
inspired by:
- Patrick Woods, http://www.hakjoon.com/code/38/textile-quicktags-redirect &
- Alex King, http://alexking.org/projects/js-quicktags
features:
- supports: IE7, FF2, Safari... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
/**
* WYSIWYG HTML Editor for Internet
*
* @author Roddy <[email protected]>
* @version 2.5.3
*/
var KE_VERSION = "2.5.4";
var KE_EDITOR_TYPE = "full"; //full or simple
var KE_SAFE_MODE = false; // true or false
var KE_UPLOAD_MODE = true; // true or false
var KE_FONT_FAMILY = "Courier New";
var KE_WIDTH ... | JavaScript |
var teButtons = TextileEditor.buttons;
teButtons.push(new TextileEditorButton('ed_strong', 'bold.png', '*', '*', 'b', 'Bold','s'));
teButtons.push(new TextileEditorButton('ed_emphasis', 'italic.png', '_', '_', 'i', 'Italicize','s'));
teButtons.push(new TextileEditorButton('ed_underline', 'unde... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
/**
* WYSIWYG HTML Editor for Internet
*
* @author Roddy <[email protected]>
* @version 2.5.3
*/
var KE_VERSION = "2.5.4";
var KE_EDITOR_TYPE = "full"; //full or simple
var KE_SAFE_MODE = false; // true or false
var KE_UPLOAD_MODE = true; // true or false
var KE_FONT_FAMILY = "Courier New";
var KE_WIDTH ... | JavaScript |
/*
Textile Editor v0.2
created by: dave olsen, wvu web services
created on: march 17, 2007
project page: slateinfo.blogs.wvu.edu
inspired by:
- Patrick Woods, http://www.hakjoon.com/code/38/textile-quicktags-redirect &
- Alex King, http://alexking.org/projects/js-quicktags
features:
- supports: IE7, FF2, Safari... | JavaScript |
function $(id) {
return document.getElementById(id);
}
function resizeup(obj) {
var newheight = parseInt($(obj).style.height, 10) + 50;
$(obj).style.height = newheight + 'px';
}
function resizedown(obj) {
var newheight = parseInt($(obj).style.height, 10) - 50;
if(newheight > 0) {
$(obj).style.height = ... | JavaScript |
/**
* WYSIWYG HTML Editor for Internet
*
* @author Roddy <[email protected]>
* @version 2.5.3
*/
var KE_VERSION = "2.5.4";
var KE_EDITOR_TYPE = "full"; //full or simple
var KE_SAFE_MODE = false; // true or false
var KE_UPLOAD_MODE = true; // true or false
var KE_FONT_FAMILY = "Courier New";
var KE_WIDTH ... | JavaScript |
jQuery
.extend( {
createUploadIframe : function(id, uri) {
// create frame
var frameId = 'jUploadFrame' + id;
if (window.ActiveXObject) {
var io = document.createElement('<iframe id="' + frameId
+ '" name="' + frameId + '" />');
if (typeof uri == 'boolean') {
io.src = 'jav... | JavaScript |
/*!
* MultiUpload for xheditor
* @requires xhEditor
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 0.9.2 (build 100505)
*/
var swfu,selQueue=[],selectID,arrMsg=[],allSize=0,uploadSize=0;
f... | JavaScript |
/*!
* xhEditor - WYSIWYG XHTML Editor
* @requires jQuery v1.4.2
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 1.1.1 (build 101002)
*/
(function($){
if($.xheditor)return false;//防止JS重复加载
$.... | JavaScript |
/*!
* xhEditor - WYSIWYG XHTML Editor
* @requires jQuery v1.4.2
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 1.1.1 (build 101002)
*/
(function($){
if($.xheditor)return false;//防止JS重複加載
$.... | JavaScript |
/*!
* WYSIWYG UBB Editor support for xhEditor
* @requires xhEditor
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 0.9.6 (build 100513)
*/
function ubb2html(sUBB)
{
var i,sHtml=String(sUB... | JavaScript |
/*!
* xhEditor - WYSIWYG XHTML Editor
* @requires jQuery v1.4.2
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 1.1.1 (build 101002)
*/
(function($){
if($.xheditor)return false;//防止JS重复加载
$.... | JavaScript |
function codeImg(b) {
b.src = "getCodeImg?" + Math.random();
}
function clearApplication() {
$.ajax( {
type : "get",
url : "clearApplication.jsp?" + Math.random(),
error : function() {
alert("加载错误");
},
success : function() {
}
});
}
function clearSelect() {
$.ajax( {
type : "get",
... | JavaScript |
/*!
* jQuery Form Plugin
* version: 2.49 (18-OCT-2010)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/... | JavaScript |
//**********************图片上传预览插件************************
//作者:IDDQD(2009-07-01)
//Email:[email protected]
//http://iddqd5376.blog.163.com
//版本:1.0
//说明:图片上传预览插件
//上传的时候可以生成固定宽高范围内的等比例缩放图
//参数设置:
//width 存放图片固定大小容器的宽
//height 存放图片固定大小容器的高
//imgDiv 页面DIV... | JavaScript |
/**
* jQuery Checkbox Tree
*
* @author Valerio Galano <[email protected]>
*
* @see http://checkboxtree.googlecode.com
*
* @version 0.3.1
*/
(function($){
var checkboxTree = 0;
$.fn.checkboxTree = function(options) {
// build main options before element iteration
var options = $... | JavaScript |
function Node(id, pid, name, url, title, target, icon, iconOpen, open) {
this.id = id;
this.pid = pid;
this.name = name;
this.url = url;
this.title = title;
this.target = target;
this.icon = icon;
this.iconOpen = iconOpen;
this._io = open || false;
this._is = false;
this._ls = false;
this._hc = false;
thi... | JavaScript |
/*!
* MultiUpload for xheditor
* @requires xhEditor
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 0.9.2 (build 100505)
*/
var swfu,selQueue=[],selectID,arrMsg=[],allSize=0,uploadSize=0;
f... | JavaScript |
/*!
* xhEditor - WYSIWYG XHTML Editor
* @requires jQuery v1.4.2
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 1.1.1 (build 101002)
*/
(function($){
if($.xheditor)return false;//防止JS重复加载
$.... | JavaScript |
/*!
* xhEditor - WYSIWYG XHTML Editor
* @requires jQuery v1.4.2
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 1.1.1 (build 101002)
*/
(function($){
if($.xheditor)return false;//防止JS重複加載
$.... | JavaScript |
/*!
* WYSIWYG UBB Editor support for xhEditor
* @requires xhEditor
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 0.9.6 (build 100513)
*/
function ubb2html(sUBB)
{
var i,sHtml=String(sUB... | JavaScript |
/*!
* xhEditor - WYSIWYG XHTML Editor
* @requires jQuery v1.4.2
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 1.1.1 (build 101002)
*/
(function($){
if($.xheditor)return false;//防止JS重复加载
$.... | JavaScript |
//function movePage(absolutePage){
// window.location='?absolutePage=';
//}
function codeImg(b){
b.src="getCodeImg?"+Math.random();
} | JavaScript |
/*!
* jQuery Form Plugin
* version: 2.49 (18-OCT-2010)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/... | JavaScript |
//**********************图片上传预览插件************************
//作者:IDDQD(2009-07-01)
//Email:[email protected]
//http://iddqd5376.blog.163.com
//版本:1.0
//说明:图片上传预览插件
//上传的时候可以生成固定宽高范围内的等比例缩放图
//参数设置:
//width 存放图片固定大小容器的宽
//height 存放图片固定大小容器的高
//imgDiv 页面DIV... | JavaScript |
function Node(id, pid, name, url, title, target, icon, iconOpen, open) {
this.id = id;
this.pid = pid;
this.name = name;
this.url = url;
this.title = title;
this.target = target;
this.icon = icon;
this.iconOpen = iconOpen;
this._io = open || false;
this._is = false;
this._ls = false;
this._hc = false;
thi... | JavaScript |
/*!
* MultiUpload for xheditor
* @requires xhEditor
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 0.9.2 (build 100505)
*/
var swfu,selQueue=[],selectID,arrMsg=[],allSize=0,uploadSize=0;
f... | JavaScript |
/*!
* xhEditor - WYSIWYG XHTML Editor
* @requires jQuery v1.4.2
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 1.1.1 (build 101002)
*/
(function($){
if($.xheditor)return false;//防止JS重复加载
$.... | JavaScript |
/*!
* xhEditor - WYSIWYG XHTML Editor
* @requires jQuery v1.4.2
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 1.1.1 (build 101002)
*/
(function($){
if($.xheditor)return false;//防止JS重複加載
$.... | JavaScript |
/*!
* WYSIWYG UBB Editor support for xhEditor
* @requires xhEditor
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 0.9.6 (build 100513)
*/
function ubb2html(sUBB)
{
var i,sHtml=String(sUB... | JavaScript |
/*!
* xhEditor - WYSIWYG XHTML Editor
* @requires jQuery v1.4.2
*
* @author Yanis.Wang<[email protected]>
* @site http://xheditor.com/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
*
* @Version: 1.1.1 (build 101002)
*/
(function($){
if($.xheditor)return false;//防止JS重复加载
$.... | JavaScript |
//function movePage(absolutePage){
// window.location='?absolutePage=';
//}
function codeImg(b){
b.src="getCodeImg?"+Math.random();
} | JavaScript |
/*!
* jQuery Form Plugin
* version: 2.49 (18-OCT-2010)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/... | JavaScript |
//**********************图片上传预览插件************************
//作者:IDDQD(2009-07-01)
//Email:[email protected]
//http://iddqd5376.blog.163.com
//版本:1.0
//说明:图片上传预览插件
//上传的时候可以生成固定宽高范围内的等比例缩放图
//参数设置:
//width 存放图片固定大小容器的宽
//height 存放图片固定大小容器的高
//imgDiv 页面DIV... | JavaScript |
/**
* 값이 존재 하는지 검사.
* 공백, 탭 등의 문자열들은 없는것으로 간주한다.
*/
String.prototype.isValue = function() {
if (this == null || this.replace(/ /gi, "") == "") {
return false;
}
return true;
};
/**
* 정규표현식에 부합되는지 검사
*/
String.prototype.isPattern = function(pattern) {
return pattern.test(this);
};
/**
* ... | JavaScript |
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style");
msViewportStyle.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}"));
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
} | JavaScript |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time at http://ckeditor.com/builder to build CKEditor again.
*
... | JavaScript |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com/#... | JavaScript |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
| JavaScript |
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin, which shows a combo
// in... | JavaScript |
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'myDialog', function( editor ) {
return {
title: 'My Dialog',
minWidth: 400,
minHeight: 200,
contents: [
{
id: 'tab1',
label... | JavaScript |
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// Tool scripts for the sample pages.
// This file can be ignored and is not required to make use of CKEditor.
(function() {
// Check for sample compliance.
CKEDI... | JavaScript |
/*----------------------------------------\
| Cross Browser Tree Widget 1.1 |
|-----------------------------------------|
| Created by Emil A. Eklund ([email protected]) |
| For WebFX (http://webfx.eae.net/) |
|-----------------------------------------|
| This script is provided as is without |
| any warran... | JavaScript |
/**
* BBCode editor actions
* @param Int id
*/
function DomBBCodeEditor( id ) {
this.id = id;
this.setCursorPosition = function(ctrl, pos){
if (ctrl.setSelectionRange) {
ctrl.focus();
ctrl.setSelectionRange(pos, pos);
} else if (ctrl.createTextRange) {
var range = ctrl.createTextRange... | JavaScript |
/*
* Treeview pre-1.4.1 - jQuery plugin to hide and show branches of a tree
*
* http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
* http://docs.jquery.com/Plugins/Treeview
*
* Copyright (c) 2007 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/... | JavaScript |
/**
* Cookie plugin
*
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
/**
* Create a cookie with the given name and value and other optional parameters.
*
* @examp... | JavaScript |
/**
* Misc functions
*/
function fg_findPos( p ) {
var left = 0;
var top = 0;
var left = p.offsetLeft
var top = p.offsetTop+10;
for (; p; p = p.offsetParent){
top+= p.offsetTop;
left += p.offsetLeft;
}
return [left,top];
}
function fg_getElementWidth(Elem) {
if ( ns4 ) {
var elem = ... | JavaScript |
/************************************************************************************************************
JS Calendar
Copyright (C) September 2006 DTHMLGoodies.com, Alf Magne Kalleland
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Li... | JavaScript |
/*
A simple class for displaying file information and progress
Note: This is a demonstration only and not part of SWFUpload.
Note: Some have had problems adapting this class in IE7. It may not be suitable for your application.
*/
// Constructor
// file is a SWFUpload file object
// targetID is the HTML elem... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.