code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
tinyMCE.addI18n('en.style_dlg',{
title:"Edit CSS Style",
apply:"Apply",
text_tab:"Text",
background_tab:"Background",
block_tab:"Block",
box_tab:"Box",
border_tab:"Border",
list_tab:"List",
positioning_tab:"Positioning",
text_props:"Text",
text_font:"Font",
text_size:"Size",
text_weight:"Weight",
text_sty... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
tinymce.create('tinymce.plugins.StylePlugin', {
init : function(ed, url)... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
tinymce.create('tinymce.plugins.Directionality', {
init : function(ed, u... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
tinymce.create('tinymce.plugins.Print', {
init : function(ed, url) {
... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
tinymce.create('tinymce.plugins.VisualChars', {
init : function(ed, url)... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
/**
* Auto Resize
*
* This plugin automatically resizes the content area to fit... | JavaScript |
tinyMCEPopup.requireLangPack();
var ExampleDialog = {
init : function() {
var f = document.forms[0];
// Get the selected contents as text and place it in the input
f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});
f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_a... | JavaScript |
tinyMCE.addI18n('en.example',{
desc : 'This is just a template button'
});
| JavaScript |
tinyMCE.addI18n('en.example_dlg',{
title : 'This is just a example title'
});
| JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
// Load plugin specific language pack
tinymce.PluginManager.requireLangPa... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u... | JavaScript |
tinyMCEPopup.requireLangPack();
var SearchReplaceDialog = {
init : function(ed) {
var f = document.forms[0], m = tinyMCEPopup.getWindowArg("mode");
this.switchMode(m);
f[m + '_panel_searchstring'].value = tinyMCEPopup.getWindowArg("search_string");
// Focus input field
f[m + '_panel_searchstri... | JavaScript |
tinyMCE.addI18n('en.searchreplace_dlg',{
searchnext_desc:"Find again",
notfound:"The search has been completed. The search string could not be found.",
search_title:"Find",
replace_title:"Find/Replace",
allreplaced:"All occurrences of the search string were replaced.",
findwhat:"Find what",
replacewith:"Replace ... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
tinymce.create('tinymce.plugins.SearchReplacePlugin', {
init : function(... | JavaScript |
tinyMCE.addI18n('en.simple',{
bold_desc:"Bold (Ctrl+B)",
italic_desc:"Italic (Ctrl+I)",
underline_desc:"Underline (Ctrl+U)",
striketrough_desc:"Strikethrough",
bullist_desc:"Unordered list",
numlist_desc:"Ordered list",
undo_desc:"Undo (Ctrl+Z)",
redo_desc:"Redo (Ctrl+Y)",
cleanup_desc:"Cleanup messy code"
})... | JavaScript |
tinyMCEPopup.requireLangPack();
function init() {
var ed, tcont;
tinyMCEPopup.resizeToInnerSize();
ed = tinyMCEPopup.editor;
// Give FF some time
window.setTimeout(insertHelpIFrame, 10);
tcont = document.getElementById('plugintablecontainer');
document.getElementById('plugins_tab').style.display ... | JavaScript |
tinyMCEPopup.requireLangPack();
var AnchorDialog = {
init : function(ed) {
var action, elm, f = document.forms[0];
this.editor = ed;
elm = ed.dom.getParent(ed.selection.getNode(), 'A');
v = ed.dom.getAttrib(elm, 'name');
if (v) {
this.action = 'update';
f.anchorName.value = v;
}
... | JavaScript |
/**
* charmap.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
tinyMCEPopup.requireLangPack();
var charmap = [
[' ', ' ', true, 'no-break space']... | JavaScript |
tinyMCEPopup.requireLangPack();
tinyMCEPopup.onInit.add(onLoadInit);
function saveContent() {
tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true});
tinyMCEPopup.close();
}
function onLoadInit() {
tinyMCEPopup.resizeToInnerSize();
// Remove Gecko spellchecki... | JavaScript |
var ImageDialog = {
preInit : function() {
var url;
tinyMCEPopup.requireLangPack();
if (url = tinyMCEPopup.getParam("external_image_list_url"))
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
},
... | JavaScript |
tinyMCEPopup.requireLangPack();
var LinkDialog = {
preInit : function() {
var url;
if (url = tinyMCEPopup.getParam("external_link_list_url"))
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
},
init... | JavaScript |
Grid = function(config) {
this.titleTable = $('#'+config.titleTable);
this.dataTable = $('#'+config.dataTable);
this.widths = config.widths;
this.height = config.height;
this.autoResize = config.autoResize;
this.dbView = config.dbView;
this.init();
}
Grid.prototype = {
init : function() ... | JavaScript |
/*
File: Math.uuid.js
Version: 1.3
Change History:
v1.0 - first release
v1.1 - less code and 2x performance boost (by minimizing calls to Math.random())
v1.2 - Add support for generating non-standard uuids of arbitrary length
v1.3 - Fixed IE7 bug (can't use []'s to access string chars. Thanks, Brian R.)... | JavaScript |
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00... | JavaScript |
var $lang={
errAlertMsg: "Invalid date or the date out of range,redo or not?",
aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Se... | JavaScript |
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00... | JavaScript |
var langList =
[
{name:'en', charset:'UTF-8'},
{name:'zh-cn', charset:'UTF-8'},
{name:'zh-tw', charset:'UTF-8'}
];
var skinList =
[
{name:'default', charset:'UTF-8'},
{name:'whyGreen', charset:'UTF-8'}
]; | JavaScript |
/*!
* @fileOverview WindowPanel Javascript Component v2.0
*
* Copyright 2010, zhangqiang
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Build on jQuery JavaScript Library v1.4.4
* Date: 2010.12.23
*
* Depends:
* Draggable.js
* Resizable.js
*
* @param {Object} config
* {s... | JavaScript |
/**
* modified by badqiu (badqiu(a)gmail.com)
* blog: http://badqiu.javaeye.com
* Project Home: http://code.google.com/p/rapid-validation/
* Rapid Framework Project Home: http://code.google.com/p/rapid-framework/
* Version 1.5.0
*/
/*
* Really easy field validation with Prototype
* http://tetlaw.id.a... | JavaScript |
var projectName = ''; | JavaScript |
var validateArray = new Array();
var errorArray = new Array();
var form_success = true;
/*添加日期类型验证*/
function addDateValidate(webId, rules) {
var dateInput = $('#'+webId);
dateInput.addClass('Wdate');
dateInput.attr('readonly', true);
for(var i=0; i<rules.length; i++) {
dateInput.attr('title', date... | JavaScript |
/**
* Version 2.1
* -Contributors: "mindinquiring" : filter to exclude any stylesheet other than print.
* Tested ONLY in IE 8 and FF 3.6. No official support for other browsers, but will
* TRY to accomodate challenges in other browsers.
* Example:
* Print Button: <div id="print_button">Pri... | JavaScript |
/*!
* Draggable v1.0
* Build on jQuery JavaScript Library v1.4
*
* 实现组件简单拖拽效果
* @author : zhangqiang
* @date : 2010-12-22
*
* TODO IE6 无效
*
* 用法:
* target.draggable(config);
* 说明:
* target : 待拖拽的目标组件(需要为jQuery对象)
* trigger: 可拖拽的组件位置(需要为jQuery对象)
* config : TODO 配置项
* ... | JavaScript |
/*---------------------------------------------------------------------------*\
| Subject: Web TreeView Class |
| Version: 1.0 |
| Author: 黄方荣【meizz】【梅花雪】 |
| Fil... | JavaScript |
function printOrder(div){
$(div).printArea();
}
function getFlushParam(windowPanelId) {
return 'tabId=' + tabpanel.active + '&windowPanelId=' + windowPanelId;
}
function showLoadMask(tabId){
if($('#'+tabId).length==0) {
$('#load-mask').show();
$('#load-mask').fadeTo(0, 0.5);
$('#load-msg').... | JavaScript |
/**
* 用户选择控件
* */
UsersSelect = function(config) {
this.url = config.url;
this.width = config.width;
this.windowWidth = config.windowWidth || 500;
this.windowHeight = config.windowHeight || 300;
this.avgWidth = (this.windowWidth - 89) / 3;
this.inputId = config.inputId;
this.windowTitle = conf... | JavaScript |
(function () {
var _prefix = {
separator: 'AutoId-toolbar-separator-',
button: 'AutoId-toolbar-button-',
filters: 'AutoId-toolbar-filters-',
textfield: 'AutoId-toolbar-textfield-'
},
_autoId = Toolbar.AUTO_ID;
//----------------------------------------------------------... | JavaScript |
/**
* 供应商选择控件
*/
SupplierSelect = function(config) {
this.url = config.url;
this.width = config.width;
this.windowWidth = config.windowWidth || 500;
this.windowHeight = config.windowHeight || 300;
this.avgWidth = (this.windowWidth - 89) / 3;
this.inputId = config.inputId;
this.windowTitle = config.ti... | JavaScript |
/**
* TabPanel Javascript Component v2.0
*
* Copyright 2010, Marker King
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Build on jQuery JavaScript Library v1.4.4
*
* Date: 2010.12.22
*
* $ protected
* _ private
*
* @param {Object} config
*
* {string | jQuery} config.r... | JavaScript |
BoxSelect = function(config) {
this.allId = config.allId;
this.boxName = config.boxName;
this.handler = config.handler;
this.init();
};
BoxSelect.prototype = {
init : function(){
//选择控件实体
var boxSelectEntity = this;
//获得全选Box
this.allBox = $('#'+this.allId);
//tr集合
this.... | JavaScript |
/*弹出居中窗口*/
function openCenterWindow(config) {
var _left = (screen.width - config.width) / 2;
var _top = (screen.height - config.height) / 2;
var options = new Array();
options.push('toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes');
options.push(',width=');
options.push(config.width);
... | JavaScript |
function _selectall(obj)
{
obj = (typeof obj == "string") ? document.getElementById(obj) : obj;
if(obj.tagName.toLowerCase() != "select")
return;
for(var i=0; i<obj.length; i++)
{
obj[i].selected = true;
}
}
function _top(obj)
{
obj = (typeof obj == "string") ? document.getElementById(... | JavaScript |
function choose(obj) {
obj = $(obj);
var patn = /\.jpg$|\.jpeg$|\.gif$|\.png$/i;
var allowString ="jpg,jpeg,gif,png";
var filePath = obj.val();
if(filePath !== '') {
if(!patn.test(filePath)) {
alert("图片格式不正确,只能上传以下图片格式:"+allowString);
obj.parent().html(obj.parent().html());
} else... | JavaScript |
var $dp, WdatePicker;
(function() {
var $ = {
$langList : [ {
name : "zh-cn",
charset : "utf-8"
} ],
$skinList : [ {
name : "default",
charset : "utf-8"
} ],
$wdate : true,
$crossFrame : true,
$preLoad : false,
doubleCalendar : false,
enableKeyboard : true,
enableInputM... | JavaScript |
/*!
* jQuery Form Plugin
* version: 3.09 (16-APR-2012)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Project repository: https://github.com/malsup/form
* Dual licensed under the MIT and GPL licenses:
* http://malsup.github.com/mit-license.txt
* htt... | JavaScript |
/**
* JQuery前台验证框架.
*
* JQuery-Framework-Validator PlugIn
*
* @author 324945 AndyDai
*
* CreateDate: 2012-5-9
*
**/
if (typeof jQueryJEvent == "undefined") { var jQueryJEvent = new Object();}
jQueryJEvent.Event = function(name,capture,bubble,data,target){
this.name = name;
this.captur... | JavaScript |
/*!
* artDialog 5 plugins
* Date: 2012-03-16
* https://github.com/aui/artDialog
* (c) 2009-2012 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
;(function ($) {
/**
* 警告
* @param {Stri... | JavaScript |
/*!
* artDialog 4.1.7
* Date: 2013-03-03 08:04
* http://code.google.com/p/artdialog/
* (c) 2009-2012 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
//----------------------------... | JavaScript |
/**
* 封装原生ajax请求,添加token参数.
* 注意: 此Js文件需要放在 jquery.js 之后
* @author 329202 符瑜鑫(Ricky Fu)
* @date 2012-11-28
*/
(function($){
var TOKEN_KEY = 'com.sfpay.framework.web.TOKEN',
SEP_KEY = '=|';//此两项是Java端定义的常量
//~~~~~~~~~~~~~~~~$.ajax覆写
var $ajaxFn = $.ajax;
/**
* ajax请求封装.<br/>
* 如果添加tokenId属性的话... | JavaScript |
define(function(require, exports, module) {
var $ = require('$'),
Dialog = require('./dialog');
var template = require('./confirmbox.handlebars');
require('./dialog.css');
// ConfirmBox
// -------
// ConfirmBox 是一个有基础模板和样式的对话框组件。
var ConfirmBox = Dialog.extend({
attrs: {... | JavaScript |
define("arale/select/0.9.5/select", [ "arale/overlay/1.1.2/overlay", "$", "arale/position/1.0.1/position", "arale/iframe-shim/1.0.2/iframe-shim", "arale/widget/1.1.1/widget", "arale/base/1.1.1/base", "arale/class/1.1.0/class", "arale/events/1.1.0/events", "arale/templatable/0.9.1/templatable", "gallery/handlebars/1.0.2... | JavaScript |
define(function(require, exports, module) {
var $ = require('$'), Dialog = require('./dialog');
var template = require('./confirmbox.handlebars');
require('./dialog.css');
// ConfirmBox
// -------
// ConfirmBox 是一个有基础模板和样式的对话框组件。
var ConfirmBox = Dialog.extend({
attrs : {
title : '默认标题',
... | JavaScript |
define("arale/dialog/1.1.3/dialog",
["$","arale/overlay/1.1.2/overlay",
"arale/position/1.0.1/position",
"arale/iframe-shim/1.0.2/iframe-shim",
"arale/widget/1.1.1/widget",
"arale/base/1.1.1/base",
"arale/class/1.1.0/class",
"arale/events/1.1.0/events",
"arale/overlay/1.1.2/mask",
"arale/templ... | JavaScript |
define("arale/validator/0.9.5/core", [ "$", "./async", "arale/widget/1.1.1/widget", "arale/base/1.1.1/base", "arale/class/1.1.0/class", "arale/events/1.1.0/events", "./utils", "./rule", "./item" ], function(require, exports, module) {
var $ = require("$"), async = require("./async"), Widget = require("arale/widget... | JavaScript |
define("arale/autocomplete/1.2.2/autocomplete", [ "$", "arale/overlay/1.1.2/overlay", "arale/position/1.0.1/position", "arale/iframe-shim/1.0.2/iframe-shim", "arale/widget/1.1.1/widget", "arale/base/1.1.1/base", "arale/class/1.1.0/class", "arale/events/1.1.0/events", "arale/templatable/0.9.1/templatable", "gallery/hand... | JavaScript |
define(function(require, exports, module) {
var $ = require('$'),
Dialog = require('./dialog');
var template = require('./confirmbox.handlebars');
require('./dialog.css');
// ConfirmBox
// -------
// ConfirmBox 是一个有基础模板和样式的对话框组件。
var ConfirmBox = Dialog.extend({
attrs: {... | JavaScript |
define("arale/select/0.9.5/select", [ "arale/overlay/1.1.2/overlay", "$", "arale/position/1.0.1/position", "arale/iframe-shim/1.0.2/iframe-shim", "arale/widget/1.1.1/widget", "arale/base/1.1.1/base", "arale/class/1.1.0/class", "arale/events/1.1.0/events", "arale/templatable/0.9.1/templatable", "gallery/handlebars/1.0.2... | JavaScript |
define(function(require, exports, module) {
var $ = require('$'), Dialog = require('./dialog');
var template = require('./confirmbox.handlebars');
require('./dialog.css');
// ConfirmBox
// -------
// ConfirmBox 是一个有基础模板和样式的对话框组件。
var ConfirmBox = Dialog.extend({
attrs : {
title : '默认标题',
... | JavaScript |
define("arale/dialog/1.1.3/dialog",
["$","arale/overlay/1.1.2/overlay",
"arale/position/1.0.1/position",
"arale/iframe-shim/1.0.2/iframe-shim",
"arale/widget/1.1.1/widget",
"arale/base/1.1.1/base",
"arale/class/1.1.0/class",
"arale/events/1.1.0/events",
"arale/overlay/1.1.2/mask",
"arale/templ... | JavaScript |
define("arale/validator/0.9.5/core", [ "$", "./async", "arale/widget/1.1.1/widget", "arale/base/1.1.1/base", "arale/class/1.1.0/class", "arale/events/1.1.0/events", "./utils", "./rule", "./item" ], function(require, exports, module) {
var $ = require("$"), async = require("./async"), Widget = require("arale/widget... | JavaScript |
define("arale/autocomplete/1.2.2/autocomplete", [ "$", "arale/overlay/1.1.2/overlay", "arale/position/1.0.1/position", "arale/iframe-shim/1.0.2/iframe-shim", "arale/widget/1.1.1/widget", "arale/base/1.1.1/base", "arale/class/1.1.0/class", "arale/events/1.1.0/events", "arale/templatable/0.9.1/templatable", "gallery/hand... | JavaScript |
var maanden = new Array('januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december');
var currentMonth = new Date().getMonth();
var currentYear = new Date().getFullYear();
$(document).ready(function(){
$('#tooltip').css({
opacity: 0
... | JavaScript |
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*
... | JavaScript |
var start_seconds;
function swfUploadLoaded() {
if(document.getElementById("Form_"+form_name)) {
form = document.getElementById("Form_"+form_name);
}
else {
for(var i = 0; i < document.forms.length; i++) {
if(document.forms[i].id.match(form_name)) {
form = document.forms[i];
break;
}
}
}
inpu... | JavaScript |
/*
SWFUpload Graceful Degradation Plug-in
This plugin allows SWFUpload to display only if it is loaded successfully. Otherwise a default form is left displayed.
Usage:
To use this plugin create two HTML containers. Each should have an ID defined. One container should hold the SWFUpload UI. The other should... | 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 element id a... | JavaScript |
var swfu;
var onLoadFunction;
swfupload_load = function () {
swfu = new SWFUpload({
upload_url:"$upload_url",
file_post_name:"$file_post_name",
post_params: { $post_params },
file_size_limit :"$file_size_limit",
file_types :"$file_types_list",
file_types_description :"$file_types_descri... | JavaScript |
var form_name = "$form_name";
var required = $required;
var form;
var inputs;
var btnBrowse;
var txtFileName;
var btnSubmit;
| JavaScript |
SideReports = Class.extend('SidePanel');
SideReports.prototype = {
initialize: function() {
this.selector = $('ReportSelector');
if(this.selector) this.selector.holder = this;
this.SidePanel.initialize();
},
destroy: function() {
if(this.SidePanel) this.SidePanel.destroy();
this.SidePanel = nul... | JavaScript |
tinyMCEPopup.requireLangPack();
var charmap = [
['Ā', 'Ā', true, 'A - macron'],
['Ē', 'Ē', true, 'E - macron'],
['Ī', 'Ī', true, 'I - macron'],
['Ō', 'Ō', true, 'O - macron'],
['Ū', 'Ū', true, 'U - macron'],
['ā', 'ā', ... | JavaScript |
(function() {
var each = tinymce.each;
/**
* Load via: HtmlEditorConfig::get('cms')->enablePlugins(array('ssmacron', '../../../../cms/javascript/tinymce_ssmacron'))
*/
tinymce.create('tinymce.plugins.InsertMacron', {
getInfo : function() {
return {
longname : 'Button to insert macrons',
author : 'H... | JavaScript |
/**
* Configuration for the left hand tree
*/
if(typeof SiteTreeHandlers == 'undefined') SiteTreeHandlers = {};
SiteTreeHandlers.parentChanged_url = 'admin/security/ajaxupdateparent';
SiteTreeHandlers.orderChanged_url = 'admin/security/ajaxupdatesort';
SiteTreeHandlers.loadPage_url = 'admin/security/getitem';
... | JavaScript |
/*
highlightImages_over * common/js/highlight.js
* Behaviour-abstracted highligher modul
*
* Usage:
* - include <script src="/common/js/highlight.js"></script> in the header of your file
* - set the class of the container to "highlight". The class will have ' over' appended to it on mouseover
* - set ... | JavaScript |
/**
* Configuration for the left hand tree
*/
if(typeof SiteTreeHandlers == 'undefined') SiteTreeHandlers = {};
SiteTreeHandlers.parentChanged_url = 'admin/assets/ajaxupdateparent';
SiteTreeHandlers.orderChanged_url = 'admin/assets/ajaxupdatesort';
SiteTreeHandlers.loadPage_url = 'admin/assets/getitem';
SiteTr... | JavaScript |
CMSForm = Class.extend('ChangeTracker').extend('Observable');
CMSForm.prototype = {
initialize : function(fn) {
this.ChangeTracker.initialize();
this.formName = fn;
this.prepareForm();
},
/**
* Trigger normal save event, helpful e.g. when enter key is pressed in
* single line input fields.
... | JavaScript |
WidgetAreaEditorClass = Class.create();
WidgetAreaEditorClass.prototype = {
initialize: function() {
this.name = this.getAttribute('name');
this.rewriteWidgetAreaAttributes();
UsedWidget.applyToChildren($('usedWidgets-'+this.name), 'div.Widget');
var availableWidgets = $('availableWidgets-'+this.name... | JavaScript |
// script.aculo.us EffectResize.js
// Copyright(c) 2007 - Frost Innovation AS, http://ajaxwidgets.com
//
// EffectResize.js is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
//
// From: http://wiki.script.aculo.us/scriptaculo... | JavaScript |
MemberTableFieldPopupForm = Class.extend("ComplexTableFieldPopupForm");
MemberTableFieldPopupForm.prototype = {
initialize: function() {
this.ComplexTableFieldPopupForm.initialize();
Behaviour.register('MemberTableFieldPopupForm',{
"div.MemberTableField_Popup .Actions input.action": {
onclick: thi... | JavaScript |
Behaviour.register({
'body.ReportAdmin #Form_EditForm' : {
initialise : function() {
this.openTab = null;
this.prepareForm();
},
/**
* Processing called whenever a page is loaded in the right - including the initial one
*/
prepareForm : function() {
ajaxActionsAtTop('Form_Edit... | JavaScript |
CommentTableField = Class.create();
CommentTableField.prototype = {
initialize: function() {
var rules = {};
rules['#'+this.id+' table.data a.spamlink'] = {
onclick: this.removeRowAfterAjax.bind(this)
};
rules['#'+this.id+' table.data a.approvelink'] = {
onclick: this.removeRowAfterAjax.b... | JavaScript |
Behaviour.register({
'#Form_EditForm' : {
getPageFromServer : function(id) {
statusMessage("loading...");
var requestURL = 'admin/comments/showtable/' + id;
this.loadURLFromServer(requestURL);
$('sitetree').setCurrentByIdx(id);
}
}
}); | JavaScript |
/**
* Modified 2006-10-05, Ingo Schommer
* This is more or less a copy of Member.js, with additions and changes
* to match the switch from Member.php to MemberTableField.php all over the UI.
* Eventually it will replace Member.js (please remove this message then).
*/
// no confirm message for removal from... | JavaScript |
Behaviour.register({
'.buttons button' : {
onclick: function() {
window.top._OPEN_DIALOG.execHandler( this.name );
return false;
}
}
}); | JavaScript |
/**
* UI behaviour for the "Access" tab
*/
var siteTreeAccessHandler = function(canField, groupsField) {
var output = {}
output['#Form_EditForm_' + canField + ' input'] = {
initialize: function() {
if(this.checked) this.click();
},
onclick: function() {
$(groupsField).style.display = (this.v... | JavaScript |
function action_publish_right() {
$('Form_EditForm_action_publish').value = ss.i18n._t('CMSMAIN.PUBLISHING');
$('Form_EditForm_action_publish').className = 'action loading';
var publish = true;
$('Form_EditForm').save(false, null, 'save', publish);
}
function action_revert_right() {
$('Form_EditForm_action_... | JavaScript |
AssetTableField = Class.create();
AssetTableField.applyTo('#Form_EditForm_Files');
AssetTableField.prototype = {
initialize: function() {
Behaviour.register({
'#Form_EditForm div.FileFilter input' : {
onkeypress : this.prepareSearch.bind(this)
},
'#Form_EditForm' : {
changeDetection_fi... | JavaScript |
function hover_over() {
Element.addClassName(this, 'over');
}
function hover_out() {
Element.removeClassName(this, 'over');
}
hover_behaviour = {
onmouseover : hover_over,
onmouseout : hover_out
}
| JavaScript |
if(typeof SiteTreeHandlers == 'undefined') SiteTreeHandlers = {};
SiteTree.prototype = {
castAsTreeNode: function(li) {
behaveAs(li, SiteTreeNode, this.options);
},
getIdxOf : function(treeNode) {
if(treeNode && treeNode.id)
return treeNode.id;
},
getTreeNodeByIdx : function(idx) {
if(!i... | JavaScript |
if(typeof SiteTreeHandlers == 'undefined') SiteTreeHandlers = {};
SiteTreeHandlers.parentChanged_url = 'admin/ajaxupdateparent';
SiteTreeHandlers.orderChanged_url = 'admin/ajaxupdatesort';
SiteTreeHandlers.loadPage_url = 'admin/getitem';
SiteTreeHandlers.loadTree_url = 'admin/getsubtree';
_NEW_PAGES = new Array(... | JavaScript |
ThumbnailStripField = Class.create();
// We do this instead of div.thumbnailstrip for efficiency. It means that ThumbnailStripField can only be used in the
// CMS toolbar
ThumbnailStripField.applyTo('#FolderImages');
ThumbnailStripField.applyTo('#Flash');
ThumbnailStripField.prototype = {
/**
* @var updat... | JavaScript |
(function($) {
$(document).ready(function() {
$('.import-form .advanced').hide();
$('.import-form a.toggle-advanced').live(
'click',
function(e) {
$(this).parents('form:eq(0)').find('.advanced').toggle();
return false;
}
);
});
}(jQuery)); | JavaScript |
/**
* CAUTION: Assumes that a MemberTableField-instance is present as an editing form
*/
function action_addmember_right() {
var memberTableFields = document.getElementsBySelector('#Form_EditForm div.MemberTableField');
var tables = document.getElementsBySelector('#Form_EditForm div.MemberTableField table');
... | JavaScript |
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
} else {
ss.i18n.addDictionary('cs_CZ', {
'CMSMAIN.WARNINGSAVEPAGESBEFOREADDING' : "Před přidáním další podstránky, musíte stránku uložit",
'CMSMAIN.CANTADDCHILDREN... | JavaScript |
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
console.error('Class ss.i18n not defined');
} else {
ss.i18n.addDictionary('de_DE', {
'CMSMAIN.WARNINGSAVEPAGESBEFOREADDING' : "Sie müssen diese Seite speichern bevor Unterseiten hingefügt werden können",
'CMSMAIN.CANTADDCHILDREN' : "Unterseiten ni... | JavaScript |
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
console.error('Class ss.i18n not defined');
} else {
ss.i18n.addDictionary('fr_FR', {
'CMSMAIN.WARNINGSAVEPAGESBEFOREADDING' : "Vous devez sauvegarder la page avant d\'y ajouter des enfants",
'CMSMAIN.CANTADDCHILDREN' : "Vous ne pouvez pas ajouter ... | JavaScript |
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
} else {
ss.i18n.addDictionary('en_US', {
'CMSMAIN.WARNINGSAVEPAGESBEFOREADDING' : "You have to save a page before adding children underneath it",
'CMSMAIN.CANTADDCHILDR... | JavaScript |
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
} else {
ss.i18n.addDictionary('sk_SK', {
'CMSMAIN.WARNINGSAVEPAGESBEFOREADDING' : "Pred pridaním ďalšej podstránky, musíte stránku uložiť",
'CMSMAIN.CANTADDCHILDREN' : ... | JavaScript |
/**
* Ajax to support the comment posting system
*/
PageCommentInterface = Class.create();
PageCommentInterface.prototype = {
initialize: function() {
Behaviour.register({
'#PageCommentInterface_Form_PostCommentForm_action_postcomment' : {
onclick : this.postComment
},
'#PageComments a... | JavaScript |
(function() {
tinymce.PluginManager.requireLangPack("ssbuttons");
var each = tinymce.each;
tinymce.create('tinymce.plugins.SSButtons', {
/**
* Returns information about the plugin as a name/value array.
* The current keys are longname, author, authorurl, infourl and version.
*
* @returns Name/value ar... | JavaScript |
tinyMCE.addI18n('de.tinymce_ssbuttons',{
insertlink: 'Link einfügen',
insertimage: 'Bild einfügen',
insertflash: 'Flash Objekt einfügen'
}); | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.