code
stringlengths
1
2.08M
language
stringclasses
1 value
tinyMCE.addI18n('pt.xhtmlxtras_dlg',{ attribute_label_title:"T\u00EDtulo", attribute_label_id:"ID", attribute_label_class:"Classe", attribute_label_style:"Estilo", attribute_label_cite:"Citar", attribute_label_datetime:"Data/hor\u00E1rio", attribute_label_langdir:"Dire\u00E7\u00E3o do texto", attribute_option_l...
JavaScript
tinyMCE.addI18n('ja.xhtmlxtras_dlg',{ attribute_label_title:"\u30BF\u30A4\u30C8\u30EB", attribute_label_id:"ID", attribute_label_class:"\u30AF\u30E9\u30B9", attribute_label_style:"\u30B9\u30BF\u30A4\u30EB", attribute_label_cite:"\u5F15\u7528", attribute_label_datetime:"\u65E5\u4ED8/\u6642\u523B", attribute_label...
JavaScript
tinyMCE.addI18n('zh.xhtmlxtras_dlg',{ attribute_label_title:"\u67E5\u627E", attribute_label_id:"ID", attribute_label_class:"\u6A23\u5F0F\u985E", attribute_label_style:"\u6A23\u5F0F", attribute_label_cite:"\u5F15\u7528", attribute_label_datetime:"\u65E5\u671F/\u6642\u9593", attribute_label_langdir:"\u6587\u5B57\u...
JavaScript
tinyMCE.addI18n('ru.xhtmlxtras_dlg',{ attribute_label_title:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A", attribute_label_id:"ID", attribute_label_class:"\u041A\u043B\u0430\u0441\u0441", attribute_label_style:"\u0421\u0442\u0438\u043B\u044C", attribute_label_cite:"\u0426\u0438\u0442\u0430\u0442\u0430",...
JavaScript
tinyMCE.addI18n('de.xhtmlxtras_dlg',{ attribute_label_title:"Titel", attribute_label_id:"ID", attribute_label_class:"Klasse", attribute_label_style:"Format", attribute_label_cite:"Quellenangabe", attribute_label_datetime:"Zeit/Datum", attribute_label_langdir:"Schriftrichtung", attribute_option_ltr:"Links nach r...
JavaScript
tinyMCE.addI18n('fr.xhtmlxtras_dlg',{ attribute_label_title:"Titre", attribute_label_id:"ID", attribute_label_class:"Classe", attribute_label_style:"Style", attribute_label_cite:"Citation", attribute_label_datetime:"Date/Heure", attribute_label_langdir:"Sens de lecture", attribute_option_ltr:"De gauche \u00E0 d...
JavaScript
tinyMCEPopup.requireLangPack(); function init() { tinyMCEPopup.resizeToInnerSize(); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgc...
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, className...
JavaScript
tinyMCEPopup.requireLangPack(); var ed; function init() { ed = tinyMCEPopup.editor; tinyMCEPopup.resizeToInnerSize(); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('bordercolor_pickcontain...
JavaScript
tinyMCEPopup.requireLangPack(); function init() { var f = document.forms[0], v; tinyMCEPopup.resizeToInnerSize(); f.numcols.value = tinyMCEPopup.getWindowArg('numcols', 1); f.numrows.value = tinyMCEPopup.getWindowArg('numrows', 1); } function mergeCells() { var args = [], f = document.forms[0]; tinyMCEPopup....
JavaScript
tinyMCE.addI18n('it.table_dlg',{ general_tab:"Generale", advanced_tab:"Avanzate", general_props:"Propriet\u00E0 generali", advanced_props:"Propriet\u00E0 avanzate", rowtype:"Riga in una parte di tabella", title:"Inserisci/Modifica tabella", width:"Larghezza", height:"Altezza", cols:"Colonne", rows:"Righe", c...
JavaScript
tinyMCE.addI18n('es.table_dlg',{ general_tab:"General", advanced_tab:"Avanzado", general_props:"Propiedades generales", advanced_props:"Propiedades avanzadas", rowtype:"Tipo de fila", title:"Insertar/Modificar tabla", width:"Ancho", height:"Alto", cols:"Cols", rows:"Filas", cellspacing:"Espaciado de celda", ...
JavaScript
tinyMCE.addI18n('en.table_dlg',{ general_tab:"General", advanced_tab:"Advanced", general_props:"General properties", advanced_props:"Advanced properties", rowtype:"Row in table part", title:"Insert/Modify table", width:"Width", height:"Height", cols:"Cols", rows:"Rows", cellspacing:"Cellspacing", cellpadding:"Cellpaddi...
JavaScript
tinyMCE.addI18n('pt.table_dlg',{ general_tab:"Geral", advanced_tab:"Avan\u00E7ado", general_props:"Propriedades gerais", advanced_props:"Propriedades avan\u00E7adas", rowtype:"Linha na parte da tabela", title:"Inserir/modificar tabela", width:"Largura", height:"Altura", cols:"Cols", rows:"Rows", cellspacing:...
JavaScript
tinyMCE.addI18n('ja.table_dlg',{ general_tab:"\u4E00\u822C", advanced_tab:"\u4E0A\u7D1A\u8005\u5411\u3051", general_props:"\u4E00\u822C", advanced_props:"\u4E0A\u7D1A\u8005\u5411\u3051", rowtype:"\u884C", title:"\u8868\u306E\u633F\u5165/\u7DE8\u96C6", width:"\u5E45", height:"\u9AD8\u3055", cols:"\u5217", rows...
JavaScript
tinyMCE.addI18n('zh.table_dlg',{ general_tab:"\u57FA\u672C", advanced_tab:"\u9AD8\u7D1A", general_props:"\u57FA\u672C \u5C6C\u6027", advanced_props:"\u9AD8\u7D1A\u5C6C\u6027", rowtype:"\u884C\u6240\u5728\u7684\u8868\u683C\u4F4D\u7F6E", title:"\u63D2\u5165/\u7DE8\u8F2F \u8868\u683C", width:"\u5BEC\u5EA6", height...
JavaScript
tinyMCE.addI18n('ru.table_dlg',{ general_tab:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435", advanced_tab:"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u043D\u044B\u0435", general_props:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430", advanced_props:"\u042...
JavaScript
tinyMCE.addI18n('de.table_dlg',{ general_tab:"Allgemein", advanced_tab:"Erweitert", general_props:"Allgemeine Einstellungen", advanced_props:"Erweiterte Einstellungen", rowtype:"Row in table part", title:"Tabelle einf\u00FCgen/bearbeiten", width:"Breite", height:"H\u00F6he", cols:"Spalten", rows:"Zeilen", ce...
JavaScript
tinyMCE.addI18n('fr.table_dlg',{ general_tab:"G\u00E9n\u00E9ral", advanced_tab:"Avanc\u00E9", general_props:"Propri\u00E9t\u00E9s g\u00E9n\u00E9rales", advanced_props:"Propri\u00E9t\u00E9s avanc\u00E9es", rowtype:"Type de ligne", title:"Ins\u00E9rer/Modifier tableau", width:"Largeur", height:"Hauteur", cols:"C...
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_searchstring'].focus(...
JavaScript
tinyMCE.addI18n('it.searchreplace_dlg',{ searchnext_desc:"Trova successivo", notfound:"Ricerca completata. Nessun risultato trovato.", search_title:"Trova", replace_title:"Trova/Sostituisci", allreplaced:"Tutte le occorrenze del criterio di ricerca sono state sostituite.", findwhat:"Trova:", replacewith:"Sostitu...
JavaScript
tinyMCE.addI18n('es.searchreplace_dlg',{ searchnext_desc:"Buscar de nuevo", notfound:"La b\u00FAsqueda se ha completado. No se encontr\u00F3 el texto introducido.", search_title:"Buscar", replace_title:"Buscar/Reemplazar", allreplaced:"Se ha reemplazado el texto.", findwhat:"Qu\u00E9 buscar", replacewith:"Reempl...
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 with", ...
JavaScript
tinyMCE.addI18n('pt.searchreplace_dlg',{ searchnext_desc:"Localizar novamente", notfound:"Pesquisa conclu\u00EDda sem resultados.", search_title:"Localizar", replace_title:"Localizar/substituir", allreplaced:"Todas substitui\u00E7\u00F5es foram efetuadas.", findwhat:"Localizar", replacewith:"Substituir com", di...
JavaScript
tinyMCE.addI18n('ja.searchreplace_dlg',{ searchnext_desc:"\u518D\u691C\u7D22", notfound:"\u6700\u5F8C\u307E\u3067\u691C\u7D22\u3057\u307E\u3057\u305F\u304C\u3001\u691C\u7D22\u6587\u5B57\u5217\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002", search_title:"\u691C\u7D22", replace_title:"\u691C...
JavaScript
tinyMCE.addI18n('zh.searchreplace_dlg',{ searchnext_desc:"\u518D\u6B21\u67E5\u627E", notfound:"\u67E5\u627E\u5DF2\u5B8C\u6210 ! \u627E\u4E0D\u5230\u4EFB\u4F55\u76EE\u6A19\u3002 ", search_title:"\u67E5\u627E", replace_title:"\u67E5\u627E/\u66FF\u63DB", allreplaced:"\u5DF2\u66FF\u63DB\u6240\u6709\u5339\u914D\u7684\u...
JavaScript
tinyMCE.addI18n('ru.searchreplace_dlg',{ searchnext_desc:"\u0414\u0430\u043B\u044C\u0448\u0435", notfound:"\u041F\u043E\u0438\u0441\u043A \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D. \u041F\u043E \u0412\u0430\u0448\u0435\u043C\u0443 \u0437\u0430\u043F\u0440\u043E\u0441\u0443 \u043D\u0438\u0447\u0435\u0433\u043E ...
JavaScript
tinyMCE.addI18n('de.searchreplace_dlg',{ searchnext_desc:"Weitersuchen", notfound:"Die Suche ist am Ende angelangt. Die Zeichenkette konnte nicht gefunden werden.", search_title:"Suchen", replace_title:"Suchen/Ersetzen", allreplaced:"Alle Vorkommen der Zeichenkette wurden ersetzt.", findwhat:"Zu suchender Text", ...
JavaScript
tinyMCE.addI18n('fr.searchreplace_dlg',{ searchnext_desc:"Suivant", notfound:"La recherche est termin\u00E9e. La cha\u00EEne recherch\u00E9e n'a pas \u00E9t\u00E9 trouv\u00E9e.", search_title:"Chercher", replace_title:"Chercher/Remplacer", allreplaced:"Toutes les occurences de la cha\u00EEne recherch\u00E9e ont \u...
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, containment : '#contain' }); $(...
JavaScript
tadvReplace = { init : function() { var t = this, btn1, btn2, tb = document.getElementById('ed_toolbar'), c = document.getElementById('content'), se; se = ( 'undefined' != typeof switchEditors ) ? switchEditors : null; if ( se ) { if ( 'function' == typeof se._wpautop ) { se.tadv_wpautop = se....
JavaScript
/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate: 2007...
JavaScript
var obj = null; function checkHover() { if (obj) { if(jQuery.browser.msie) { obj.find('ul').hide(); } else { obj.find('ul').fadeOut('fast'); } } //if } //checkHover jQuery(document).ready(function() { jQuery('#menu > li').hover(function() { if (obj) { ...
JavaScript
var newsitems; var curritem=0; var iPause=0; jQuery(document).ready(function(){ var tickerSelector = "ul#ticker li"; newsitems = jQuery(tickerSelector).hide().hover( function(){ jQuery(this).addClass("hovered"); iPause=1; }, function(){ jQuery(this).r...
JavaScript
jQuery.fn.fadeIn = function(speed, callback) { return this.animate({opacity: 'show'}, speed, function() { if (jQuery.browser.msie) this.style.removeAttribute('filter'); if (jQuery.isFunction(callback)) callback(); }); }; jQuery.fn.fadeOut = function(speed, ca...
JavaScript
jQuery(document).ready( function() { add_postbox_toggles('comment'); // close postboxes that should be closed jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); // show things that should be visible, hide what should be hidden jQuery('.hide-if-no-js').show(); jQuery('.hide-if-js').hide(); ...
JavaScript
jQuery( function($) { var before = function() { var nonce = $('#newmeta [@name=_ajax_nonce]').val(); var postId = $('#post_ID').val(); if ( !nonce || !postId ) { return false; } return [nonce,postId]; } var addBefore = function( s ) { var b = before(); if ( !b ) { return false; } s.data = s.data.repla...
JavaScript
jQuery(function($) { var options = false var addAfter = function( r, settings ) { var name = $("<span>" + $('name', r).text() + "</span>").html(); var id = $('tag', r).attr('id'); options[options.length] = new Option(name, id); } var delAfter = function( r, settings ) { var id = $('tag', r).attr('id'); ...
JavaScript
// this file contains all the scripts used in the post/edit page function new_tag_remove_tag() { var id = jQuery( this ).attr( 'id' ); var num = id.substr( 10 ); var current_tags = jQuery( '#tags-input' ).val().split(','); delete current_tags[num]; var new_tags = []; jQuery.each( current_tags, function( key, val...
JavaScript
wpGears = { createStore : function() { if ( 'undefined' == typeof google || ! google.gears ) return; if ( 'undefined' == typeof localServer ) localServer = google.gears.factory.create("beta.localserver"); store = localServer.createManagedStore(this.storeName()); store.manifestUrl = "gears-manifest.php"...
JavaScript
jQuery(document).ready( function() { add_postbox_toggles('page'); make_slugedit_clickable(); // close postboxes that should be closed jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); // show things that should be visible, hide what should be hidden jQuery('.hide-if-no-js').show(); jQuery...
JavaScript
jQuery(document).ready( function() { // pulse jQuery('.fade').animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300).animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300); // Reveal jQuery('.wp-no-js-hidden').removeClass( 'wp-no-js-hidden' ...
JavaScript
jQuery(document).ready( function() { theFileList = { currentImage: {ID: 0}, nonce: '', tab: '', postID: 0, // cookie create and read functions adapted from http://www.quirksmode.org/js/cookies.html createCookie: function(name,value,days) { if (days) { var date = new Date(); date.setTime(date.ge...
JavaScript
jQuery( function($) { var myConfirm = function() { return '' !== $('#newcat').val(); }; $('#jaxcat').prepend('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" class="add:categorychecklist:jaxcat" id="catadd" value="' + catL10n.add + '"/><...
JavaScript
// send html to the post editor function send_to_editor(h) { if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.activeEditor ) && !ed.isHidden() ) { ed.focus(); if (tinymce.isIE) ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark); if ( h.indexOf('[caption') != -1 ) h ...
JavaScript
// Word count (function(JQ) { wpWordCount = { init : function() { var t = this, last = 0, co = JQ('#content'); JQ('#wp-word-count').html( wordCountL10n.count.replace( /%d/, '<span id="word-count">0</span>' ) ); t.block = 0; t.wc(co.val()); co.keyup( function(e) { if ( e.keyCode == last ) return...
JavaScript
function edit_permalink(post_id) { var i, c = 0; var e = jQuery('#editable-post-name'); var revert_e = e.html(); var real_slug = jQuery('#post_name'); var revert_slug = real_slug.html(); var b = jQuery('#edit-slug-buttons'); var revert_b = b.html(); var full = jQuery('#editable-post-name-full').html(); b.html...
JavaScript
jQuery(function($) { if ( 'undefined' == typeof $.fn.pngFix ) $.fn.pngFix = function() { return this; } var thickDims = function() { var tbWindow = $('#TB_window'); var H = $(window).height(); var W = $(window).width(); if ( tbWindow.size() ) { tbWindow.width( W - 90 ).height( H - 60 ); $('#TB_ifra...
JavaScript
function add_postbox_toggles(page) { jQuery('.postbox h3').prepend('<a class="togbox">+</a> '); jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); save_postboxes_state(page); } ); } function save_postboxes_state(page) { var closed = jQuery('.postbox').filter('.clos...
JavaScript
function GetElementsWithClassName(elementName, className) { var allElements = document.getElementsByTagName(elementName); var elemColl = new Array(); for (i = 0; i < allElements.length; i++) { if (allElements[i].className == className) { elemColl[elemColl.length] = allElements[i]; } } return elemColl; } fu...
JavaScript
var theList; var theExtraList; jQuery(function($) { var dimAfter = function( r, settings ) { $('li span.comment-count').each( function() { var a = $(this); var n = parseInt(a.html(),10); n = n + ( $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1 ); if ( n < 0 ) { n = 0; } a.html( n.toString() ...
JavaScript
function checkAll(jQ) { // use attr( checked, fn ) jQuery(jQ).find( 'tbody:visible :checkbox' ).attr( 'checked', function() { return jQuery(this).attr( 'checked' ) ? '' : 'checked'; } ); } jQuery( function($) { var lastClicked = false; $( 'tbody :checkbox' ).click( function(e) { if ( 'undefined' == e.shiftKey ...
JavaScript
// Password strength meter // This jQuery plugin is written by firas kassem [2007.04.05] // Firas Kassem phiras.wordpress.com || phiras at gmail {dot} com // for more information : http://phiras.wordpress.com/2007/04/08/password-strength-meter-a-jquery-plugin/ var shortPass = pwsL10n.short var badPass = pwsL10n.bad v...
JavaScript
jQuery( function($) { $('#users').wpList(); } );
JavaScript
jQuery(document).ready( function() { // close postboxes that should be closed jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); jQuery('#link_name').focus(); // postboxes add_postbox_toggles('link'); // category tabs var categoryTabs = jQuery('#category-tabs').tabs(); // Ajax Cat var n...
JavaScript
jQuery(function($) { var options = false if ( document.forms['addcat'].category_parent ) options = document.forms['addcat'].category_parent.options; var addAfter = function( r, settings ) { var name = $("<span>" + $('name', r).text() + "</span>").html(); var id = $('cat', r).attr('id'); options[options.leng...
JavaScript
jQuery(function($) { var gallerySortable; var gallerySortableInit = function() { gallerySortable = $('#media-items').sortable( { items: '.media-item', placeholder: 'sorthelper', axis: 'y', distance: 2, update: galleryReorder } ); } // When an update has occurred, adjust the order for each item ...
JavaScript
jQuery(function($) { $('.noscript-action').remove(); var increment = 1; // Open or close widget control form var toggleWidget = function( li, disableFields ) { var width = li.find('input.widget-width').val(); // it seems IE chokes on these animations because of the positioning/floating var widgetAnim = $.b...
JavaScript
wpEditorInit = function() { // Activate tinyMCE if it's the user's default editor if ( ( 'undefined' == typeof wpTinyMCEConfig ) || 'tinymce' == wpTinyMCEConfig.defaultEditor ) { document.getElementById('editorcontainer').style.padding = '0px'; tinyMCE.execCommand("mceAddControl", false, "conten...
JavaScript
// =================================================================== // Author: Matt Kruse <matt@mattkruse.com> // WWW: http://www.mattkruse.com/ // // NOTICE: You may use this code for any purpose, commercial or // private, without any further permission from the author. You may // remove this notice from your final...
JavaScript
(function($) { var currentFormEl = false; var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}; var wpList = { settings: { url: wpListL10n.url, type: 'POST', response: 'ajax-response', what: '', alt: 'alternate', altOffset: 0, addColor: null, delColor: null, dimAddColor:...
JavaScript
function fileDialogStart() { jQuery("#media-upload-error").empty(); } // progress and success handlers for media multi uploads function fileQueued(fileObj) { // Get rid of unused form jQuery('.media-blank').remove(); // Collapse a single item if ( jQuery('.type-form #media-items>*').length == 1 && jQuery('#media-...
JavaScript
/* Cookie Plug-in This plug in automatically gets all the cookies for this site and adds them to the post_params. Cookies are loaded only on initialization. The refreshCookies function can be called to update the post_params. The cookies will override any other post params with the same name. */ var SWFUpload; ...
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
/* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is continued. ...
JavaScript
/* DocumentReady Plug-in This plugin loads SWFUpload as soon as the document is ready. You should not load SWFUpload inside window.onload using this plugin. You can also chain other functions by calling SWFUpload.DocumentReady(your function). Warning: Embedded Ads or other scripts that overwrite window.onload ...
JavaScript
/** * Copyright (c) 2006, David Spurr (http://www.defusion.org.uk/) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright not...
JavaScript
// new edit toolbar used with permission // by Alex King // http://www.alexking.org/ var edButtons = new Array(); var edLinks = new Array(); var edOpenTags = new Array(); function edButton(id, display, tagStart, tagEnd, access, open) { this.id = id; // used to name the toolbar button this.display = display; // ...
JavaScript
var autosaveLast = ''; var autosavePeriodical; var autosaveOldMessage = ''; var autosaveDelayPreview = false; var autosaveFirst = true; jQuery(function($) { autosaveLast = $('#post #title').val()+$('#post #content').val(); autosavePeriodical = $.schedule({time: autosaveL10n.autosaveInterval * 1000, func: function() ...
JavaScript
var wpAjax = jQuery.extend( { unserialize: function( s ) { var r = {}; if ( !s ) { return r; } var q = s.split('?'); if ( q[1] ) { s = q[1]; } var pp = s.split('&'); for ( var i in pp ) { if ( jQuery.isFunction(pp.hasOwnProperty) && !pp.hasOwnProperty(i) ) { continue; } var p = pp[i].split('='); r[p[0...
JavaScript
// script.aculo.us unittest.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // (c) 2005-2007 Jon Tirsen (http://www.tirsen.com) // (c) 2005-2007 Michael Schuerig (http://www.schuerig.de/michael/) // // script.aculo.us i...
JavaScript
// script.aculo.us slider.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007 // Copyright (c) 2005-2007 Marty Haught, Thomas Fuchs // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ if (!Control) var Control = { }; ...
JavaScript
// script.aculo.us scriptaculous.js v1.7.1_beta3, Fri May 25 17:19:41 +0200 2007 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Soft...
JavaScript
// script.aculo.us sound.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Based on code created by Jules Gravinese (http://www.webveteran.com/) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // ...
JavaScript
// script.aculo.us scriptaculous.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software")...
JavaScript
// script.aculo.us builder.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ va...
JavaScript
(function($){$.scheduler=function(){this.bucket={};return;};$.scheduler.prototype={schedule:function(){var ctx={"id":null,"time":1000,"repeat":false,"protect":false,"obj":null,"func":function(){},"args":[]};function _isfn(fn){return(!!fn&&typeof fn!="string"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn+"...
JavaScript
(function($){ $.fn.filter_visible = function(depth) { depth = depth || 3; var is_visible = function() { var p = $(this); for(i=0; i<depth-1; ++i) { if (!p.is(':visible')) return false; p = p.parent(); } return true; } return this.filter(is_visible); }; $.table_hotkeys = function(table, ke...
JavaScript
/****************************************************************************************************************************** * @ Original idea by by Binny V A, Original version: 2.00.A * @ http://www.openjs.com/scripts/events/keyboard_shortcuts/ * @ Original License : BSD * @ jQuery Plugin by Tzury Bar Yocha...
JavaScript
/* * jQuery Form Plugin * version: 2.02 (12/16/2007) * @requires jQuery v1.1 or later * * Examples 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 * * Revision: $Id$ */ (functio...
JavaScript
/* * jQuery Color Animations * Copyright 2007 John Resig * Released under the MIT and GPL licenses. */ (function(jQuery){ // We override the animation for all of these color styles jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outli...
JavaScript
/** * hoverIntent is similar to jQuery's built-in "hover" function except that * instead of firing the onMouseOver event immediately, hoverIntent checks * to see if the user's mouse has slowed down (beneath the sensitivity * threshold) before firing the onMouseOver event. * * hoverIntent r5 // 2007.03.27 // jQuery 1.1...
JavaScript
(function() { tinymce.create('tinymce.plugins.wpGallery', { init : function(ed, url) { var t = this; t.url = url; t._createButtons(); // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...'); ed.addCommand('WP_Gallery', function() { var el ...
JavaScript
/** * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. */ function writeFlash(p) { writeEmbed( 'D27CDB6E-AE6D-11cf-96B8-444553540000', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', 'application/x-shockwave...
JavaScript
tinyMCEPopup.requireLangPack(); var oldWidth, oldHeight, ed, url; if (url = tinyMCEPopup.getParam("media_external_list_url")) document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>'); function init() { var pl = "", f, val; v...
JavaScript
var tinymce = null, tinyMCEPopup, tinyMCE; tinyMCEPopup = { init: function() { var t = this, w, ti, li, q, i, it; li = ('' + document.location.search).replace(/^\?/, '').split('&'); q = {}; for (i=0; i<li.length; i++) { it = li[i].split('='); q[unescape(it[0])] = unescape(it[1]); } if (q.mce_rdom...
JavaScript
(function() { tinymce.create('tinymce.plugins.wpEditImage', { init : function(ed, url) { var t = this; t.url = url; t._createButtons(); // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...'); ed.addCommand('WP_EditImage', function() { var el = ed.sel...
JavaScript
tinyMCEPopup.requireLangPack(); function saveContent() { var html = document.getElementById("frmData").contentWindow.document.body.innerHTML; if (html == ''){ tinyMCEPopup.close(); return false; } tinyMCEPopup.execCommand('mcePasteWord', false, html); tinyMCEPopup.close(); } function onLoadInit() { tinyMC...
JavaScript
tinyMCEPopup.requireLangPack(); function saveContent() { if (document.forms[0].htmlSource.value == '') { tinyMCEPopup.close(); return false; } tinyMCEPopup.execCommand('mcePasteText', false, { html : document.forms[0].htmlSource.value, linebreaks : document.forms[0].linebreaks.checked }); tinyMCEPopup.c...
JavaScript
/** * WordPress plugin. */ (function() { var DOM = tinymce.DOM; // Load plugin specific language pack tinymce.PluginManager.requireLangPack('wordpress'); tinymce.create('tinymce.plugins.WordPress', { init : function(ed, url) { var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'); var m...
JavaScript
tinyMCE.addI18n({en:{ common:{ edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?", apply:"Apply", insert:"Insert", update:"Update", cancel:"Cancel", close:"Close", browse:"Browse", class_name:"Class", not_set:"-- Not set --", clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.", cl...
JavaScript
tinyMCEPopup.requireLangPack(); tinyMCEPopup.onInit.add(onLoadInit); function saveContent() { tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value); tinyMCEPopup.close(); } function onLoadInit() { tinyMCEPopup.resizeToInnerSize(); // Remove Gecko spellchecking if (tinymce.isGecko) docume...
JavaScript
tinyMCEPopup.requireLangPack(); var charmap = [ ['&nbsp;', '&#160;', true, 'no-break space'], ['&amp;', '&#38;', true, 'ampersand'], ['&quot;', '&#34;', true, 'quotation mark'], // finance ['&cent;', '&#162;', true, 'cent sign'], ['&euro;', '&#8364;', true, 'euro sign'], ['&pound;', '&#16...
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,IMG'); v = ed.dom.getAttrib(elm, 'name'); if (v) { this.action = 'update'; f.anchorName.value = v; } f.insert.va...
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>'); }, init : fun...
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 : functio...
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 = 'none'; ...
JavaScript
tinyMCEPopup.requireLangPack(); var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false; var colors = [ "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033", "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099", "#6600cc","#660...
JavaScript
addComment = { moveForm : function(commId, parentId, respondId, postId) { var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID'); if ( ! comm || ! respond || ! cancel || ! parent ) return; t.r...
JavaScript
/* * Thickbox 3.1 - One Box To Rule Them All. * By Cody Lindley (http://www.codylindley.com) * Copyright (c) 2007 cody lindley * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php */ var tb_pathToImage = "../wp-includes/js/thickbox/loadingAnimation.gif"; var tb_closeImage = "../...
JavaScript