code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * jquery.Jcrop.js v0.9.8 * jQuery Image Cropping Plugin * @author Kelly Hallman <khallman@gmail.com> * Copyright (c) 2008-2009 Kelly Hallman - released under MIT License {{{ * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * fil...
JavaScript
var wpLink; (function($){ var inputs = {}, rivers = {}, ed, River, Query; wpLink = { timeToTriggerRiver: 150, minRiverAJAXDuration: 200, riverBottomThreshold: 5, keySensitivity: 100, lastSearch: '', textarea: '', init : function() { inputs.dialog = $('#wp-link'); inputs.submit = $('#wp-link-sub...
JavaScript
(function(w) { var init = function() { var pr = document.getElementById('post-revisions'), inputs = pr ? pr.getElementsByTagName('input') : []; pr.onclick = function() { var i, checkCount = 0, side; for ( i = 0; i < inputs.length; i++ ) { checkCount += inputs[i].checked ? 1 : 0; side = inputs[i].ge...
JavaScript
/** * Pointer jQuery widget. */ (function($){ var identifier = 0, zindex = 9999; $.widget("wp.pointer", { options: { pointerClass: 'wp-pointer', pointerWidth: 320, content: function( respond, event, t ) { return $(this).text(); }, buttons: function( event, t ) { var close = ( wpPointerL...
JavaScript
(function( exports, $ ){ var api = wp.customize, debounce; debounce = function( fn, delay, context ) { var timeout; return function() { var args = arguments; context = context || this; clearTimeout( timeout ); timeout = setTimeout( function() { timeout = null; fn.apply( context, args ); ...
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 */ if ( typeof tb_pathToImage != 'string' ) { var tb_pathToImage = thickboxL10n.loadingAnimation; } if...
JavaScript
(function($) { var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList; wpList = { settings: { url: ajaxurl, type: 'POST', response: 'ajax-response', what: '', alt: 'alternate', altOffset: 0, addColor: null, delColor: null, dimAddColor: null, dimDelColor: null, c...
JavaScript
jQuery(function() { mtekk_admin_tabulator_init(); }); /** * Tabulator Bootup */ function mtekk_admin_tabulator_init(){ if(!jQuery("#hasadmintabs").length) return; /* init markup for tabs */ jQuery('#hasadmintabs').prepend('<ul class="nav-tab-wrapper"><\/ul>'); jQuery('#hasadmintabs > fieldset').each(f...
JavaScript
jQuery(document).ready(function () { jQuery('.akismet-status').each(function () { var thisId = jQuery(this).attr('commentid'); jQuery(this).prependTo('#comment-' + thisId + ' .column-comment div:first-child'); }); jQuery('.akismet-user-comment-count').each(function () { var thisId = jQuery(this).attr('commenti...
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( ../wp-admin/images/fade-butt.png ) repeat-x 0 0', '-m...
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' }); $('input#wpcf7-title:disabled').css({...
JavaScript
/*! * jQuery Form Plugin * version: 3.14 (30-JUL-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
(function($) { $(function() { try { if (typeof _wpcf7 == 'undefined' || _wpcf7 === null) _wpcf7 = {}; _wpcf7 = $.extend({ cached: 0 }, _wpcf7); $('div.wpcf7 > form').ajaxForm({ beforeSubmit: function(formData, jqForm, options) { jqForm.wpcf7ClearResponseOutput(); jqForm.find('img.ajax-l...
JavaScript
function catablog_swfupload_loaded() { } function catablog_swfupload_file_dialog_complete(numFilesSelected, numFilesQueued, totalFilesQueued) { try { if (numFilesSelected > 0) { var total_uploads = this.getStats().successful_uploads + this.getStats().files_queued; jQuery('#current_number').html(t...
JavaScript
jQuery(function($) { jQuery.fn.catablogLightbox = function(config) { // PlugIn Variables var size = this.size(); var settings = {'size': size}; if (config) jQuery.extend(settings, config); var timeout = null; var image_extensions = ['jpg', 'jpeg', 'gif', 'png']; var hold_click = false; var li...
JavaScript
function show_load() { jQuery('body').append("<div id='catablog_load_curtain' />"); jQuery('#catablog_load_curtain').append("<div id='catablog_load_display'>...</div>"); jQuery('#catablog_load_curtain').fadeTo(200, 0.8); } function hide_load() { setTimeout(function() { jQuery('#catablog_load_curtain').fadeOut(4...
JavaScript
//settings_bounce_handling jQuery(document).ready( function(){ jQuery('.submit_batch_bounce').click( function() { var a = jQuery(this); jQuery('.toggl3').fadeTo(0,0); jQuery( '.bounce_' + a.val()).fadeTo(0,1); }); });
JavaScript
// autoresponders jQuery(document).ready( function() { jQuery('#autoresponder_event').change( function() { var a = jQuery(this); jQuery('.autoresponder_settings').hide(); jQuery('#autoresponder_' + a.val() + '_settings').show(); } ); } );
JavaScript
//settings_bounce_handling_II jQuery(document).ready( function(){ jQuery('.submit_batch_bounce_II').click( function() { var a = jQuery(this); jQuery('.toggl3_II').fadeTo(0,0); jQuery( '.bounce_II_' + a.val()).fadeTo(0,1); }); });
JavaScript
// user var mp_user = { init : function() { // close postboxes that should be closed jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); // postboxes postboxes.add_postbox_toggles(MP_AdminPageL10n.screen); // custom fields jQuery('#the-list').wpList({ addAfter: fun...
JavaScript
// settings_RandC var mp_settings_RandC = { init : function() { jQuery('td.capacity > label > input').click( function() { var name = jQuery(this).attr('name'); var checked = jQuery(this).attr('checked'); var r_and_c = name.split(/\[|\]\[|]/g); var spanid = r_and_c[1] + '_' + r_and_c[2] ; ...
JavaScript
// users var mp_users = { theList : null, theExtraList : null, init : function() { mp_users.theList = jQuery('#the-user-list').wpList( { alt: '', dimAfter: mp_users.dimAfter, delBefore: mp_users.delBefore, delAfter: mp_users.delAfter, addColor: 'none' } ); mp_users.theExtraList = jQuery('#the-extra-u...
JavaScript
// tracking var mp_tracking = { max : 30, infowindow : false, init : function() { // close postboxes that should be closed jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); // postboxes postboxes.add_postbox_toggles(MP_AdminPageL10n.screen); // ip info mp_trackin...
JavaScript
// write var mp_write = { submit : { stamp : null, button : null }, init : function() { // close postboxes that should be closed jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); // postboxes postboxes.add_postbox_toggles(MP_AdminPageL10n.screen); //uploader ...
JavaScript
// mail jQuery(document).ready(function(){ jQuery('#example').tabs(); });
JavaScript
// settings_sendmail jQuery(document).ready( function(){ jQuery('.connection_sendmail').click( function() { var a = jQuery(this); if (a.val() == 'custom') jQuery('#sendmail-custom-cmd').show(); else jQuery('#sendmail-custom-cmd').hide(); }); });
JavaScript
// fields jQuery(document).ready( function() { jQuery('.field_type_settings').tabs(); jQuery('.field_type').click( function() { var a = jQuery(this); jQuery('.field_type_settings').hide(); jQuery('#field_type_' + a.val() + '_settings').show(); } ); jQuery('.controls').change( function(...
JavaScript
var thickDims, tbWidth, tbHeight; jQuery(document).ready(function($) { thickDims = function() { var tbWindow = $('#TB_window'), H = $(window).height(), W = $(window).width(), w, h; w = (tbWidth && tbWidth < W - 90) ? tbWidth : W - 90; h = (tbHeight && tbHeight < H - 60) ? tbHeight : H - 60; if ( ...
JavaScript
// settings_smtp jQuery(document).ready( function(){ jQuery('#smtp-auth').change( function() { jQuery('#POP3').toggle(); }); });
JavaScript
// templates function validateXML(xml) { if (window.ActiveXObject) // code for IE { var xmlDoc = new ActiveXObject('Microsoft.XMLDOM'); xmlDoc.async = 'false'; xmlDoc.loadXML(xml); if(xmlDoc.parseError.errorCode == 0) return true; alert('Error Code: ' + xmlDoc.parseError.errorCode + "\...
JavaScript
// mails var mp_mails = { theList : null, theExtraList : null, init : function() { mp_mails.theList = jQuery('#the-mail-list').wpList( { alt: '', dimAfter: mp_mails.dimAfter, delBefore: mp_mails.delBefore, delAfter: mp_mails.delAfter, addColor: 'none' } ); mp_mails.theExtraList = jQuery('#the-extra-m...
JavaScript
//user_mailinglists jQuery(document).ready( function() { var noSyncChecks = false, syncChecks; // mailinglist tabs jQuery('#mailinglist-tabs a').click(function(){ var t = jQuery(this).attr('href'); jQuery(this).parent().addClass('tabs').siblings('li').removeClass('tabs'); jQuery('.tabs-panel').hide(...
JavaScript
// write_autoresponders jQuery(document).ready( function() { jQuery('#' + adminautorespondersL10n.table_body_id).wpList({ response: adminautorespondersL10n.ajax_response, addAfter: function( xml, s ) { jQuery('table#' + adminautorespondersL10n.table_list_id).show(); }, addBefore: function( s ) { ...
JavaScript
//settings_batch_send jQuery(document).ready( function(){ jQuery('.submit_batch').click( function() { var a = jQuery(this); jQuery('.toggl2').fadeTo(0,0); jQuery( '.' + a.val()).fadeTo(0,1); }); });
JavaScript
// settings var mp_settings = { init : function() { jQuery('#example').tabs(); //general // test jQuery('#theme').change( function() { var a = jQuery(this); jQuery('.template').hide(); jQuery( '#' + a.val()).show(); }); // subscriptions jQuery('.newsletter').change(functi...
JavaScript
// write_posts jQuery(document).ready( function() { jQuery('#mppostchecklist').sortable({ axis: 'y', containment: '#mppostchecklist', cursor: 'crosshair', handle: '.mppost-handle', opacity: 0.8, update: function(event, ui) { var data = { 'action' : 'order-mppost', id: jQuery("#mail_id").v...
JavaScript
// forms var mp_forms = { control : function() { var err = jQuery('div#div_form_toemail').hasClass('form-invalid'); if (!mp_forms.is_email(jQuery('#form_toemail').val())) { jQuery('div#div_form_toemail').addClass('form-invalid'); jQuery("#form_settings").tabs( 'select' , 4 ); } else jQue...
JavaScript
//settings_batch_send jQuery(document).ready( function(){ jQuery('.submit_batch_delete_old_mails').click( function() { var a = jQuery(this); jQuery('.toggl4').fadeTo(0,0); jQuery( '.delete_old_mails_' + a.val()).fadeTo(0,1); }); });
JavaScript
var autosave = { bool : {}, oldmessage : '', periodical : null, tinyMCE_triggerSave : function() { if ( (typeof tinyMCE != "undefined") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden() ) { if ( 'mce_fullscreen' == tinyMCE.activeEditor.id ) tinyMCE.get('content').setContent(ti...
JavaScript
var wpAjax = jQuery.extend( { unserialize: function( s ) { var r = {}, q, pp, i, p; if ( !s ) { return r; } q = s.split('?'); if ( q[1] ) { s = q[1]; } pp = s.split('&'); for ( i in pp ) { if ( jQuery.isFunction(pp.hasOwnProperty) && !pp.hasOwnProperty(i) ) { continue; } p = pp[i].split('='); ...
JavaScript
var mp_refresh = { every : 60, reg : new RegExp("(%i%)", "g"), message : '', init : function() { mp_refresh.every = mp_refresh.get_time(); var m1 = "<div style='background-color: rgb(255, 251, 204);' id='message' class='updated fade'><p>%i%</p></div>"; mp_refresh.message = m1.replace(mp_refr...
JavaScript
var thickDims, tbWidth, tbHeight; jQuery(document).ready(function($) { thickDims = function() { var tbWindow = $('#TB_window'), H = $(window).height(), W = $(window).width(), w, h; w = (tbWidth && tbWidth < W - 90) ? tbWidth : W - 90; h = (tbHeight && tbHeight < H - 60) ? tbHeight : H - 60; if ( ...
JavaScript
function mp_gmap3(settings) { this.settings = settings; this.map = null; this.prefix = this.settings.prefix; this.div = document.getElementById(this.prefix + '_map'); this.center_lat = jQuery('#' + this.prefix + '_center_lat'); this.center_lng = jQuery('#' + this.prefix + '_center_lng'); this.cente...
JavaScript
/* Demonstration of embedding CodeMirror in a bigger application. The * interface defined here is a mess of prompts and confirms, and * should probably not be used in a real project. */ function MirrorFrame(place, options) { this.home = document.createElement("DIV"); if (place.appendChild) place.appendChild...
JavaScript
/* Functionality for finding, storing, and restoring selections * * This does not provide a generic API, just the minimal functionality * required by the CodeMirror system. */ // Namespace object. var select = {}; (function() { select.ie_selection = document.selection && document.selection.createRangeCollection...
JavaScript
/* A few useful utility functions. */ // Capture a method on an object. function method(obj, name) { return function() {obj[name].apply(obj, arguments);}; } // The value used to signal the end of a sequence in iterators. var StopIteration = {toString: function() {return "StopIteration"}}; // Apply a function to ea...
JavaScript
/* This file defines an XML parser, with a few kludges to make it * useable for HTML. autoSelfClosers defines a set of tag names that * are expected to not have a closing tag, and doNotIndent specifies * the tags inside of which no indentation should happen (see Config * object). These can be disabled by passin...
JavaScript
// A framework for simple tokenizers. Takes care of newlines and // white-space, and of getting the text from the source stream into // the token object. A state is a function of two arguments -- a // string stream and a setState function. The second can be used to // change the tokenizer's state, and can be ignored fo...
JavaScript
/* This file defines an XML parser, with a few kludges to make it * useable for HTML. autoSelfClosers defines a set of tag names that * are expected to not have a closing tag, and doNotIndent specifies * the tags inside of which no indentation should happen (see Config * object). These can be disabled by passing th...
JavaScript
/* CodeMirror main module (http://codemirror.net/) * * Implements the CodeMirror constructor and prototype, which take care * of initializing the editor frame, and providing the outside interface. */ // The CodeMirrorConfig object is used to specify a default // configuration. If you specify such an object before ...
JavaScript
// Minimal framing needed to use CodeMirror-style parsers to highlight // code. Load this along with tokenize.js, stringstream.js, and your // parser. Then call highlightText, passing a string as the first // argument, and as the second argument either a callback function // that will be called with an array of SPAN no...
JavaScript
/* The Editor object manages the content of the editable frame. It * catches events, colours nodes, and indents lines. This file also * holds some functions for transforming arbitrary DOM structures into * plain sequences of <span> and <br> elements */ var internetExplorer = document.selection && window.ActiveXObj...
JavaScript
/* String streams are the things fed to parsers (which can feed them * to a tokenizer if they want). They provide peek and next methods * for looking at the current character (next 'consumes' this * character, peek does not), and a get method for retrieving all the * text that was consumed since the last time get w...
JavaScript
/** * Storage and control for undo information within a CodeMirror * editor. 'Why on earth is such a complicated mess required for * that?', I hear you ask. The goal, in implementing this, was to make * the complexity of storing and reverting undo information depend * only on the size of the edited or restored con...
JavaScript
(function($) { var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList; wpList = { settings: { url: wpListL10n.url, type: 'POST', response: 'ajax-response', what: '', alt: 'alternate', altOffset: 0, addColor: null, delColor: null, dimAddColor: null, dimDel...
JavaScript
jQuery(document).ready( function() { var xml = jQuery('pre').html(); parent.mp_fileupload.loaded(uploadxmlL10n.$draft_id, uploadxmlL10n.file, xml, uploadxmlL10n.id); });
JavaScript
var mp_fileupload = { nbfiles : -1, /* changed : function(id, file) { return true; }, */ parsexml : function(xml){ xml = xml.replace(/\&gt;/g,'>'); xml = xml.replace(/\&lt;/g,'<'); xml = xml.replace(/><!--\[CDATA\[/g,'><![CDATA['); xml = xml.replace(/\]\]--></g,']]><'); if( window.ActiveXO...
JavaScript
// STYLING FILE INPUTS 1.0 | Shaun Inman <http://www.shauninman.com/> | 2007-09-07 if (!window.SI) { var SI = {}; }; SI.Files = { htmlClass : 'SI-FILES-STYLIZED', fileClass : 'file', wrapClass : 'cabinet', fini : false, able : false, stylize : function(elem) { if (!this.fini) { this.init(); };...
JavaScript
var mp_fileupload = { // swfupload file_dialog_start_handler : function() { return true; }, file_queued_handler : function(fileObj) { jQuery('#attachement-errors').html(''); jQuery('#attachement-items').append(mp_fileupload.html(fileObj, false, false)); }, upload_start_handler : function(fil...
JavaScript
jQuery(document).ready( function() { jQuery('input#mp_fileupload_file_' + uploadhtmlL10n.id).change(function(){ var file = jQuery('input#mp_fileupload_file_' + uploadhtmlL10n.id).val(); jQuery('#upload_form_' + uploadhtmlL10n.id).submit(function(){ jQuery('label#mp_fileupload_file').hide(); var filea...
JavaScript
function mp_field_type_geotag(settings) { this.settings = settings; this.map = null; this.prefix = 'mp_' + this.settings.form + '_' + this.settings.field; this.div = document.getElementById(this.prefix + '_map'); this.center_lat = jQuery('#' + this.prefix + '_center_lat'); this.center_lng = jQuery(...
JavaScript
//mp_meta_box_post_drafts jQuery(document).ready( function() { jQuery('#mpdraftchecklist').wpList( { alt: '', response: 'mpdraft-ajax-response', addBefore: function( s ) { if ( !jQuery('#newmpdraft').val() || jQuery('#mpdraft-'+jQuery('#newmpdraft').val()).length != 0 ) return false; s.data += '...
JavaScript
var mp_taxonomy = { options : false, init : function() { if (( typeof(document.forms[MP_AdminPageL10n.add_form_id]) != "undefined" ) && ( document.forms[MP_AdminPageL10n.add_form_id].parent )) mp_taxonomy.options = document.forms[MP_AdminPageL10n.add_form_id].parent.options; if ( mp_taxonomy.optio...
JavaScript
// Surrounds the selected text with text1 and text2. function surroundText(tag1, tag2, myarea) { if (document.selection) //IE { myarea.focus(); var sel = document.selection.createRange(); sel.text = tag1 + sel.text + tag2; } else //Other Browsers { var len = myarea.value.length; var start = m...
JavaScript
/* * jQuery corner plugin * * version 1.7 (1/26/2007) * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ /** * The corner() method provides a simple way of styling DOM elements. * * corner() takes a single st...
JavaScript
jQuery(document).ready(function() { jQuery.receiveMessage( function(e){ jQuery("#networkpub_postbox").height(e.data.split("=")[1]+'px'); }, 'http://www.linksalpha.com' ); jQuery("#site_links").live("change", function(event) { jQuery.postMessage( jQuery(this).val(), 'http://www.linksalpha.c...
JavaScript
/*! * jQuery Cookie Plugin * https://github.com/carhartl/jquery-cookie * * Copyright 2011, Klaus Hartl * Dual licensed under the MIT or GPL Version 2 licenses. * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 */ (function($) { $.cookie = function(key, value, ...
JavaScript
$(document).ready(function() { });
JavaScript
// Go direct for plain hostnames and any host in .manugarg.com domain except // for www and www.manugarg.com. // Go via proxy for all other hosts. function FindProxyForURL(url, host) { if (typeof(dnsResolveEx) == "function") return "dnsResolveEx defined"; if ((isPlainHostName(host) || dnsDomainIs(host,...
JavaScript
/* prepares StarDict installer To run the script, execute the command in Windows Console: cscript //nologo stardict-prepare-installer.js this script must run in the root StarDict directory You may need to tweak the options below. */ // options var InstallDirMustNotExist = false; var VSConfig = "release"; // release or...
JavaScript
/* Input Mask plugin for jquery http://github.com/RobinHerbots/jquery.inputmask Copyright (c) 2010 Robin Herbots Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) Version: 0.5.5 This plugin is based on the masked input plugin written by Josh Bush (digitalbush.com) */ (function($) { ...
JavaScript
$(document).ready(function(){ $('.dataTables_length').css("display", "none"); $(".save_txt").click(function(){ var ID=$(this).attr('id'); var description = $("#des_input_"+ID).val(); var newImg = $("#newImg_"+ID).val(); var img = $("#curImg_"+ID).attr('src').substring(baseurl.length) if (newImg) { img...
JavaScript
$(document).ready(function(){ $('.dataTables_length').css("display", "none"); $(".save_txt").click(function(){ var ID=$(this).attr('id'); var description = $("#des_input_"+ID).val(); var youtube_id = $("#ytb_input_"+ID).val(); if (description != "" || youtube_id != "" ) { $.ajax({ url: baseurl + "admin_hom...
JavaScript
$(document).ready(function(){ $('.dataTables_length').css("display", "none"); $(".save_txt").click(function(){ var ID=$(this).attr('id'); var description = $("#des_input_"+ID).val(); var newImg = $("#newImg_"+ID).val(); var img = $("#curImg_"+ID).attr('src').substring(baseurl.length) if (newImg) { img...
JavaScript
/** * jquery.Jcrop.js v0.9.12 * jQuery Image Cropping Plugin - released under MIT License * Author: Kelly Hallman <khallman@gmail.com> * http://github.com/tapmodo/Jcrop * Copyright (c) 2008-2013 Tapmodo Interactive LLC {{{ * * Permission is hereby granted, free of charge, to any person * obtaining a copy of th...
JavaScript
/* Input Mask plugin extentions http://github.com/RobinHerbots/jquery.inputmask Copyright (c) 2010 Robin Herbots Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) Optional extentions on the jquery.inputmask base */ (function($) { //extra definitions $.extend($.inputmask.defaul...
JavaScript
/* Scripts for the tables test page Author: Maggie Wachs, www.filamentgroup.com Date: November 2011 Dependencies: jQuery, jQuery UI widget factory */ (function( $ ) { $.widget( "filament.table", { // need to come up with a better namespace var... options: { idprefix: null, // spe...
JavaScript
/** * http://github.com/Valums-File-Uploader/file-uploader * * Multiple file upload component with progress-bar, drag-and-drop, support for all modern browsers. * * Original version: 1.0 © 2010 Andrew Valums ( andrew(at)valums.com ) * Current Maintainer (2.0+): © 2012, Ray Nicholus ( fineuploader(at)garstasio.com...
JavaScript
$(document).ready(function(){ var type = $("#admin_service_item").attr('type'); var title = $(".title").text(); $(".save_txt").click(function(){ var ID=$(this).attr('id'); var title = $("#title_input_"+ID).val(); var description = $("#des_input_"+ID).val(); var newImg = $("#newImg_"+ID).val(); ...
JavaScript
/* -------------------------------------------------- Pertho Admin Panel js configuration file v1.3 ----------------------------------------------------- :: Global :: Charts :: Forms :: Misc :: Style Switcher */ // ----- Global ----- // //* common functions prth_common = { init...
JavaScript
$(document).ready(function(){ var type = $("#admin_ourwork_item").attr('type'); var title = $(".title").text(); $(".save_txt").click(function(){ var ID=$(this).attr('id'); var title = $("#title_input_"+ID).val(); var description = $("#des_input_"+ID).val(); if (type == 'client' || type == 'portfolio' ...
JavaScript
$(document).ready(function(){ $(".edit_txt").click(function(){ var ID=$(this).attr('id'); $("#"+ID+" .edit_txt").toggle(); $("#"+ID+" .save_txt").toggle(); $("#"+ID+" .cancel_txt").toggle(); $("#"+ID+" .value").toggle(); $("#"+ID+" .input").toggle(); /*$("#des_"+ID).toggle(); $("#des_input_"+I...
JavaScript
/** * jQuery Validation Plugin 1.9.0 * * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ * http://docs.jquery.com/Plugins/Validation * * Copyright (c) 2006 - 2011 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * ...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: JA (Japanese) */ jQuery.extend(jQuery.validator.messages, { required: "このフィールドは必須です。", remote: "このフィールドを修正してください。", email: "有効なEメールアドレスを入力してください。", url: "有効なURLを入力してください。", date: "有効な日付を入力してください。", dateISO: "有効な日付(ISO)...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: SR */ jQuery.extend(jQuery.validator.messages, { required: "Поље је обавезно.", remote: "Средите ово поље.", email: "Унесите исправну и-мејл адресу", url: "Унесите исправан URL.", date: "Унесите исправан датум....
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: RU */ jQuery.extend(jQuery.validator.messages, { required: "Это поле необходимо заполнить.", remote: "Пожалуйста, введите правильное значение.", email: "Пожалуйста, введите корректный адрес электронной почты."...
JavaScript
/* * Translated default messages for the jQuery validation plugin in lithuanian. * Locale: LT */ jQuery.extend(jQuery.validator.messages, { required: "Šis laukas yra privalomas.", remote: "Prašau pataisyti šį lauką.", email: "Prašau įvesti teisingą elektroninio pašto adresą.", url...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: NL */ jQuery.extend(jQuery.validator.messages, { required: "Dit is een verplicht veld.", remote: "Controleer dit veld.", email: "Vul hier een geldig e-mailadres in.", url: "Vul hier een geldige URL in...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: SI (Slovenian) */ jQuery.extend(jQuery.validator.messages, { required: "To polje je obvezno.", remote: "Vpis v tem polju ni v pravi obliki.", email: "Prosimo, vnesite pravi email naslov.", url: "Prosimo, vnesite pravi URL.", d...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: EL */ jQuery.extend(jQuery.validator.messages, { required: "Αυτό το πεδίο είναι υποχρεωτικό.", remote: "Παρακαλώ διορθώστε αυτό το πεδίο.", email: "Παρακαλώ εισάγετε μια έγκυρη διεύθυνση email.", url: "Παρακαλώ εισάγετε ένα έγκυ...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: GE */ jQuery.extend(jQuery.validator.messages, { required: "ამ ველის შევსება აუცილებელია.", remote: "გთხოვთ მიუთითოთ სწორი მნიშვნელობა.", email: "გთხოვთ მიუთითოთ ელ-ფოსტის კორექტული მისამართი.", url: ...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: ES */ jQuery.extend(jQuery.validator.messages, { required: "Este campo es obligatorio.", remote: "Por favor, rellena este campo.", email: "Por favor, escribe una dirección de correo válida", url: "Por favor, escribe una URL ...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: CA */ jQuery.extend(jQuery.validator.messages, { required: "Aquest camp és obligatori.", remote: "Si us plau, omple aquest camp.", email: "Si us plau, escriu una adreça de correu-e vàlida", url: "Si us plau, escriu una URL v...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: TR */ jQuery.extend(jQuery.validator.messages, { required: "Bu alanın doldurulması zorunludur.", remote: "Lütfen bu alanı düzeltin.", email: "Lütfen geçerli bir e-posta adresi giriniz.", url: "Lütfen geçerli bir web adresi (URL)...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: CN */ jQuery.extend(jQuery.validator.messages, { required: "必选字段", remote: "请修正该字段", email: "请输入正确格式的电子邮件", url: "请输入合法的网址", date: "请输入合法的日期", dateISO: "请输入合法的日期 (ISO).", number: "请输入合法的数字", digits: "只能输入整数...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: FA */ jQuery.extend(jQuery.validator.messages, { required: "تکمیل این فیلد اجباری است.", remote: "لطفا این فیلد را تصحیح کنید.", email: ".لطفا یک ایمیل صحیح وارد کنید", url: "لطفا آدرس صحیح وارد کنید.", ...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: NO (Norwegian) */ jQuery.extend(jQuery.validator.messages, { required: "Dette feltet er obligatorisk.", maxlength: jQuery.validator.format("Maksimalt {0} tegn."), minlength: jQuery.validator.format("Minimum {0} t...
JavaScript
/* * Localized default methods for the jQuery validation plugin. * Locale: NL */ jQuery.extend(jQuery.validator.methods, { date: function(value, element) { return this.optional(element) || /^\d\d?[\.\/-]\d\d?[\.\/-]\d\d\d?\d?$/.test(value); } });
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: DE */ jQuery.extend(jQuery.validator.messages, { required: "Dieses Feld ist ein Pflichtfeld.", maxlength: jQuery.validator.format("Geben Sie bitte maximal {0} Zeichen ein."), minlength: jQuery.validator.format("Geben Sie bitte min...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: FI */ jQuery.extend(jQuery.validator.messages, { required: "T&auml;m&auml; kentt&auml; on pakollinen.", maxlength: jQuery.validator.format("Voit sy&ouml;tt&auml;&auml; enint&auml;&auml;n {0} merkki&auml;."), minlength: jQuery.vali...
JavaScript