code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/// <reference path="Jquery.doc.js"/> $(function() { $("#NoteSearch").click(function() { if ($.trim($("#searchKey").val()).length > 0) { location.href = "../Search.aspx?keys=" + escape($("#searchKey").val()); } else { $("#searchKey").focus(); } }...
JavaScript
/* * This file has been commented to support Visual Studio Intellisense. * You should not use this file at runtime inside the browser--it is only * intended to be used only for design-time IntelliSense. Please use the * standard jQuery library for all production use. * * Comment version: 1.3.2a */ /* * jQuery...
JavaScript
/// <reference path="Jquery.doc.js"/> window.onerror = function() { return true; } $(function () { var x = 10; var y = 10; // 左侧菜单效果 $('.Menu').click(function () { var $NowMenu = $(this).next('.MenuNote'); $('.MenuNote').hide(400, function () { }); if ($NowMenu.is(":vis...
JavaScript
//+ Carlos R. L. Rodrigues //@ http://jsfromhell.com/forms/restrict [rev. #1] Restrict = function(form){ this.form = form, this.field = {}, this.mask = {}; } Restrict.field = Restrict.inst = Restrict.c = null; Restrict.prototype.start = function(){ var $, __ = document.forms[this.form], s, x, j, c, sp...
JavaScript
/*! SWFObject v2.0 <http://code.google.com/p/swfobject/> Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject = function() { var UNDEF = "undefined", OBJECT = "obj...
JavaScript
//+ Carlos R. L. Rodrigues //@ http://jsfromhell.com/forms/restrict [rev. #1] Restrict = function(form){ this.form = form, this.field = {}, this.mask = {}; } Restrict.field = Restrict.inst = Restrict.c = null; Restrict.prototype.start = function(){ var $, __ = document.forms[this.form], s, x, j, c, sp...
JavaScript
function mycarousel_initCallback(carousel) { jQuery('.jcarousel-control a').bind('click', function() { carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text())); return false; }); jQuery('.jcarousel-scroll select').bind('change', function() { carousel.options.scroll = jQu...
JavaScript
/*! SWFObject v2.0 <http://code.google.com/p/swfobject/> Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject = function() { var UNDEF = "undefined", OBJECT = "obj...
JavaScript
/** * Theme Customizer enhancements for a better user experience. * * Contains handlers to make Theme Customizer preview reload changes asynchronously. * Things like site title and description changes. */ ( function( $ ) { // Site title and description. wp.customize( 'blogname', function( value ) { ...
JavaScript
/** * Functionality specific to Twenty Thirteen. * * Provides helper functions to enhance the theme experience. */ ( function( $ ) { var body = $( 'body' ), _window = $( window ); /** * Adds a top margin to the footer if the sidebar widget area is higher * than the rest of the page, to h...
JavaScript
function mycarousel_initCallback(carousel) { jQuery('.jcarousel-control a').bind('click', function() { carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text())); return false; }); jQuery('.jcarousel-scroll select').bind('change', function() { carousel.options.scroll = jQu...
JavaScript
//+ Carlos R. L. Rodrigues //@ http://jsfromhell.com/forms/restrict [rev. #1] Restrict = function(form){ this.form = form, this.field = {}, this.mask = {}; } Restrict.field = Restrict.inst = Restrict.c = null; Restrict.prototype.start = function(){ var $, __ = document.forms[this.form], s, x, j, c, sp...
JavaScript
/*! SWFObject v2.0 <http://code.google.com/p/swfobject/> Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject = function() { var UNDEF = "undefined", OBJECT = "obj...
JavaScript
/** * Theme Customizer enhancements for a better user experience. * * Contains handlers to make Theme Customizer preview reload changes asynchronously. * Things like site title, description, and background color changes. */ ( function( $ ) { // Site title and description. wp.customize( 'blogname', func...
JavaScript
/** * navigation.js * * Handles toggling the navigation menu for small screens. */ ( function() { var nav = document.getElementById( 'site-navigation' ), button, menu; if ( ! nav ) return; button = nav.getElementsByTagName( 'h3' )[0]; menu = nav.getElementsByTagName( 'ul' )[0]; if ( ! button ) ...
JavaScript
//(c) W-Shadow /** @namespace wsEditorData */ var wsIdCounter = 0; (function ($){ /* * Utility function for generating pseudo-random alphanumeric menu IDs. * Rationale: Simpler than atomically auto-incrementing or globally unique IDs. */ function randomMenuId(size){ if ( typeof size == 'undefined'...
JavaScript
jQuery(function($) { // parseUri 1.2.2 // (c) Steven Levithan <stevenlevithan.com> // MIT License function parseUri (str) { var o = parseUri.options, m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), uri = {}, i = 14; while (i--) uri[o.key[i]] = m[i] || ""; uri[o.q.name...
JavaScript
/* * jQuery JSON Plugin * version: 1.0 (2008-04-17) * * This document is licensed as free software under the terms of the * MIT License: http://www.opensource.org/licenses/mit-license.php * * Brantley Harris technically wrote this plugin, but it is based somewhat * on the JSON.org website's http://www.j...
JavaScript
/** * jQuery.fn.sort * -------------- * @param Function comparator: * Exactly the same behaviour as [1,2,3].sort(comparator) * * @param Function getSortable * A function that should return the element that is * to be sorted. The comparator will run on the * current collection, but you may w...
JavaScript
/*! * jQuery Form Plugin * version: 2.43 (12-MAR-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
jQuery(document).ready(function () { jQuery( '.switch-have-key' ).click( function() { var no_key = jQuery( this ).parents().find('div.no-key'); var have_key = jQuery( this ).parents().find('div.have-key'); no_key.addClass( 'hidden' ); have_key.removeClass( 'hidden' ); return false; }); ...
JavaScript
(function( $ ){ var mf_stack = []; var mf_before_sort = []; var mf_after_sort = []; var mf_before_save = []; var methods = { init : function( options ) { methods.callback_execute_js(mf_stack); }, duplicate : function( ) { methods.callback_execute_js(mf_stack); }, add: function( content){ m...
JavaScript
jQuery( document ).ready( function( $ ) { // Thanks to: http://devblog.foliotek.com/2009/07/23/make-table-rows-sortable-using-jquery-ui-sortable/ // Return a helper with preserved width of cells var fixHelper = function(e, ui) { ui.children().each(function() { $(this).width($(this).width()); }); ...
JavaScript
jQuery(document).ready(function($){ $(".mf-group-wrapper").sortable({ handle: '.sortable_mf', start: function(){ sort_group_id = $(this).attr('id'); $.mf_bind('callback_before_sort'); }, stop: function(){ id = jQuery(this).attr("id").split("-")[1]; sort_grou...
JavaScript
jQuery(document).ready(function($) { $('#adminmenuback,#adminmenuwrap,#wpadminbar,#footer').css( 'display', 'none' ); $('#send_set_categories').click(function() { $('#resp').css('display','none'); default_cat = ''; $('.dos').each(function(){ if($(this).is(':checked')){ if (default_cat...
JavaScript
jQuery(document).ready(function($) { //Custom Validataion methods jQuery.validator.addMethod( "lowercase", function(value, element) { return this.optional(element) || /^[0-9a-z\_]+$/.test(value); },'Only are accepted lowercase characters,numbers or underscores'); $('#addPostType').validate({meta:"v...
JavaScript
jQuery(document).ready(function($) { mf_suggest_labels = function () { $('.options_label input[name*=mf_posttype]:text').each(function(index,value) { var rel = $(this).attr('rel'); // swap singular value var label = $('#posttype-label').val(); rel = rel.replace('$s',label); ...
JavaScript
/** * JavaScript functions used for admin/mf_custom_group.php */ jQuery(document).ready(function($) { // suggest a type name if label is changed $('#custom_group_label').change(function(){ if( $('#custom_group_name').val().length == 0 ){ // only suggest if type is empty jQuery('#custom_gro...
JavaScript
jQuery(document).ready(function($) { mf_suggest_labels = function () { $('.options_label input[name*=mf_custom_taxonomy]:text').each(function(index,value) { rel = $(this).attr('rel'); label = $('#custom-taxonomy-name').val(); rel = rel.replace('%s',label); $(this).val(rel); })...
JavaScript
jQuery.mf_bind('add',function(){ jQuery('.mf_colorpicker').each(function(index,value) { exp = /colorpicker\_(.*)/g; field_id = exp.exec(jQuery(value).attr('id'))[1]; div_color = "#"+jQuery(value).attr('id'); field_id = 'colorpicker_value_'+field_id; jQuery(div_color).farbtastic('#'+field_id...
JavaScript
jQuery(document).ready(function($){ jQuery(document).on('click','.datebotton_mf',function(){ the_id = jQuery(this).attr('id'); picker = the_id.replace(/pick_/,''); format = jQuery('#format_date_field_'+picker).text(); format = switch_formats(format); picker = 'displ...
JavaScript
jQuery.mf_bind('add',function(){ if('undefined' != typeof tinyMCEPreInit){ jQuery(".multiline_custom_field .add_editor_mf").each( function(index,value){ var editor_text = jQuery(this).attr('id'); tinyMCE.execCommand('mceAddControl', true, editor_text); jQuery(this).removeClass('add_editor_...
JavaScript
jQuery(document).ready(function($){ $(document).on('click',".remove_image_media",function(){ var message = jQuery(this).attr('alt'); if(confirm(message)){ //get the name to the image pattern = /remove\-(.+)/i; id = jQuery(this).attr('id'); id = pattern.exec(id); ...
JavaScript
function mf_file_callback_upload(data){ if(data.error == false){ //como aun tiene jquery 1.4 aun no tiene prop var image_thumb = data.phpthumb; image_thumb += '?&w=150&h=120&zc=1&src='; image_thumb += data.file_url; //jQuery('#img_thumb_'+data.field_id).attr('src',image_thumb); ...
JavaScript
function mf_image_callback_upload(data){ if(data.error == false){ //como aun tiene jquery 1.4 aun no tiene prop var image_thumb = data.phpthumb; image_thumb += '?&w=150&h=120&zc=1&src='; image_thumb += data.file_url; jQuery('#img_thumb_'+data.field_id).attr('src',image_thumb); ...
JavaScript
function mf_audio_callback_upload(data){ if(data.error == false){ //como aun tiene jquery 1.4 aun no tiene prop var image_thumb = data.phpthumb; image_thumb += '?&w=150&h=120&zc=1&src='; image_thumb += data.file_url; player_audio = set_player(data.encode_file_url); jQuery('#obj-'+...
JavaScript
jQuery.mf_bind('add',function(){ jQuery('.markdowntextboxinterface_editor').each(function(){ jQuery(this).markItUp(mySettings); jQuery(this).removeClass('markdowntextboxinterface_editor'); }); }); mySettings = { previewParserPath: mf_js.mf_url + 'field_types/markdown_editor_field/markdownPreview....
JavaScript
jQuery.mf_bind('add',function() { jQuery('.mf_slider_field').not('.mf_processed').each(function(index,value) { jQuery(value).addClass('mf_processed'); data = jQuery(value).metadata({type:'attr',name:'data'}); slider_id = jQuery(value).attr('id'); jQuery(value).slider({ value: par...
JavaScript
/** * mctabs.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function MCTabs() { this.settings = []; this.onChange = tinyMCEPopup.editor.windowManager.createIn...
JavaScript
/** * validate.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ /** // String validation: if (!Validator.isEmail('myemail')) alert('Invalid email.'); /...
JavaScript
/** * form_utils.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme...
JavaScript
/** * editable_selects.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ var TinyMCE_EditableSelects = { editSelectElm : null, init : function() { var nl = ...
JavaScript
// TinyMCE Advanced jQuery sortables (function($) { tadvSortable = { init : function() { $("#toolbar_1").sortable({ connectWith: ["#toolbar_2, #toolbar_3, #toolbar_4, #tadvpalette"], items : 'li', stop : tadvSortable.update, revert : true, opacity : 0.7, containment : '#conta...
JavaScript
/* Functions for the advlink plugin popup */ tinyMCEPopup.requireLangPack(); var templates = { "window.open" : "window.open('${url}','${target}','${options}')" }; function preinit() { var url; if (url = tinyMCEPopup.getParam("external_link_list_url")) document.write('<script language="javascript" t...
JavaScript
tinyMCEPopup.requireLangPack(); function init() { tinyMCEPopup.resizeToInnerSize(); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTM...
JavaScript
tinyMCEPopup.requireLangPack(); var MergeCellsDialog = { init : function() { var f = document.forms[0]; f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1); f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1); }, merge : function() { var func, f = document.forms[0]; tinyMCEPopup.rest...
JavaScript
tinyMCEPopup.requireLangPack(); var action, orgTableWidth, orgTableHeight, dom = tinyMCEPopup.editor.dom; function insertTable() { var formObj = document.forms[0]; var inst = tinyMCEPopup.editor, dom = inst.dom; var cols = 2, rows = 2, border = 0, cellpadding = -1, cellspacing = -1, align, width, height, cl...
JavaScript
tinyMCEPopup.requireLangPack(); var ed; function init() { ed = tinyMCEPopup.editor; tinyMCEPopup.resizeToInnerSize(); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('bordercolor_pi...
JavaScript
tinyMCEPopup.requireLangPack(); var defaultFonts = "" + "Arial, Helvetica, sans-serif=Arial, Helvetica, sans-serif;" + "Times New Roman, Times, serif=Times New Roman, Times, serif;" + "Courier New, Courier, mono=Courier New, Courier, mono;" + "Times New Roman, Times, serif=Times New Roman, Times, serif;"...
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
var AdvHRDialog = { init : function(ed) { var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; w = dom.getAttrib(n, 'width'); f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; f.noshad...
JavaScript
tinyMCEPopup.requireLangPack(); var SearchReplaceDialog = { init : function(ed) { var t = this, f = document.forms[0], m = tinyMCEPopup.getWindowArg("mode"); t.switchMode(m); f[m + '_panel_searchstring'].value = tinyMCEPopup.getWindowArg("search_string"); // Focus input field f[m + '_panel_sea...
JavaScript
/** * ins.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { SXE.initElementDialog('ins'); if (SXE.currentAction == "update") { setFormValue(...
JavaScript
/** * del.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { SXE.initElementDialog('del'); if (SXE.currentAction == "update") { setFormValue(...
JavaScript
/** * element_common.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ tinyMCEPopup.requireLangPack(); function initCommonAttributes(elm) { var formObj = docume...
JavaScript
/** * cite.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { SXE.initElementDialog('cite'); if (SXE.currentAction == "update") { SXE.showRem...
JavaScript
/** * attributes.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { tinyMCEPopup.resizeToInnerSize(); var inst = tinyMCEPopup.editor; var dom ...
JavaScript
/** * acronym.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { SXE.initElementDialog('acronym'); if (SXE.currentAction == "update") { SXE.s...
JavaScript
/** * abbr.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { SXE.initElementDialog('abbr'); if (SXE.currentAction == "update") { SXE.showRem...
JavaScript
(function($) { $.fn.tagGenerator = function(title, options) { var menu = $('<div class="tag-generator"></div>'); var selector = $('<span>' + title + '</span>'); selector.css({ border: '1px solid #ddd', padding: '2px 4px', background: '#fff url(' + options.fadebuttImageUrl + ') repeat-x 0 0'...
JavaScript
(function($) { $(function() { try { $('div.cf7com-links').insertAfter($('div.wrap h2:first')); $.extend($.tgPanes, _wpcf7.tagGenerators); $('#taggenerator').tagGenerator(_wpcf7.generateTag, { dropdownIconUrl: _wpcf7.pluginUrl + '/admin/images/dropdown.gif', fadebuttImageUrl: _wpcf7.plugin...
JavaScript
/*! * jQuery Form Plugin * version: 3.40.0-2013.08.13 * @requires jQuery v1.5 or later * Copyright (c) 2013 M. Alsup * Examples and documentation at: http://malsup.com/jquery/form/ * Project repository: https://github.com/malsup/form * Dual licensed under the MIT and GPL licenses. * https://github.com/m...
JavaScript
(function($) { $(function() { try { if (typeof _wpcf7 == 'undefined' || _wpcf7 === null) _wpcf7 = {}; _wpcf7 = $.extend({ cached: 0 }, _wpcf7); _wpcf7.supportHtml5 = $.wpcf7SupportHtml5(); $('div.wpcf7 > form').ajaxForm({ beforeSubmit: function(formData, jqForm, options) { j...
JavaScript
jQuery(document).ready( function($) { postboxes.add_postbox_toggles('comment'); var stamp = $('#timestamp').html(); $('.edit-timestamp').click(function () { if ($('#timestampdiv').is(":hidden")) { $('#timestampdiv').slideDown("normal"); $('.edit-timestamp').hide(); } return false; }); $...
JavaScript
jQuery(document).ready( function($) { var newCat, noSyncChecks = false, syncChecks, catAddAfter; $('#link_name').focus(); // postboxes postboxes.add_postbox_toggles('link'); // category tabs $('#category-tabs a').click(function(){ var t = $(this).attr('href'); $(this).parent().addClass('tabs').s...
JavaScript
var findPosts; (function($){ findPosts = { open : function(af_name, af_val) { var st = document.documentElement.scrollTop || $(document).scrollTop(), overlay = $( '.ui-find-overlay' ); if ( overlay.length == 0 ) { $( 'body' ).append( '<div class="ui-find-overlay"></div>' ); findPosts.ov...
JavaScript
(function($) { $(document).ready(function() { var bgImage = $("#custom-background-image"), frame; $('#background-color').wpColorPicker({ change: function( event, ui ) { bgImage.css('background-color', ui.color.toString()); }, clear: function() { bgImage.css('background-color', ''); ...
JavaScript
(function($) { inlineEditPost = { init : function(){ var t = this, qeRow = $('#inline-edit'), bulkRow = $('#bulk-edit'); t.type = $('table.widefat').hasClass('pages') ? 'page' : 'post'; t.what = '#post-'; // prepare the edit rows qeRow.keyup(function(e){ if (e.which == 27) return inline...
JavaScript
jQuery(document).ready(function($) { var gallerySortable, gallerySortableInit, w, desc = false; gallerySortableInit = function() { gallerySortable = $('#media-items').sortable( { items: 'div.media-item', placeholder: 'sorthelper', axis: 'y', distance: 2, handle: 'div.filename', stop: fu...
JavaScript
/** * Theme Browsing * * Controls visibility of theme details on manage and install themes pages. */ jQuery( function($) { $('#availablethemes').on( 'click', '.theme-detail', function (event) { var theme = $(this).closest('.available-theme'), details = theme.find('.themedetaildiv'); if ( ! deta...
JavaScript