Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,55 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Update date picker element
|
||||
* Used for static & dynamic added elements (when clone)
|
||||
*/
|
||||
function updateAutocomplete( e )
|
||||
{
|
||||
var $this = $( this ),
|
||||
$search = $this.siblings( '.mashsb-rwmb-autocomplete-search'),
|
||||
$result = $this.siblings( '.mashsb-rwmb-autocomplete-results' ),
|
||||
name = $this.attr( 'name' );
|
||||
|
||||
// If the function is called on cloning, then change the field name and clear all results
|
||||
// @see clone.js
|
||||
if ( e.hasOwnProperty( 'type' ) && 'clone' == e.type )
|
||||
{
|
||||
// Clear all results
|
||||
$result.html( '' );
|
||||
}
|
||||
|
||||
$search.removeClass( 'ui-autocomplete-input' )
|
||||
.autocomplete( {
|
||||
minLength: 0,
|
||||
source : $this.data( 'options' ),
|
||||
select : function ( event, ui )
|
||||
{
|
||||
$result.append(
|
||||
'<div class="mashsb-rwmb-autocomplete-result">' +
|
||||
'<div class="label">' + ( typeof ui.item.excerpt !== 'undefined' ? ui.item.excerpt : ui.item.label ) + '</div>' +
|
||||
'<div class="actions">' + MASHSB_RWMB_Autocomplete.delete + '</div>' +
|
||||
'<input type="hidden" class="mashsb-rwmb-autocomplete-value" name="' + name + '" value="' + ui.item.value + '">' +
|
||||
'</div>'
|
||||
);
|
||||
|
||||
// Reinitialize value
|
||||
$search.val( '' );
|
||||
|
||||
return false;
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
$( '.mashsb-rwmb-autocomplete-wrapper input[type="hidden"]' ).each( updateAutocomplete );
|
||||
$( '.mashsb-rwmb-input' ).on( 'clone', ':input.mashsb-rwmb-autocomplete', updateAutocomplete );
|
||||
|
||||
// Handle remove action
|
||||
$( document ).on( 'click', '.mashsb-rwmb-autocomplete-result .actions', function ()
|
||||
{
|
||||
// remove result
|
||||
$( this ).parent().remove();
|
||||
} );
|
||||
} );
|
||||
@@ -0,0 +1,19 @@
|
||||
jQuery( function( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
$( document ).ajaxSend( function( e, xhr, s )
|
||||
{
|
||||
if ( typeof s.data !== 'undefined' && -1 !== s.data.indexOf( 'action=autosave' ) )
|
||||
{
|
||||
$( '.mashsb-rwmb-meta-box').each( function()
|
||||
{
|
||||
var $meta_box = $( this );
|
||||
if ( $meta_box.data( 'autosave' ) === true )
|
||||
{
|
||||
s.data += '&' + $meta_box.find( ':input' ).serialize();
|
||||
}
|
||||
} );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
@@ -0,0 +1,211 @@
|
||||
/* global jQuery, rwmb_cloneable_editors */
|
||||
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
// Object holds all methods related to fields' index when clone
|
||||
var cloneIndex = {
|
||||
/**
|
||||
* Set index for fields in a .mashsb-rwmb-clone
|
||||
* @param $clone .mashsb-rwmb-clone element
|
||||
* @param index Index value
|
||||
*/
|
||||
set: function ( $clone, index )
|
||||
{
|
||||
$clone.find( ':input[class|="rwmb"]' ).each( function ()
|
||||
{
|
||||
var $field = $( this );
|
||||
|
||||
// Name attribute
|
||||
var name = $field.attr( 'name' );
|
||||
if ( name )
|
||||
{
|
||||
$field.attr( 'name', cloneIndex.replace( index, name, '[', ']', false ) );
|
||||
}
|
||||
|
||||
// ID attribute
|
||||
var id = this.id;
|
||||
if ( id )
|
||||
{
|
||||
$field.attr( 'id', cloneIndex.replace( index, id, '_' ) );
|
||||
}
|
||||
} );
|
||||
|
||||
// Address button's value attribute
|
||||
var $address = $clone.find( '.mashsb-rwmb-map-goto-address-button' );
|
||||
if ( $address.length )
|
||||
{
|
||||
var value = $address.attr( 'value' );
|
||||
$address.attr( 'value', cloneIndex.replace( index, value, '_' ) );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Replace an attribute of a field with updated index
|
||||
* @param index New index value
|
||||
* @param value Attribute value
|
||||
* @param before String before returned value
|
||||
* @param after String after returned value
|
||||
* @param alternative Check if attribute does not contain any integer, will reset the attribute?
|
||||
* @return string
|
||||
*/
|
||||
replace: function ( index, value, before, after, alternative )
|
||||
{
|
||||
before = before || '';
|
||||
after = after || '';
|
||||
alternative = alternative || true;
|
||||
|
||||
var regex = new RegExp( cloneIndex.escapeRegex( before ) + '(\\d+)' + cloneIndex.escapeRegex( after ) ),
|
||||
newValue = before + index + after;
|
||||
|
||||
return regex.test( value ) ? value.replace( regex, newValue ) : (alternative ? value + newValue : value );
|
||||
},
|
||||
|
||||
/**
|
||||
* Helper function to escape string in regular expression
|
||||
* @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
|
||||
* @param string
|
||||
* @return string
|
||||
*/
|
||||
escapeRegex: function ( string )
|
||||
{
|
||||
return string.replace( /[.*+?^${}()|[\]\\]/g, "\\$&" );
|
||||
},
|
||||
|
||||
/**
|
||||
* Helper function to create next index for clones
|
||||
* @param $container .mashsb-rwmb-input container
|
||||
* @return integer
|
||||
*/
|
||||
nextIndex: function ( $container )
|
||||
{
|
||||
var nextIndex = $container.data( 'next-index' );
|
||||
$container.data( 'next-index', nextIndex + 1 );
|
||||
return nextIndex;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Clone fields
|
||||
* @param $container A div container which has all fields
|
||||
* @return void
|
||||
*/
|
||||
function clone( $container )
|
||||
{
|
||||
var $last = $container.children( '.mashsb-rwmb-clone:last' ),
|
||||
$clone = $last.clone(),
|
||||
$input = $clone.find( ':input[class|="rwmb"]' ),
|
||||
nextIndex = cloneIndex.nextIndex( $container );
|
||||
|
||||
// Reset value for fields
|
||||
$input.each( function ()
|
||||
{
|
||||
var $field = $( this );
|
||||
if ( $field.is( ':radio' ) || $field.is( ':checkbox' ) )
|
||||
{
|
||||
// Reset 'checked' attribute
|
||||
$field.prop( 'checked', false );
|
||||
}
|
||||
else if ( $field.is( 'select' ) )
|
||||
{
|
||||
// Reset select to first
|
||||
$field.prop( 'selectedIndex', 0 )
|
||||
}
|
||||
else if ( 'hidden' !== $field.attr( 'type' ) )
|
||||
{
|
||||
// Reset value
|
||||
$field.val( '' );
|
||||
}
|
||||
} );
|
||||
|
||||
// Insert Clone
|
||||
$clone.insertAfter( $last );
|
||||
// Set fields index. Must run before trigger clone event.
|
||||
cloneIndex.set( $clone, nextIndex );
|
||||
|
||||
// Trigger custom clone event
|
||||
$input.trigger( 'clone', nextIndex );
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide remove buttons when there's only 1 of them
|
||||
*
|
||||
* @param $container .mashsb-rwmb-input container
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function toggleRemoveButtons( $container )
|
||||
{
|
||||
var $button = $container.find( '.remove-clone' );
|
||||
$button.toggle( $button.length > 1 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle add button
|
||||
* Used with [data-max-clone] attribute. When max clone is reached, the add button is hid and vice versa
|
||||
*
|
||||
* @param $container .mashsb-rwmb-input container
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function toggleAddButton( $container )
|
||||
{
|
||||
var $button = $container.find( '.add-clone' ),
|
||||
maxClone = parseInt( $container.data( 'max-clone' ) ),
|
||||
numClone = $container.find( '.mashsb-rwmb-clone' ).length;
|
||||
|
||||
$button.toggle( isNaN( maxClone ) || ( maxClone && numClone < maxClone ) );
|
||||
}
|
||||
|
||||
$( '#wpbody-content' )
|
||||
// Add clones
|
||||
.on( 'click', '.add-clone', function ( e )
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
var $container = $( this ).closest( '.mashsb-rwmb-input' );
|
||||
clone( $container );
|
||||
|
||||
toggleRemoveButtons( $container );
|
||||
toggleAddButton( $container );
|
||||
} )
|
||||
// Remove clones
|
||||
.on( 'click', '.remove-clone', function ( e )
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
var $this = $( this ),
|
||||
$container = $this.closest( '.mashsb-rwmb-input' );
|
||||
|
||||
// Remove clone only if there are 2 or more of them
|
||||
if ( $container.find( '.mashsb-rwmb-clone' ).length < 2 )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$this.parent().trigger( 'remove' ).remove();
|
||||
toggleRemoveButtons( $container );
|
||||
toggleAddButton( $container )
|
||||
} );
|
||||
|
||||
$( '.mashsb-rwmb-input' ).each( function ()
|
||||
{
|
||||
var $container = $( this );
|
||||
toggleRemoveButtons( $container );
|
||||
toggleAddButton( $container );
|
||||
|
||||
$container
|
||||
.data( 'next-index', $container.children( '.mashsb-rwmb-clone' ).length )
|
||||
.sortable( {
|
||||
handle : '.mashsb-rwmb-clone-icon',
|
||||
placeholder: ' mashsb-rwmb-clone mashsb-rwmb-clone-placeholder',
|
||||
items : '.mashsb-rwmb-clone',
|
||||
start : function ( event, ui )
|
||||
{
|
||||
// Make the placeholder has the same height as dragged item
|
||||
ui.placeholder.height( ui.item.height() );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
@@ -0,0 +1,38 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Update color picker element
|
||||
* Used for static & dynamic added elements (when clone)
|
||||
*/
|
||||
function update()
|
||||
{
|
||||
var $this = $( this ),
|
||||
$container = $this.closest( '.mashsb-rwmb-color-clone' ),
|
||||
data = $.extend(
|
||||
{
|
||||
change: function()
|
||||
{
|
||||
$( this ).trigger( 'color:change' );
|
||||
},
|
||||
clear: function()
|
||||
{
|
||||
$( this ).trigger( 'color:clear' );
|
||||
}
|
||||
},
|
||||
$this.data( 'options' ) );
|
||||
|
||||
// Clone doesn't have input for color picker, we have to add the input and remove the color picker container
|
||||
if ( $container.length > 0 )
|
||||
{
|
||||
$this.appendTo( $container ).siblings( '.wp-picker-container' ).remove();
|
||||
}
|
||||
|
||||
// Show color picker
|
||||
$this.wpColorPicker( data );
|
||||
}
|
||||
|
||||
$( ':input.mashsb-rwmb-color' ).each( update );
|
||||
$( '.mashsb-rwmb-input' ).on( 'clone', 'input.mashsb-rwmb-color', update );
|
||||
} );
|
||||
@@ -0,0 +1,57 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Update date picker element
|
||||
* Used for static & dynamic added elements (when clone)
|
||||
*/
|
||||
function update()
|
||||
{
|
||||
var $this = $( this ),
|
||||
options = $this.data( 'options' ),
|
||||
$inline = $this.siblings( '.mashsb-rwmb-datetime-inline' ),
|
||||
$timestamp = $this.siblings( '.mashsb-rwmb-datetime-timestamp' ),
|
||||
current = $this.val();
|
||||
|
||||
$this.siblings( '.ui-datepicker-append' ).remove(); // Remove appended text
|
||||
if ( $timestamp.length )
|
||||
{
|
||||
var $picker = $inline.length ? $inline : $this;
|
||||
options.onSelect = function ()
|
||||
{
|
||||
$timestamp.val( getTimestamp( $picker.datepicker( 'getDate' ) ) );
|
||||
};
|
||||
}
|
||||
|
||||
if ( $inline.length )
|
||||
{
|
||||
options.altField = '#' + $this.attr( 'id' );
|
||||
$inline
|
||||
.removeClass( 'hasDatepicker' )
|
||||
.empty()
|
||||
.prop( 'id', '' )
|
||||
.datepicker( options )
|
||||
.datepicker( 'setDate', current );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this.removeClass( 'hasDatepicker' ).datepicker( options );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert date to Unix timestamp in milliseconds
|
||||
* @link http://stackoverflow.com/a/14006555/556258
|
||||
* @param date
|
||||
* @return number
|
||||
*/
|
||||
function getTimestamp( date )
|
||||
{
|
||||
var milliseconds = Date.UTC( date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds() );
|
||||
return Math.floor( milliseconds / 1000 );
|
||||
}
|
||||
|
||||
$( ':input.mashsb-rwmb-date' ).each( update );
|
||||
$( '.mashsb-rwmb-input' ).on( 'clone', ':input.mashsb-rwmb-date', update );
|
||||
} );
|
||||
@@ -0,0 +1,67 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Update datetime picker element
|
||||
* Used for static & dynamic added elements (when clone)
|
||||
*/
|
||||
function update()
|
||||
{
|
||||
var $this = $( this ),
|
||||
options = $this.data( 'options' ),
|
||||
$inline = $this.siblings( '.mashsb-rwmb-datetime-inline' ),
|
||||
$timestamp = $this.siblings( '.mashsb-rwmb-datetime-timestamp' ),
|
||||
current = $this.val();
|
||||
|
||||
$this.siblings( '.ui-datepicker-append' ).remove(); // Remove appended text
|
||||
if ( $timestamp.length )
|
||||
{
|
||||
var $picker = $inline.length ? $inline : $this;
|
||||
options.onSelect = function ()
|
||||
{
|
||||
$timestamp.val( getTimestamp( $picker.datetimepicker( 'getDate' ) ) );
|
||||
};
|
||||
}
|
||||
|
||||
if ( $inline.length )
|
||||
{
|
||||
options.altField = '#' + $this.attr( 'id' );
|
||||
$inline
|
||||
.removeClass( 'hasDatepicker' )
|
||||
.empty()
|
||||
.prop( 'id', '' )
|
||||
.datetimepicker( options )
|
||||
.datetimepicker( 'setDate', current );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this.removeClass( 'hasDatepicker' ).datetimepicker( options );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert date to Unix timestamp in milliseconds
|
||||
* @link http://stackoverflow.com/a/14006555/556258
|
||||
* @param date
|
||||
* @return number
|
||||
*/
|
||||
function getTimestamp( date )
|
||||
{
|
||||
var milliseconds = Date.UTC( date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds() );
|
||||
return Math.floor( milliseconds / 1000 );
|
||||
}
|
||||
|
||||
// Set language if available
|
||||
if ( $.timepicker.regional.hasOwnProperty( MASHSB_RWMB_Datetimepicker.locale ) )
|
||||
{
|
||||
$.timepicker.setDefaults( $.timepicker.regional[MASHSB_RWMB_Datetimepicker.locale] );
|
||||
}
|
||||
else if ( $.timepicker.regional.hasOwnProperty( MASHSB_RWMB_Datetimepicker.localeShort ) )
|
||||
{
|
||||
$.timepicker.setDefaults( $.timepicker.regional[MASHSB_RWMB_Datetimepicker.localeShort] );
|
||||
}
|
||||
|
||||
$( ':input.mashsb-rwmb-datetime' ).each( update );
|
||||
$( '.mashsb-rwmb-input' ).on( 'clone', ':input.mashsb-rwmb-datetime', update );
|
||||
} );
|
||||
@@ -0,0 +1,42 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
var frame;
|
||||
|
||||
$( 'body' ).on( 'click', '.mashsb-rwmb-file-input-select', function ( e )
|
||||
{
|
||||
e.preventDefault();
|
||||
var $el = $( this );
|
||||
|
||||
// Create a frame only if needed
|
||||
if ( !frame )
|
||||
{
|
||||
frame = wp.media( {
|
||||
className: 'media-frame mashsb-rwmb-file-frame',
|
||||
multiple : false,
|
||||
title : rwmbFileInput.frameTitle
|
||||
} );
|
||||
}
|
||||
|
||||
// Open media uploader
|
||||
frame.open();
|
||||
|
||||
// Remove all attached 'select' event
|
||||
frame.off( 'select' );
|
||||
|
||||
// Handle selection
|
||||
frame.on( 'select', function ()
|
||||
{
|
||||
var url = frame.state().get( 'selection' ).first().toJSON().url;
|
||||
$el.siblings( 'input' ).val( url ).siblings( 'a' ).removeClass( 'hidden' );
|
||||
} );
|
||||
} );
|
||||
|
||||
// Clear selected images
|
||||
$( 'body' ).on( 'click', '.mashsb-rwmb-file-input-remove', function ( e )
|
||||
{
|
||||
e.preventDefault();
|
||||
$( this ).addClass( 'hidden' ).siblings( 'input' ).val( '' );
|
||||
} );
|
||||
} );
|
||||
@@ -0,0 +1,199 @@
|
||||
window.rwmb = window.rwmb || {};
|
||||
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
var views = rwmb.views = rwmb.views || {},
|
||||
MediaField = views.MediaField,
|
||||
FileUploadField, UploadButton;
|
||||
|
||||
FileUploadField = views.FileUploadField = MediaField.extend( {
|
||||
createAddButton: function ()
|
||||
{
|
||||
this.addButton = new UploadButton( { collection: this.collection, props: this.props } );
|
||||
}
|
||||
} );
|
||||
|
||||
UploadButton = views.UploadButton = Backbone.View.extend( {
|
||||
className: 'mashsb-rwmb-upload-area',
|
||||
tagName : 'div',
|
||||
template: wp.template( 'mashsb-rwmb-upload-area' ),
|
||||
render : function ()
|
||||
{
|
||||
this.$el.html( this.template( {} ) );
|
||||
return this;
|
||||
},
|
||||
|
||||
initialize: function ( options )
|
||||
{
|
||||
this.props = options.props;
|
||||
this.el.id = _.uniqueId( 'mashsb-rwmb-upload-area-');
|
||||
this.render();
|
||||
|
||||
//Areas
|
||||
this.dropzone = this.el;
|
||||
this.browser = this.$('.mashsb-rwmb-browse-button')[0];
|
||||
|
||||
this.supports = {
|
||||
upload: wp.Uploader.browser.supported
|
||||
};
|
||||
|
||||
this.supported = this.supports.upload;
|
||||
|
||||
if ( this.supported ) {
|
||||
this.initUploader();
|
||||
}
|
||||
|
||||
this.listenTo( this.collection, 'add remove reset', function ()
|
||||
{
|
||||
var maxFiles = this.props.get( 'maxFiles' );
|
||||
|
||||
if ( maxFiles > 0 )
|
||||
{
|
||||
this.$el.toggle( this.collection.length < maxFiles );
|
||||
}
|
||||
} );
|
||||
},
|
||||
|
||||
//Initializes plupload
|
||||
//Uses code from wp.Uploader
|
||||
initUploader: function ()
|
||||
{
|
||||
var isIE = navigator.userAgent.indexOf('Trident/') != -1 || navigator.userAgent.indexOf('MSIE ') != -1,
|
||||
self = this,
|
||||
extensions = this.getExtensions().join( ',' );
|
||||
this.plupload = $.extend( true, {
|
||||
multipart_params: {},
|
||||
multipart: true,
|
||||
urlstream_upload: true,
|
||||
drop_element: this.dropzone,
|
||||
browse_button: this.browser,
|
||||
filters:{}}, wp.Uploader.defaults );
|
||||
|
||||
if( extensions )
|
||||
this.plupload.filters.mime_types = [ { title: i18nRwmbMedia.select, extensions: extensions } ];
|
||||
|
||||
// Make sure flash sends cookies (seems in IE it does without switching to urlstream mode)
|
||||
if ( ! isIE && 'flash' === plupload.predictRuntime( this.plupload ) &&
|
||||
( ! this.plupload.required_features || ! this.plupload.required_features.hasOwnProperty( 'send_binary_string' ) ) )
|
||||
{
|
||||
this.plupload.required_features = this.plupload.required_features || {};
|
||||
this.plupload.required_features.send_binary_string = true;
|
||||
}
|
||||
|
||||
// Initialize the plupload instance.
|
||||
this.uploader = new plupload.Uploader( this.plupload );
|
||||
this.uploader.init();
|
||||
|
||||
this.uploader.bind( 'FilesAdded', function( up, files )
|
||||
{
|
||||
_.each( files, function( file )
|
||||
{
|
||||
var attributes, image;
|
||||
|
||||
// Ignore failed uploads.
|
||||
if ( plupload.FAILED === file.status )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Generate attributes for a new `Attachment` model.
|
||||
attributes = _.extend({
|
||||
file: file,
|
||||
uploading: true,
|
||||
date: new Date(),
|
||||
filename: file.name,
|
||||
menuOrder: 0,
|
||||
uploadedTo: wp.media.model.settings.post.id,
|
||||
icon: i18nRwmbMedia.loadingUrl
|
||||
}, _.pick( file, 'loaded', 'size', 'percent' ) );
|
||||
|
||||
// Handle early mime type scanning for images.
|
||||
image = /(?:jpe?g|png|gif)$/i.exec( file.name );
|
||||
|
||||
// For images set the model's type and subtype attributes.
|
||||
if ( image )
|
||||
{
|
||||
attributes.type = 'image';
|
||||
|
||||
// `jpeg`, `png` and `gif` are valid subtypes.
|
||||
// `jpg` is not, so map it to `jpeg`.
|
||||
attributes.subtype = ( 'jpg' === image[0] ) ? 'jpeg' : image[0];
|
||||
}
|
||||
|
||||
// Create a model for the attachment, and add it to the Upload queue collection
|
||||
// so listeners to the upload queue can track and display upload progress.
|
||||
file.attachment = wp.media.model.Attachment.create( attributes );
|
||||
wp.Uploader.queue.add( file.attachment );
|
||||
self.collection.add( file.attachment );
|
||||
});
|
||||
|
||||
up.refresh();
|
||||
up.start();
|
||||
});
|
||||
|
||||
this.uploader.bind( 'UploadProgress', function( up, file ) {
|
||||
file.attachment.set( _.pick( file, 'loaded', 'percent' ) );
|
||||
});
|
||||
|
||||
this.uploader.bind( 'FileUploaded', function( up, file, response ) {
|
||||
var complete;
|
||||
|
||||
try {
|
||||
response = JSON.parse( response.response );
|
||||
} catch ( e ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! _.isObject( response ) || _.isUndefined( response.success ) || ! response.success )
|
||||
return false;
|
||||
|
||||
_.each(['file','loaded','size','percent'], function( key ) {
|
||||
file.attachment.unset( key );
|
||||
});
|
||||
|
||||
file.attachment.set( _.extend( response.data, { uploading: false }) );
|
||||
wp.media.model.Attachment.get( response.data.id, file.attachment );
|
||||
|
||||
complete = wp.Uploader.queue.all( function( attachment ) {
|
||||
return ! attachment.get('uploading');
|
||||
});
|
||||
|
||||
if ( complete )
|
||||
wp.Uploader.queue.reset();
|
||||
});
|
||||
|
||||
this.uploader.bind( 'Error', function ( up, error )
|
||||
{
|
||||
if( error.file.attachment )
|
||||
error.file.attachment.destroy();
|
||||
} );
|
||||
},
|
||||
|
||||
getExtensions: function ()
|
||||
{
|
||||
var mimeTypes = this.props.get( 'mimeType' ).split(','),
|
||||
exts = [];
|
||||
|
||||
_.each( mimeTypes, function( current, index )
|
||||
{
|
||||
if( i18nRwmbMedia.extensions[ current ] )
|
||||
exts = exts.concat( i18nRwmbMedia.extensions[ current ] );
|
||||
});
|
||||
return exts;
|
||||
}
|
||||
} );
|
||||
|
||||
/**
|
||||
* Initialize fields
|
||||
* @return void
|
||||
*/
|
||||
function init()
|
||||
{
|
||||
new FileUploadField( { input: this, el: $( this ).siblings( 'div.mashsb-rwmb-media-view' ) } );
|
||||
}
|
||||
$( ':input.mashsb-rwmb-file_upload' ).each( init );
|
||||
$( '.mashsb-rwmb-input' )
|
||||
.on( 'clone', ':input.mashsb-rwmb-file_upload', init )
|
||||
} );
|
||||
@@ -0,0 +1,157 @@
|
||||
jQuery( document ).ready( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
// Add more file
|
||||
$( '.mashsb-rwmb-add-file' ).each( function ()
|
||||
{
|
||||
var $this = $( this ),
|
||||
$uploads = $this.siblings( '.file-input' ),
|
||||
$first = $uploads.first(),
|
||||
uploadCount = $uploads.length,
|
||||
$fileList = $this.closest( '.mashsb-rwmb-input' ).find( '.mashsb-rwmb-uploaded' ),
|
||||
fileCount = $fileList.children( 'li' ).length,
|
||||
maxFileUploads = $fileList.data( 'max_file_uploads' );
|
||||
|
||||
// Hide "Add New File" and input fields when loaded
|
||||
if ( maxFileUploads > 0 )
|
||||
{
|
||||
if ( uploadCount + fileCount >= maxFileUploads )
|
||||
{
|
||||
$this.hide();
|
||||
}
|
||||
if ( fileCount >= maxFileUploads )
|
||||
{
|
||||
$uploads.hide();
|
||||
}
|
||||
}
|
||||
|
||||
$this.click( function ()
|
||||
{
|
||||
// Clone upload input only when needed
|
||||
if ( maxFileUploads <= 0 || uploadCount + fileCount < maxFileUploads )
|
||||
{
|
||||
$first.clone().insertBefore( $this );
|
||||
uploadCount++;
|
||||
|
||||
// If there're too many upload inputs, hide "Add New File"
|
||||
if ( maxFileUploads > 0 && uploadCount + fileCount >= maxFileUploads )
|
||||
{
|
||||
$this.hide();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
} );
|
||||
} );
|
||||
|
||||
// Delete file via Ajax
|
||||
$( '.mashsb-rwmb-uploaded' ).on( 'click', '.mashsb-rwmb-delete-file', function ()
|
||||
{
|
||||
var $this = $( this ),
|
||||
$parent = $this.parents( 'li' ),
|
||||
$container = $this.closest( '.mashsb-rwmb-uploaded' ),
|
||||
data = {
|
||||
action : 'rwmb_delete_file',
|
||||
_ajax_nonce : $container.data( 'delete_nonce' ),
|
||||
post_id : $( '#post_ID' ).val(),
|
||||
field_id : $container.data( 'field_id' ),
|
||||
attachment_id: $this.data( 'attachment_id' ),
|
||||
force_delete : $container.data( 'force_delete' )
|
||||
};
|
||||
|
||||
$.post( ajaxurl, data, function ( r )
|
||||
{
|
||||
if ( !r.success )
|
||||
{
|
||||
alert( r.data );
|
||||
return;
|
||||
}
|
||||
|
||||
$parent.addClass( 'removed' );
|
||||
|
||||
// If transition events not supported
|
||||
var div = document.createElement( 'div' );
|
||||
if (
|
||||
!( 'ontransitionend' in window ) &&
|
||||
( 'onwebkittransitionend' in window ) && !( 'onotransitionend' in div || navigator.appName === 'Opera' )
|
||||
)
|
||||
{
|
||||
$parent.remove();
|
||||
$container.trigger( 'update.rwmbFile' );
|
||||
}
|
||||
|
||||
$( '.mashsb-rwmb-uploaded' ).on( 'transitionend webkitTransitionEnd otransitionend', 'li.removed', function ()
|
||||
{
|
||||
$( this ).remove();
|
||||
$container.trigger( 'update.rwmbFile' );
|
||||
} );
|
||||
}, 'json' );
|
||||
|
||||
return false;
|
||||
} );
|
||||
|
||||
//Remove deleted file
|
||||
$( '.mashsb-rwmb-uploaded' ).on( 'transitionend webkitTransitionEnd otransitionend', 'li.removed', function ()
|
||||
{
|
||||
$( this ).remove();
|
||||
} );
|
||||
|
||||
$( 'body' ).on( 'update.rwmbFile', '.mashsb-rwmb-uploaded', function ()
|
||||
{
|
||||
var $fileList = $( this ),
|
||||
maxFileUploads = $fileList.data( 'max_file_uploads' ),
|
||||
$uploader = $fileList.siblings( '.new-files' ),
|
||||
numFiles = $fileList.children().length;
|
||||
|
||||
if ( numFiles > 0 )
|
||||
{
|
||||
$fileList.removeClass( 'hidden' );
|
||||
}
|
||||
else
|
||||
{
|
||||
$fileList.addClass( 'hidden' );
|
||||
}
|
||||
|
||||
// Return if maxFileUpload = 0
|
||||
if ( maxFileUploads === 0 )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Hide files button if reach max file uploads
|
||||
if ( numFiles >= maxFileUploads )
|
||||
{
|
||||
$uploader.addClass( 'hidden' );
|
||||
}
|
||||
else
|
||||
{
|
||||
$uploader.removeClass( 'hidden' );
|
||||
}
|
||||
|
||||
return false;
|
||||
} );
|
||||
|
||||
// Reorder images
|
||||
$( '.mashsb-rwmb-file' ).each( function ()
|
||||
{
|
||||
var $this = $( this ),
|
||||
data = {
|
||||
action : 'rwmb_reorder_files',
|
||||
_ajax_nonce: $this.data( 'reorder_nonce' ),
|
||||
post_id : $( '#post_ID' ).val(),
|
||||
field_id : $this.data( 'field_id' )
|
||||
};
|
||||
$this.sortable( {
|
||||
placeholder: 'ui-state-highlight',
|
||||
items : 'li',
|
||||
update : function ()
|
||||
{
|
||||
|
||||
data.order = $this.sortable( 'serialize' );
|
||||
|
||||
$.post( ajaxurl, data );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
@@ -0,0 +1,36 @@
|
||||
window.rwmb = window.rwmb || {};
|
||||
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
var views = rwmb.views = rwmb.views || {},
|
||||
MediaField = views.MediaField,
|
||||
MediaItem = views.MediaItem,
|
||||
MediaList = views.MediaList,
|
||||
ImageField, ImageList, ImageItem;
|
||||
|
||||
ImageField = views.ImageField = MediaField.extend( {
|
||||
createList: function ()
|
||||
{
|
||||
this.list = new MediaList( { collection: this.collection, props: this.props, itemView: ImageItem } );
|
||||
}
|
||||
} );
|
||||
|
||||
ImageItem = views.ImageItem = MediaItem.extend( {
|
||||
className: 'mashsb-rwmb-image-item',
|
||||
template : wp.template( 'mashsb-rwmb-image-item' )
|
||||
} );
|
||||
|
||||
/**
|
||||
* Initialize image fields
|
||||
* @return void
|
||||
*/
|
||||
function initImageField()
|
||||
{
|
||||
new ImageField( { input: this, el: $( this ).siblings( 'div.mashsb-rwmb-media-view' ) } );
|
||||
}
|
||||
$( ':input.mashsb-rwmb-image_advanced' ).each( initImageField );
|
||||
$( '.mashsb-rwmb-input' )
|
||||
.on( 'clone', ':input.mashsb-rwmb-image_advanced', initImageField )
|
||||
} );
|
||||
@@ -0,0 +1,26 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
$( 'body' ).on( 'change', '.mashsb-rwmb-image-select input', function ()
|
||||
{
|
||||
var $this = $( this ),
|
||||
type = $this.attr( 'type' ),
|
||||
selected = $this.is( ':checked' ),
|
||||
$parent = $this.parent(),
|
||||
$others = $parent.siblings();
|
||||
if ( selected )
|
||||
{
|
||||
$parent.addClass( 'mashsb-rwmb-active' );
|
||||
if ( type === 'radio' )
|
||||
{
|
||||
$others.removeClass( 'mashsb-rwmb-active' );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$parent.removeClass( 'mashsb-rwmb-active' );
|
||||
}
|
||||
} );
|
||||
$( '.mashsb-rwmb-image-select input' ).trigger( 'change' );
|
||||
} );
|
||||
@@ -0,0 +1,31 @@
|
||||
window.rwmb = window.rwmb || {};
|
||||
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
var views = rwmb.views = rwmb.views || {},
|
||||
ImageField = views.ImageField,
|
||||
ImageUploadField,
|
||||
UploadButton = views.UploadButton;
|
||||
|
||||
ImageUploadField = views.ImageUploadField = ImageField.extend( {
|
||||
createAddButton: function ()
|
||||
{
|
||||
this.addButton = new UploadButton( { collection: this.collection, props: this.props } );
|
||||
}
|
||||
} );
|
||||
|
||||
/**
|
||||
* Initialize fields
|
||||
* @return void
|
||||
*/
|
||||
function init()
|
||||
{
|
||||
new ImageUploadField( { input: this, el: $( this ).siblings( 'div.mashsb-rwmb-media-view' ) } );
|
||||
console.log('win');
|
||||
}
|
||||
$( ':input.mashsb-rwmb-image_upload, :input.mashsb-rwmb-plupload_image' ).each( init );
|
||||
$( '.mashsb-rwmb-input' )
|
||||
.on( 'clone', ':input.mashsb-rwmb-image_upload, :input.mashsb-rwmb-plupload_image', init )
|
||||
} );
|
||||
@@ -0,0 +1,25 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
// Reorder images
|
||||
$( '.mashsb-rwmb-images' ).each( function ()
|
||||
{
|
||||
var $this = $( this ),
|
||||
data = {
|
||||
action : 'rwmb_reorder_images',
|
||||
_ajax_nonce: $this.data( 'reorder_nonce' ),
|
||||
post_id : $( '#post_ID' ).val(),
|
||||
field_id : $this.data( 'field_id' )
|
||||
};
|
||||
$this.sortable( {
|
||||
placeholder: 'ui-state-highlight',
|
||||
items : 'li',
|
||||
update : function ()
|
||||
{
|
||||
data.order = $this.sortable( 'serialize' );
|
||||
$.post( ajaxurl, data );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
@@ -0,0 +1,25 @@
|
||||
jQuery( function( $ )
|
||||
{
|
||||
function update()
|
||||
{
|
||||
var $this = $( this ),
|
||||
$children = $this.closest( 'li' ).children('ul');
|
||||
|
||||
if ( $this.is( ':checked' ) )
|
||||
{
|
||||
$children.removeClass( 'hidden' );
|
||||
}
|
||||
else
|
||||
{
|
||||
$children
|
||||
.addClass( 'hidden' )
|
||||
.find( 'input' )
|
||||
.removeAttr( 'checked' );
|
||||
}
|
||||
}
|
||||
|
||||
$( '.mashsb-rwmb-input' )
|
||||
.on( 'change', '.mashsb-rwmb-input-list.collapse :checkbox', update )
|
||||
.on( 'clone', '.mashsb-rwmb-input-list.collapse :checkbox', update );
|
||||
$( '.mashsb-rwmb-input-list.collapse :checkbox' ).each( update );
|
||||
} );
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
/*! jQuery Validation Plugin - v1.11.1 - 3/22/2013\n* https://github.com/jzaefferer/jquery-validation
|
||||
* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT */(function(t){t.extend(t.fn,{validate:function(e){if(!this.length)return e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."),void 0;var i=t.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(e.target).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(e.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(e){function s(){var s;return i.settings.submitHandler?(i.submitButton&&(s=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&s.remove(),!1):!0}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,s()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):s():(i.focusInvalid(),!1)})),i)},valid:function(){if(t(this[0]).is("form"))return this.validate().form();var e=!0,i=t(this[0].form).validate();return this.each(function(){e=e&&i.element(this)}),e},removeAttrs:function(e){var i={},s=this;return t.each(e.split(/\s/),function(t,e){i[e]=s.attr(e),s.removeAttr(e)}),i},rules:function(e,i){var s=this[0];if(e){var r=t.data(s.form,"validator").settings,n=r.rules,a=t.validator.staticRules(s);switch(e){case"add":t.extend(a,t.validator.normalizeRule(i)),delete a.messages,n[s.name]=a,i.messages&&(r.messages[s.name]=t.extend(r.messages[s.name],i.messages));break;case"remove":if(!i)return delete n[s.name],a;var u={};return t.each(i.split(/\s/),function(t,e){u[e]=a[e],delete a[e]}),u}}var o=t.validator.normalizeRules(t.extend({},t.validator.classRules(s),t.validator.attributeRules(s),t.validator.dataRules(s),t.validator.staticRules(s)),s);if(o.required){var l=o.required;delete o.required,o=t.extend({required:l},o)}return o}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){return!!t.trim(""+t(e).val())},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){(9!==e.which||""!==this.elementValue(t))&&(t.name in this.submitted||t===this.lastElement)&&this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(s):t(e).addClass(i).removeClass(s)},unhighlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(s):t(e).removeClass(i).addClass(s)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var i=t.data(this[0].form,"validator"),s="on"+e.type.replace(/^validate/,"");i.settings[s]&&i.settings[s].call(i,this[0],e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currenLine truncated
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Afrikaans initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Renier Pretorius. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['af'] = {
|
||||
closeText: 'Selekteer',
|
||||
prevText: 'Vorige',
|
||||
nextText: 'Volgende',
|
||||
currentText: 'Vandag',
|
||||
monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie',
|
||||
'Julie','Augustus','September','Oktober','November','Desember'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
|
||||
dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],
|
||||
dayNamesShort: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'],
|
||||
dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['af']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Algerian Arabic Translation for jQuery UI date picker plugin. (can be used for Tunisia)*/
|
||||
/* Mohamed Cherif BOUCHELAGHEM -- cherifbouchelaghem@yahoo.fr */
|
||||
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ar-DZ'] = {
|
||||
closeText: 'إغلاق',
|
||||
prevText: '<السابق',
|
||||
nextText: 'التالي>',
|
||||
currentText: 'اليوم',
|
||||
monthNames: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان',
|
||||
'جويلية', 'أوت', 'سبتمبر','أكتوبر', 'نوفمبر', 'ديسمبر'],
|
||||
monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
|
||||
dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
weekHeader: 'أسبوع',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 6,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ar-DZ']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Arabic Translation for jQuery UI date picker plugin. */
|
||||
/* Khaled Alhourani -- me@khaledalhourani.com */
|
||||
/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ar'] = {
|
||||
closeText: 'إغلاق',
|
||||
prevText: '<السابق',
|
||||
nextText: 'التالي>',
|
||||
currentText: 'اليوم',
|
||||
monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'مايو', 'حزيران',
|
||||
'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'],
|
||||
monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
|
||||
dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesMin: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
|
||||
weekHeader: 'أسبوع',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 6,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ar']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Azerbaijani (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Jamil Najafov (necefov33@gmail.com). */
|
||||
jQuery(function($) {
|
||||
$.datepicker.regional['az'] = {
|
||||
closeText: 'Bağla',
|
||||
prevText: '<Geri',
|
||||
nextText: 'İrəli>',
|
||||
currentText: 'Bugün',
|
||||
monthNames: ['Yanvar','Fevral','Mart','Aprel','May','İyun',
|
||||
'İyul','Avqust','Sentyabr','Oktyabr','Noyabr','Dekabr'],
|
||||
monthNamesShort: ['Yan','Fev','Mar','Apr','May','İyun',
|
||||
'İyul','Avq','Sen','Okt','Noy','Dek'],
|
||||
dayNames: ['Bazar','Bazar ertəsi','Çərşənbə axşamı','Çərşənbə','Cümə axşamı','Cümə','Şənbə'],
|
||||
dayNamesShort: ['B','Be','Ça','Ç','Ca','C','Ş'],
|
||||
dayNamesMin: ['B','B','Ç','С','Ç','C','Ş'],
|
||||
weekHeader: 'Hf',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['az']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Belarusian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Pavel Selitskas <p.selitskas@gmail.com> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['be'] = {
|
||||
closeText: 'Зачыніць',
|
||||
prevText: '←Папяр.',
|
||||
nextText: 'Наст.→',
|
||||
currentText: 'Сёньня',
|
||||
monthNames: ['Студзень','Люты','Сакавік','Красавік','Травень','Чэрвень',
|
||||
'Ліпень','Жнівень','Верасень','Кастрычнік','Лістапад','Сьнежань'],
|
||||
monthNamesShort: ['Сту','Лют','Сак','Кра','Тра','Чэр',
|
||||
'Ліп','Жні','Вер','Кас','Ліс','Сьн'],
|
||||
dayNames: ['нядзеля','панядзелак','аўторак','серада','чацьвер','пятніца','субота'],
|
||||
dayNamesShort: ['ндз','пнд','аўт','срд','чцв','птн','сбт'],
|
||||
dayNamesMin: ['Нд','Пн','Аў','Ср','Чц','Пт','Сб'],
|
||||
weekHeader: 'Тд',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['be']);
|
||||
});
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
/* Bulgarian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Stoyan Kyosev (http://svest.org). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['bg'] = {
|
||||
closeText: 'затвори',
|
||||
prevText: '<назад',
|
||||
nextText: 'напред>',
|
||||
nextBigText: '>>',
|
||||
currentText: 'днес',
|
||||
monthNames: ['Януари','Февруари','Март','Април','Май','Юни',
|
||||
'Юли','Август','Септември','Октомври','Ноември','Декември'],
|
||||
monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни',
|
||||
'Юли','Авг','Сеп','Окт','Нов','Дек'],
|
||||
dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'],
|
||||
dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'],
|
||||
dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['bg']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Bosnian i18n for the jQuery UI date picker plugin. */
|
||||
/* Written by Kenan Konjo. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['bs'] = {
|
||||
closeText: 'Zatvori',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Danas',
|
||||
monthNames: ['Januar','Februar','Mart','April','Maj','Juni',
|
||||
'Juli','August','Septembar','Oktobar','Novembar','Decembar'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Nedelja','Ponedeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['bs']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Inicialització en català per a l'extensió 'UI date picker' per jQuery. */
|
||||
/* Writers: (joan.leon@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ca'] = {
|
||||
closeText: 'Tanca',
|
||||
prevText: 'Anterior',
|
||||
nextText: 'Següent',
|
||||
currentText: 'Avui',
|
||||
monthNames: ['gener','febrer','març','abril','maig','juny',
|
||||
'juliol','agost','setembre','octubre','novembre','desembre'],
|
||||
monthNamesShort: ['gen','feb','març','abr','maig','juny',
|
||||
'jul','ag','set','oct','nov','des'],
|
||||
dayNames: ['diumenge','dilluns','dimarts','dimecres','dijous','divendres','dissabte'],
|
||||
dayNamesShort: ['dg','dl','dt','dc','dj','dv','ds'],
|
||||
dayNamesMin: ['dg','dl','dt','dc','dj','dv','ds'],
|
||||
weekHeader: 'Set',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ca']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Czech initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Tomas Muller (tomas@tomas-muller.net). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['cs'] = {
|
||||
closeText: 'Zavřít',
|
||||
prevText: '<Dříve',
|
||||
nextText: 'Později>',
|
||||
currentText: 'Nyní',
|
||||
monthNames: ['leden','únor','březen','duben','květen','červen',
|
||||
'červenec','srpen','září','říjen','listopad','prosinec'],
|
||||
monthNamesShort: ['led','úno','bře','dub','kvě','čer',
|
||||
'čvc','srp','zář','říj','lis','pro'],
|
||||
dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'],
|
||||
dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
|
||||
dayNamesMin: ['ne','po','út','st','čt','pá','so'],
|
||||
weekHeader: 'Týd',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['cs']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Welsh/UK initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by William Griffiths. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['cy-GB'] = {
|
||||
closeText: 'Done',
|
||||
prevText: 'Prev',
|
||||
nextText: 'Next',
|
||||
currentText: 'Today',
|
||||
monthNames: ['Ionawr','Chwefror','Mawrth','Ebrill','Mai','Mehefin',
|
||||
'Gorffennaf','Awst','Medi','Hydref','Tachwedd','Rhagfyr'],
|
||||
monthNamesShort: ['Ion', 'Chw', 'Maw', 'Ebr', 'Mai', 'Meh',
|
||||
'Gor', 'Aws', 'Med', 'Hyd', 'Tac', 'Rha'],
|
||||
dayNames: ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher', 'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'],
|
||||
dayNamesShort: ['Sul', 'Llu', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'],
|
||||
dayNamesMin: ['Su','Ll','Ma','Me','Ia','Gw','Sa'],
|
||||
weekHeader: 'Wy',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['cy-GB']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Danish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Jan Christensen ( deletestuff@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['da'] = {
|
||||
closeText: 'Luk',
|
||||
prevText: '<Forrige',
|
||||
nextText: 'Næste>',
|
||||
currentText: 'Idag',
|
||||
monthNames: ['Januar','Februar','Marts','April','Maj','Juni',
|
||||
'Juli','August','September','Oktober','November','December'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],
|
||||
dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'],
|
||||
dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'],
|
||||
weekHeader: 'Uge',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['da']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* German initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Milian Wolff (mail@milianw.de). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['de'] = {
|
||||
closeText: 'Schließen',
|
||||
prevText: '<Zurück',
|
||||
nextText: 'Vor>',
|
||||
currentText: 'Heute',
|
||||
monthNames: ['Januar','Februar','März','April','Mai','Juni',
|
||||
'Juli','August','September','Oktober','November','Dezember'],
|
||||
monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dez'],
|
||||
dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
|
||||
dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
weekHeader: 'KW',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['de']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Greek (el) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Alex Cicovic (http://www.alexcicovic.com) */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['el'] = {
|
||||
closeText: 'Κλείσιμο',
|
||||
prevText: 'Προηγούμενος',
|
||||
nextText: 'Επόμενος',
|
||||
currentText: 'Τρέχων Μήνας',
|
||||
monthNames: ['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος',
|
||||
'Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'],
|
||||
monthNamesShort: ['Ιαν','Φεβ','Μαρ','Απρ','Μαι','Ιουν',
|
||||
'Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'],
|
||||
dayNames: ['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'],
|
||||
dayNamesShort: ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'],
|
||||
dayNamesMin: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'],
|
||||
weekHeader: 'Εβδ',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['el']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* English/Australia initialisation for the jQuery UI date picker plugin. */
|
||||
/* Based on the en-GB initialisation. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['en-AU'] = {
|
||||
closeText: 'Done',
|
||||
prevText: 'Prev',
|
||||
nextText: 'Next',
|
||||
currentText: 'Today',
|
||||
monthNames: ['January','February','March','April','May','June',
|
||||
'July','August','September','October','November','December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['en-AU']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* English/UK initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Stuart. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['en-GB'] = {
|
||||
closeText: 'Done',
|
||||
prevText: 'Prev',
|
||||
nextText: 'Next',
|
||||
currentText: 'Today',
|
||||
monthNames: ['January','February','March','April','May','June',
|
||||
'July','August','September','October','November','December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* English/New Zealand initialisation for the jQuery UI date picker plugin. */
|
||||
/* Based on the en-GB initialisation. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['en-NZ'] = {
|
||||
closeText: 'Done',
|
||||
prevText: 'Prev',
|
||||
nextText: 'Next',
|
||||
currentText: 'Today',
|
||||
monthNames: ['January','February','March','April','May','June',
|
||||
'July','August','September','October','November','December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['en-NZ']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Esperanto initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Olivier M. (olivierweb@ifrance.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['eo'] = {
|
||||
closeText: 'Fermi',
|
||||
prevText: '<Anta',
|
||||
nextText: 'Sekv>',
|
||||
currentText: 'Nuna',
|
||||
monthNames: ['Januaro','Februaro','Marto','Aprilo','Majo','Junio',
|
||||
'Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aŭg','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'],
|
||||
dayNamesShort: ['Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'],
|
||||
dayNamesMin: ['Di','Lu','Ma','Me','Ĵa','Ve','Sa'],
|
||||
weekHeader: 'Sb',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['eo']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Inicialización en español para la extensión 'UI date picker' para jQuery. */
|
||||
/* Traducido por Vester (xvester@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['es'] = {
|
||||
closeText: 'Cerrar',
|
||||
prevText: '<Ant',
|
||||
nextText: 'Sig>',
|
||||
currentText: 'Hoy',
|
||||
monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio',
|
||||
'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
|
||||
monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun',
|
||||
'Jul','Ago','Sep','Oct','Nov','Dic'],
|
||||
dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['es']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Estonian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Mart Sõmermaa (mrts.pydev at gmail com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['et'] = {
|
||||
closeText: 'Sulge',
|
||||
prevText: 'Eelnev',
|
||||
nextText: 'Järgnev',
|
||||
currentText: 'Täna',
|
||||
monthNames: ['Jaanuar','Veebruar','Märts','Aprill','Mai','Juuni',
|
||||
'Juuli','August','September','Oktoober','November','Detsember'],
|
||||
monthNamesShort: ['Jaan', 'Veebr', 'Märts', 'Apr', 'Mai', 'Juuni',
|
||||
'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'],
|
||||
dayNames: ['Pühapäev', 'Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev'],
|
||||
dayNamesShort: ['Pühap', 'Esmasp', 'Teisip', 'Kolmap', 'Neljap', 'Reede', 'Laup'],
|
||||
dayNamesMin: ['P','E','T','K','N','R','L'],
|
||||
weekHeader: 'näd',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['et']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Euskarako oinarria 'UI date picker' jquery-ko extentsioarentzat */
|
||||
/* Karrikas-ek itzulia (karrikas@karrikas.com) */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['eu'] = {
|
||||
closeText: 'Egina',
|
||||
prevText: '<Aur',
|
||||
nextText: 'Hur>',
|
||||
currentText: 'Gaur',
|
||||
monthNames: ['urtarrila','otsaila','martxoa','apirila','maiatza','ekaina',
|
||||
'uztaila','abuztua','iraila','urria','azaroa','abendua'],
|
||||
monthNamesShort: ['urt.','ots.','mar.','api.','mai.','eka.',
|
||||
'uzt.','abu.','ira.','urr.','aza.','abe.'],
|
||||
dayNames: ['igandea','astelehena','asteartea','asteazkena','osteguna','ostirala','larunbata'],
|
||||
dayNamesShort: ['ig.','al.','ar.','az.','og.','ol.','lr.'],
|
||||
dayNamesMin: ['ig','al','ar','az','og','ol','lr'],
|
||||
weekHeader: 'As',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['eu']);
|
||||
});
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
/* Persian (Farsi) Translation for the jQuery UI date picker plugin. */
|
||||
/* Javad Mowlanezhad -- jmowla@gmail.com */
|
||||
/* Jalali calendar should supported soon! (Its implemented but I have to test it) */
|
||||
jQuery(function($) {
|
||||
$.datepicker.regional['fa'] = {
|
||||
closeText: 'بستن',
|
||||
prevText: '<قبلی',
|
||||
nextText: 'بعدی>',
|
||||
currentText: 'امروز',
|
||||
monthNames: [
|
||||
'فروردين',
|
||||
'ارديبهشت',
|
||||
'خرداد',
|
||||
'تير',
|
||||
'مرداد',
|
||||
'شهريور',
|
||||
'مهر',
|
||||
'آبان',
|
||||
'آذر',
|
||||
'دی',
|
||||
'بهمن',
|
||||
'اسفند'
|
||||
],
|
||||
monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'],
|
||||
dayNames: [
|
||||
'يکشنبه',
|
||||
'دوشنبه',
|
||||
'سهشنبه',
|
||||
'چهارشنبه',
|
||||
'پنجشنبه',
|
||||
'جمعه',
|
||||
'شنبه'
|
||||
],
|
||||
dayNamesShort: [
|
||||
'ی',
|
||||
'د',
|
||||
'س',
|
||||
'چ',
|
||||
'پ',
|
||||
'ج',
|
||||
'ش'
|
||||
],
|
||||
dayNamesMin: [
|
||||
'ی',
|
||||
'د',
|
||||
'س',
|
||||
'چ',
|
||||
'پ',
|
||||
'ج',
|
||||
'ش'
|
||||
],
|
||||
weekHeader: 'هف',
|
||||
dateFormat: 'yy/mm/dd',
|
||||
firstDay: 6,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fa']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Finnish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Harri Kilpiö (harrikilpio@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fi'] = {
|
||||
closeText: 'Sulje',
|
||||
prevText: '«Edellinen',
|
||||
nextText: 'Seuraava»',
|
||||
currentText: 'Tänään',
|
||||
monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu',
|
||||
'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'],
|
||||
monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä',
|
||||
'Heinä','Elo','Syys','Loka','Marras','Joulu'],
|
||||
dayNamesShort: ['Su','Ma','Ti','Ke','To','Pe','La'],
|
||||
dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'],
|
||||
dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'],
|
||||
weekHeader: 'Vk',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fi']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Faroese initialisation for the jQuery UI date picker plugin */
|
||||
/* Written by Sverri Mohr Olsen, sverrimo@gmail.com */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fo'] = {
|
||||
closeText: 'Lat aftur',
|
||||
prevText: '<Fyrra',
|
||||
nextText: 'Næsta>',
|
||||
currentText: 'Í dag',
|
||||
monthNames: ['Januar','Februar','Mars','Apríl','Mei','Juni',
|
||||
'Juli','August','September','Oktober','November','Desember'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Des'],
|
||||
dayNames: ['Sunnudagur','Mánadagur','Týsdagur','Mikudagur','Hósdagur','Fríggjadagur','Leyardagur'],
|
||||
dayNamesShort: ['Sun','Mán','Týs','Mik','Hós','Frí','Ley'],
|
||||
dayNamesMin: ['Su','Má','Tý','Mi','Hó','Fr','Le'],
|
||||
weekHeader: 'Vk',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fo']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Canadian-French initialisation for the jQuery UI date picker plugin. */
|
||||
jQuery(function ($) {
|
||||
$.datepicker.regional['fr-CA'] = {
|
||||
closeText: 'Fermer',
|
||||
prevText: 'Précédent',
|
||||
nextText: 'Suivant',
|
||||
currentText: 'Aujourd\'hui',
|
||||
monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin',
|
||||
'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
|
||||
monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin',
|
||||
'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
|
||||
dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
|
||||
dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
|
||||
dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
|
||||
weekHeader: 'Sem.',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fr-CA']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Swiss-French initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written Martin Voelkle (martin.voelkle@e-tc.ch). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fr-CH'] = {
|
||||
closeText: 'Fermer',
|
||||
prevText: '<Préc',
|
||||
nextText: 'Suiv>',
|
||||
currentText: 'Courant',
|
||||
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
|
||||
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
|
||||
monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun',
|
||||
'Jul','Aoû','Sep','Oct','Nov','Déc'],
|
||||
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
|
||||
dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
|
||||
dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fr-CH']);
|
||||
});
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/* French initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Keith Wood (kbwood{at}iinet.com.au),
|
||||
Stéphane Nahmani (sholby@sholby.net),
|
||||
Stéphane Raimbault <stephane.raimbault@gmail.com> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fr'] = {
|
||||
closeText: 'Fermer',
|
||||
prevText: 'Précédent',
|
||||
nextText: 'Suivant',
|
||||
currentText: 'Aujourd\'hui',
|
||||
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
|
||||
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
|
||||
monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin',
|
||||
'Juil.','Août','Sept.','Oct.','Nov.','Déc.'],
|
||||
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
|
||||
dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'],
|
||||
dayNamesMin: ['D','L','M','M','J','V','S'],
|
||||
weekHeader: 'Sem.',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fr']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Galician localization for 'UI date picker' jQuery extension. */
|
||||
/* Translated by Jorge Barreiro <yortx.barry@gmail.com>. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['gl'] = {
|
||||
closeText: 'Pechar',
|
||||
prevText: '<Ant',
|
||||
nextText: 'Seg>',
|
||||
currentText: 'Hoxe',
|
||||
monthNames: ['Xaneiro','Febreiro','Marzo','Abril','Maio','Xuño',
|
||||
'Xullo','Agosto','Setembro','Outubro','Novembro','Decembro'],
|
||||
monthNamesShort: ['Xan','Feb','Mar','Abr','Mai','Xuñ',
|
||||
'Xul','Ago','Set','Out','Nov','Dec'],
|
||||
dayNames: ['Domingo','Luns','Martes','Mércores','Xoves','Venres','Sábado'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mér','Xov','Ven','Sáb'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Mé','Xo','Ve','Sá'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['gl']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Hebrew initialisation for the UI Datepicker extension. */
|
||||
/* Written by Amir Hardon (ahardon at gmail dot com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['he'] = {
|
||||
closeText: 'סגור',
|
||||
prevText: '<הקודם',
|
||||
nextText: 'הבא>',
|
||||
currentText: 'היום',
|
||||
monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני',
|
||||
'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'],
|
||||
monthNamesShort: ['ינו','פבר','מרץ','אפר','מאי','יוני',
|
||||
'יולי','אוג','ספט','אוק','נוב','דצמ'],
|
||||
dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'],
|
||||
dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['he']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Hindi initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Michael Dawart. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['hi'] = {
|
||||
closeText: 'बंद',
|
||||
prevText: 'पिछला',
|
||||
nextText: 'अगला',
|
||||
currentText: 'आज',
|
||||
monthNames: ['जनवरी ','फरवरी','मार्च','अप्रेल','मई','जून',
|
||||
'जूलाई','अगस्त ','सितम्बर','अक्टूबर','नवम्बर','दिसम्बर'],
|
||||
monthNamesShort: ['जन', 'फर', 'मार्च', 'अप्रेल', 'मई', 'जून',
|
||||
'जूलाई', 'अग', 'सित', 'अक्ट', 'नव', 'दि'],
|
||||
dayNames: ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरुवार', 'शुक्रवार', 'शनिवार'],
|
||||
dayNamesShort: ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'],
|
||||
dayNamesMin: ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'],
|
||||
weekHeader: 'हफ्ता',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hi']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Croatian i18n for the jQuery UI date picker plugin. */
|
||||
/* Written by Vjekoslav Nesek. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['hr'] = {
|
||||
closeText: 'Zatvori',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Danas',
|
||||
monthNames: ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipanj',
|
||||
'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'],
|
||||
monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip',
|
||||
'Srp','Kol','Ruj','Lis','Stu','Pro'],
|
||||
dayNames: ['Nedjelja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
weekHeader: 'Tje',
|
||||
dateFormat: 'dd.mm.yy.',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hr']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Hungarian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Istvan Karaszi (jquery@spam.raszi.hu). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['hu'] = {
|
||||
closeText: 'bezár',
|
||||
prevText: 'vissza',
|
||||
nextText: 'előre',
|
||||
currentText: 'ma',
|
||||
monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június',
|
||||
'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún',
|
||||
'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
|
||||
dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
|
||||
dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'],
|
||||
dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'],
|
||||
weekHeader: 'Hét',
|
||||
dateFormat: 'yy.mm.dd.',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hu']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['hy'] = {
|
||||
closeText: 'Փակել',
|
||||
prevText: '<Նախ.',
|
||||
nextText: 'Հաջ.>',
|
||||
currentText: 'Այսօր',
|
||||
monthNames: ['Հունվար','Փետրվար','Մարտ','Ապրիլ','Մայիս','Հունիս',
|
||||
'Հուլիս','Օգոստոս','Սեպտեմբեր','Հոկտեմբեր','Նոյեմբեր','Դեկտեմբեր'],
|
||||
monthNamesShort: ['Հունվ','Փետր','Մարտ','Ապր','Մայիս','Հունիս',
|
||||
'Հուլ','Օգս','Սեպ','Հոկ','Նոյ','Դեկ'],
|
||||
dayNames: ['կիրակի','եկուշաբթի','երեքշաբթի','չորեքշաբթի','հինգշաբթի','ուրբաթ','շաբաթ'],
|
||||
dayNamesShort: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'],
|
||||
dayNamesMin: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'],
|
||||
weekHeader: 'ՇԲՏ',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hy']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Indonesian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Deden Fathurahman (dedenf@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['id'] = {
|
||||
closeText: 'Tutup',
|
||||
prevText: '<mundur',
|
||||
nextText: 'maju>',
|
||||
currentText: 'hari ini',
|
||||
monthNames: ['Januari','Februari','Maret','April','Mei','Juni',
|
||||
'Juli','Agustus','September','Oktober','Nopember','Desember'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun',
|
||||
'Jul','Agus','Sep','Okt','Nop','Des'],
|
||||
dayNames: ['Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'],
|
||||
dayNamesShort: ['Min','Sen','Sel','Rab','kam','Jum','Sab'],
|
||||
dayNamesMin: ['Mg','Sn','Sl','Rb','Km','jm','Sb'],
|
||||
weekHeader: 'Mg',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['id']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Icelandic initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Haukur H. Thorsson (haukur@eskill.is). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['is'] = {
|
||||
closeText: 'Loka',
|
||||
prevText: '< Fyrri',
|
||||
nextText: 'Næsti >',
|
||||
currentText: 'Í dag',
|
||||
monthNames: ['Janúar','Febrúar','Mars','Apríl','Maí','Júní',
|
||||
'Júlí','Ágúst','September','Október','Nóvember','Desember'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maí','Jún',
|
||||
'Júl','Ágú','Sep','Okt','Nóv','Des'],
|
||||
dayNames: ['Sunnudagur','Mánudagur','Þriðjudagur','Miðvikudagur','Fimmtudagur','Föstudagur','Laugardagur'],
|
||||
dayNamesShort: ['Sun','Mán','Þri','Mið','Fim','Fös','Lau'],
|
||||
dayNamesMin: ['Su','Má','Þr','Mi','Fi','Fö','La'],
|
||||
weekHeader: 'Vika',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['is']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Italian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Antonello Pasella (antonello.pasella@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['it'] = {
|
||||
closeText: 'Chiudi',
|
||||
prevText: '<Prec',
|
||||
nextText: 'Succ>',
|
||||
currentText: 'Oggi',
|
||||
monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno',
|
||||
'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],
|
||||
monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu',
|
||||
'Lug','Ago','Set','Ott','Nov','Dic'],
|
||||
dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Me','Gi','Ve','Sa'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['it']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Japanese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Kentaro SATO (kentaro@ranvis.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ja'] = {
|
||||
closeText: '閉じる',
|
||||
prevText: '<前',
|
||||
nextText: '次>',
|
||||
currentText: '今日',
|
||||
monthNames: ['1月','2月','3月','4月','5月','6月',
|
||||
'7月','8月','9月','10月','11月','12月'],
|
||||
monthNamesShort: ['1月','2月','3月','4月','5月','6月',
|
||||
'7月','8月','9月','10月','11月','12月'],
|
||||
dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],
|
||||
dayNamesShort: ['日','月','火','水','木','金','土'],
|
||||
dayNamesMin: ['日','月','火','水','木','金','土'],
|
||||
weekHeader: '週',
|
||||
dateFormat: 'yy/mm/dd',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '年'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ja']);
|
||||
});
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
/* Georgian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Lado Lomidze (lado.lomidze@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ka'] = {
|
||||
closeText: 'დახურვა',
|
||||
prevText: '< წინა',
|
||||
nextText: 'შემდეგი >',
|
||||
currentText: 'დღეს',
|
||||
monthNames: ['იანვარი','თებერვალი','მარტი','აპრილი','მაისი','ივნისი', 'ივლისი','აგვისტო','სექტემბერი','ოქტომბერი','ნოემბერი','დეკემბერი'],
|
||||
monthNamesShort: ['იან','თებ','მარ','აპრ','მაი','ივნ', 'ივლ','აგვ','სექ','ოქტ','ნოე','დეკ'],
|
||||
dayNames: ['კვირა','ორშაბათი','სამშაბათი','ოთხშაბათი','ხუთშაბათი','პარასკევი','შაბათი'],
|
||||
dayNamesShort: ['კვ','ორშ','სამ','ოთხ','ხუთ','პარ','შაბ'],
|
||||
dayNamesMin: ['კვ','ორშ','სამ','ოთხ','ხუთ','პარ','შაბ'],
|
||||
weekHeader: 'კვირა',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ka']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Kazakh (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Dmitriy Karasyov (dmitriy.karasyov@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['kk'] = {
|
||||
closeText: 'Жабу',
|
||||
prevText: '<Алдыңғы',
|
||||
nextText: 'Келесі>',
|
||||
currentText: 'Бүгін',
|
||||
monthNames: ['Қаңтар','Ақпан','Наурыз','Сәуір','Мамыр','Маусым',
|
||||
'Шілде','Тамыз','Қыркүйек','Қазан','Қараша','Желтоқсан'],
|
||||
monthNamesShort: ['Қаң','Ақп','Нау','Сәу','Мам','Мау',
|
||||
'Шіл','Там','Қыр','Қаз','Қар','Жел'],
|
||||
dayNames: ['Жексенбі','Дүйсенбі','Сейсенбі','Сәрсенбі','Бейсенбі','Жұма','Сенбі'],
|
||||
dayNamesShort: ['жкс','дсн','ссн','срс','бсн','жма','снб'],
|
||||
dayNamesMin: ['Жк','Дс','Сс','Ср','Бс','Жм','Сн'],
|
||||
weekHeader: 'Не',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['kk']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Khmer initialisation for the jQuery calendar extension. */
|
||||
/* Written by Chandara Om (chandara.teacher@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['km'] = {
|
||||
closeText: 'ធ្វើរួច',
|
||||
prevText: 'មុន',
|
||||
nextText: 'បន្ទាប់',
|
||||
currentText: 'ថ្ងៃនេះ',
|
||||
monthNames: ['មករា','កុម្ភៈ','មីនា','មេសា','ឧសភា','មិថុនា',
|
||||
'កក្កដា','សីហា','កញ្ញា','តុលា','វិច្ឆិកា','ធ្នូ'],
|
||||
monthNamesShort: ['មករា','កុម្ភៈ','មីនា','មេសា','ឧសភា','មិថុនា',
|
||||
'កក្កដា','សីហា','កញ្ញា','តុលា','វិច្ឆិកា','ធ្នូ'],
|
||||
dayNames: ['អាទិត្យ', 'ចន្ទ', 'អង្គារ', 'ពុធ', 'ព្រហស្បតិ៍', 'សុក្រ', 'សៅរ៍'],
|
||||
dayNamesShort: ['អា', 'ច', 'អ', 'ពុ', 'ព្រហ', 'សុ', 'សៅ'],
|
||||
dayNamesMin: ['អា', 'ច', 'អ', 'ពុ', 'ព្រហ', 'សុ', 'សៅ'],
|
||||
weekHeader: 'សប្ដាហ៍',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['km']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Korean initialisation for the jQuery calendar extension. */
|
||||
/* Written by DaeKwon Kang (ncrash.dk@gmail.com), Edited by Genie. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ko'] = {
|
||||
closeText: '닫기',
|
||||
prevText: '이전달',
|
||||
nextText: '다음달',
|
||||
currentText: '오늘',
|
||||
monthNames: ['1월','2월','3월','4월','5월','6월',
|
||||
'7월','8월','9월','10월','11월','12월'],
|
||||
monthNamesShort: ['1월','2월','3월','4월','5월','6월',
|
||||
'7월','8월','9월','10월','11월','12월'],
|
||||
dayNames: ['일요일','월요일','화요일','수요일','목요일','금요일','토요일'],
|
||||
dayNamesShort: ['일','월','화','수','목','금','토'],
|
||||
dayNamesMin: ['일','월','화','수','목','금','토'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '년'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ko']);
|
||||
});
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
/* Kyrgyz (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Sergey Kartashov (ebishkek@yandex.ru). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ky'] = {
|
||||
closeText: 'Жабуу',
|
||||
prevText: '<Мур',
|
||||
nextText: 'Кий>',
|
||||
currentText: 'Бүгүн',
|
||||
monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь',
|
||||
'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],
|
||||
monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн',
|
||||
'Июл','Авг','Сен','Окт','Ноя','Дек'],
|
||||
dayNames: ['жекшемби', 'дүйшөмбү', 'шейшемби', 'шаршемби', 'бейшемби', 'жума', 'ишемби'],
|
||||
dayNamesShort: ['жек', 'дүй', 'шей', 'шар', 'бей', 'жум', 'ише'],
|
||||
dayNamesMin: ['Жк','Дш','Шш','Шр','Бш','Жм','Иш'],
|
||||
weekHeader: 'Жум',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ky']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Luxembourgish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Michel Weimerskirch <michel@weimerskirch.net> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['lb'] = {
|
||||
closeText: 'Fäerdeg',
|
||||
prevText: 'Zréck',
|
||||
nextText: 'Weider',
|
||||
currentText: 'Haut',
|
||||
monthNames: ['Januar','Februar','Mäerz','Abrëll','Mee','Juni',
|
||||
'Juli','August','September','Oktober','November','Dezember'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mäe', 'Abr', 'Mee', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
|
||||
dayNames: ['Sonndeg', 'Méindeg', 'Dënschdeg', 'Mëttwoch', 'Donneschdeg', 'Freideg', 'Samschdeg'],
|
||||
dayNamesShort: ['Son', 'Méi', 'Dën', 'Mët', 'Don', 'Fre', 'Sam'],
|
||||
dayNamesMin: ['So','Mé','Dë','Më','Do','Fr','Sa'],
|
||||
weekHeader: 'W',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['lb']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* @author Arturas Paleicikas <arturas@avalon.lt> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['lt'] = {
|
||||
closeText: 'Uždaryti',
|
||||
prevText: '<Atgal',
|
||||
nextText: 'Pirmyn>',
|
||||
currentText: 'Šiandien',
|
||||
monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis',
|
||||
'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'],
|
||||
monthNamesShort: ['Sau','Vas','Kov','Bal','Geg','Bir',
|
||||
'Lie','Rugp','Rugs','Spa','Lap','Gru'],
|
||||
dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'],
|
||||
dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'],
|
||||
dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['lt']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* @author Arturas Paleicikas <arturas.paleicikas@metasite.net> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['lv'] = {
|
||||
closeText: 'Aizvērt',
|
||||
prevText: 'Iepr',
|
||||
nextText: 'Nāka',
|
||||
currentText: 'Šodien',
|
||||
monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs',
|
||||
'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jūn',
|
||||
'Jūl','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'],
|
||||
dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'],
|
||||
dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'],
|
||||
weekHeader: 'Nav',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['lv']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Macedonian i18n for the jQuery UI date picker plugin. */
|
||||
/* Written by Stojce Slavkovski. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['mk'] = {
|
||||
closeText: 'Затвори',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Денес',
|
||||
monthNames: ['Јануари','Февруари','Март','Април','Мај','Јуни',
|
||||
'Јули','Август','Септември','Октомври','Ноември','Декември'],
|
||||
monthNamesShort: ['Јан','Фев','Мар','Апр','Мај','Јун',
|
||||
'Јул','Авг','Сеп','Окт','Ное','Дек'],
|
||||
dayNames: ['Недела','Понеделник','Вторник','Среда','Четврток','Петок','Сабота'],
|
||||
dayNamesShort: ['Нед','Пон','Вто','Сре','Чет','Пет','Саб'],
|
||||
dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Са'],
|
||||
weekHeader: 'Сед',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['mk']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Malayalam (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Saji Nediyanchath (saji89@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ml'] = {
|
||||
closeText: 'ശരി',
|
||||
prevText: 'മുന്നത്തെ',
|
||||
nextText: 'അടുത്തത് ',
|
||||
currentText: 'ഇന്ന്',
|
||||
monthNames: ['ജനുവരി','ഫെബ്രുവരി','മാര്ച്ച്','ഏപ്രില്','മേയ്','ജൂണ്',
|
||||
'ജൂലൈ','ആഗസ്റ്റ്','സെപ്റ്റംബര്','ഒക്ടോബര്','നവംബര്','ഡിസംബര്'],
|
||||
monthNamesShort: ['ജനു', 'ഫെബ്', 'മാര്', 'ഏപ്രി', 'മേയ്', 'ജൂണ്',
|
||||
'ജൂലാ', 'ആഗ', 'സെപ്', 'ഒക്ടോ', 'നവം', 'ഡിസ'],
|
||||
dayNames: ['ഞായര്', 'തിങ്കള്', 'ചൊവ്വ', 'ബുധന്', 'വ്യാഴം', 'വെള്ളി', 'ശനി'],
|
||||
dayNamesShort: ['ഞായ', 'തിങ്ക', 'ചൊവ്വ', 'ബുധ', 'വ്യാഴം', 'വെള്ളി', 'ശനി'],
|
||||
dayNamesMin: ['ഞാ','തി','ചൊ','ബു','വ്യാ','വെ','ശ'],
|
||||
weekHeader: 'ആ',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ml']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Malaysian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ms'] = {
|
||||
closeText: 'Tutup',
|
||||
prevText: '<Sebelum',
|
||||
nextText: 'Selepas>',
|
||||
currentText: 'hari ini',
|
||||
monthNames: ['Januari','Februari','Mac','April','Mei','Jun',
|
||||
'Julai','Ogos','September','Oktober','November','Disember'],
|
||||
monthNamesShort: ['Jan','Feb','Mac','Apr','Mei','Jun',
|
||||
'Jul','Ogo','Sep','Okt','Nov','Dis'],
|
||||
dayNames: ['Ahad','Isnin','Selasa','Rabu','Khamis','Jumaat','Sabtu'],
|
||||
dayNamesShort: ['Aha','Isn','Sel','Rab','kha','Jum','Sab'],
|
||||
dayNamesMin: ['Ah','Is','Se','Ra','Kh','Ju','Sa'],
|
||||
weekHeader: 'Mg',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ms']);
|
||||
});
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/* Norwegian Bokmål initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Bjørn Johansen (post@bjornjohansen.no). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['nb'] = {
|
||||
closeText: 'Lukk',
|
||||
prevText: '«Forrige',
|
||||
nextText: 'Neste»',
|
||||
currentText: 'I dag',
|
||||
monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
|
||||
monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
|
||||
dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'],
|
||||
dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],
|
||||
dayNamesMin: ['sø','ma','ti','on','to','fr','lø'],
|
||||
weekHeader: 'Uke',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
$.datepicker.setDefaults($.datepicker.regional['nb']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Dutch (Belgium) initialisation for the jQuery UI date picker plugin. */
|
||||
/* David De Sloovere @DavidDeSloovere */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['nl-BE'] = {
|
||||
closeText: 'Sluiten',
|
||||
prevText: '←',
|
||||
nextText: '→',
|
||||
currentText: 'Vandaag',
|
||||
monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni',
|
||||
'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
|
||||
monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun',
|
||||
'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
|
||||
dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
||||
dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],
|
||||
dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['nl-BE']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Mathias Bynens <http://mathiasbynens.be/> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional.nl = {
|
||||
closeText: 'Sluiten',
|
||||
prevText: '←',
|
||||
nextText: '→',
|
||||
currentText: 'Vandaag',
|
||||
monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni',
|
||||
'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
|
||||
monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun',
|
||||
'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
|
||||
dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
||||
dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],
|
||||
dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional.nl);
|
||||
});
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/* Norwegian Nynorsk initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Bjørn Johansen (post@bjornjohansen.no). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['nn'] = {
|
||||
closeText: 'Lukk',
|
||||
prevText: '«Førre',
|
||||
nextText: 'Neste»',
|
||||
currentText: 'I dag',
|
||||
monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
|
||||
monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
|
||||
dayNamesShort: ['sun','mån','tys','ons','tor','fre','lau'],
|
||||
dayNames: ['sundag','måndag','tysdag','onsdag','torsdag','fredag','laurdag'],
|
||||
dayNamesMin: ['su','må','ty','on','to','fr','la'],
|
||||
weekHeader: 'Veke',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
$.datepicker.setDefaults($.datepicker.regional['nn']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Norwegian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Naimdjon Takhirov (naimdjon@gmail.com). */
|
||||
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['no'] = {
|
||||
closeText: 'Lukk',
|
||||
prevText: '«Forrige',
|
||||
nextText: 'Neste»',
|
||||
currentText: 'I dag',
|
||||
monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
|
||||
monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
|
||||
dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'],
|
||||
dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],
|
||||
dayNamesMin: ['sø','ma','ti','on','to','fr','lø'],
|
||||
weekHeader: 'Uke',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
$.datepicker.setDefaults($.datepicker.regional['no']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Polish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['pl'] = {
|
||||
closeText: 'Zamknij',
|
||||
prevText: '<Poprzedni',
|
||||
nextText: 'Następny>',
|
||||
currentText: 'Dziś',
|
||||
monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec',
|
||||
'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'],
|
||||
monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze',
|
||||
'Lip','Sie','Wrz','Pa','Lis','Gru'],
|
||||
dayNames: ['Niedziela','Poniedziałek','Wtorek','Środa','Czwartek','Piątek','Sobota'],
|
||||
dayNamesShort: ['Nie','Pn','Wt','Śr','Czw','Pt','So'],
|
||||
dayNamesMin: ['N','Pn','Wt','Śr','Cz','Pt','So'],
|
||||
weekHeader: 'Tydz',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['pl']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Brazilian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['pt-BR'] = {
|
||||
closeText: 'Fechar',
|
||||
prevText: '<Anterior',
|
||||
nextText: 'Próximo>',
|
||||
currentText: 'Hoje',
|
||||
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho',
|
||||
'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
|
||||
monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun',
|
||||
'Jul','Ago','Set','Out','Nov','Dez'],
|
||||
dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'],
|
||||
dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
||||
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['pt-BR']);
|
||||
});
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/* Portuguese initialisation for the jQuery UI date picker plugin. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['pt'] = {
|
||||
closeText: 'Fechar',
|
||||
prevText: '<Anterior',
|
||||
nextText: 'Seguinte',
|
||||
currentText: 'Hoje',
|
||||
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho',
|
||||
'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
|
||||
monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun',
|
||||
'Jul','Ago','Set','Out','Nov','Dez'],
|
||||
dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'],
|
||||
dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
||||
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
||||
weekHeader: 'Sem',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['pt']);
|
||||
});
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
/* Romansh initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Yvonne Gienal (yvonne.gienal@educa.ch). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['rm'] = {
|
||||
closeText: 'Serrar',
|
||||
prevText: '<Suandant',
|
||||
nextText: 'Precedent>',
|
||||
currentText: 'Actual',
|
||||
monthNames: ['Schaner','Favrer','Mars','Avrigl','Matg','Zercladur', 'Fanadur','Avust','Settember','October','November','December'],
|
||||
monthNamesShort: ['Scha','Fev','Mar','Avr','Matg','Zer', 'Fan','Avu','Sett','Oct','Nov','Dec'],
|
||||
dayNames: ['Dumengia','Glindesdi','Mardi','Mesemna','Gievgia','Venderdi','Sonda'],
|
||||
dayNamesShort: ['Dum','Gli','Mar','Mes','Gie','Ven','Som'],
|
||||
dayNamesMin: ['Du','Gl','Ma','Me','Gi','Ve','So'],
|
||||
weekHeader: 'emna',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['rm']);
|
||||
});
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
/* Romanian initialisation for the jQuery UI date picker plugin.
|
||||
*
|
||||
* Written by Edmond L. (ll_edmond@walla.com)
|
||||
* and Ionut G. Stan (ionut.g.stan@gmail.com)
|
||||
*/
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ro'] = {
|
||||
closeText: 'Închide',
|
||||
prevText: '« Luna precedentă',
|
||||
nextText: 'Luna următoare »',
|
||||
currentText: 'Azi',
|
||||
monthNames: ['Ianuarie','Februarie','Martie','Aprilie','Mai','Iunie',
|
||||
'Iulie','August','Septembrie','Octombrie','Noiembrie','Decembrie'],
|
||||
monthNamesShort: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun',
|
||||
'Iul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Duminică', 'Luni', 'Marţi', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'],
|
||||
dayNamesShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sâm'],
|
||||
dayNamesMin: ['Du','Lu','Ma','Mi','Jo','Vi','Sâ'],
|
||||
weekHeader: 'Săpt',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ro']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Andrew Stromnov (stromnov@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ru'] = {
|
||||
closeText: 'Закрыть',
|
||||
prevText: '<Пред',
|
||||
nextText: 'След>',
|
||||
currentText: 'Сегодня',
|
||||
monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь',
|
||||
'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],
|
||||
monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн',
|
||||
'Июл','Авг','Сен','Окт','Ноя','Дек'],
|
||||
dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'],
|
||||
dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'],
|
||||
dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'],
|
||||
weekHeader: 'Нед',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ru']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Slovak initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Vojtech Rinik (vojto@hmm.sk). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sk'] = {
|
||||
closeText: 'Zavrieť',
|
||||
prevText: '<Predchádzajúci',
|
||||
nextText: 'Nasledujúci>',
|
||||
currentText: 'Dnes',
|
||||
monthNames: ['január','február','marec','apríl','máj','jún',
|
||||
'júl','august','september','október','november','december'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Máj','Jún',
|
||||
'Júl','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['nedeľa','pondelok','utorok','streda','štvrtok','piatok','sobota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Str','Štv','Pia','Sob'],
|
||||
dayNamesMin: ['Ne','Po','Ut','St','Št','Pia','So'],
|
||||
weekHeader: 'Ty',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sk']);
|
||||
});
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
/* Slovenian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Jaka Jancar (jaka@kubje.org). */
|
||||
/* c = č, s = š z = ž C = Č S = Š Z = Ž */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sl'] = {
|
||||
closeText: 'Zapri',
|
||||
prevText: '<Prejšnji',
|
||||
nextText: 'Naslednji>',
|
||||
currentText: 'Trenutni',
|
||||
monthNames: ['Januar','Februar','Marec','April','Maj','Junij',
|
||||
'Julij','Avgust','September','Oktober','November','December'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Avg','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Nedelja','Ponedeljek','Torek','Sreda','Četrtek','Petek','Sobota'],
|
||||
dayNamesShort: ['Ned','Pon','Tor','Sre','Čet','Pet','Sob'],
|
||||
dayNamesMin: ['Ne','Po','To','Sr','Če','Pe','So'],
|
||||
weekHeader: 'Teden',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sl']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Albanian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Flakron Bytyqi (flakron@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sq'] = {
|
||||
closeText: 'mbylle',
|
||||
prevText: '<mbrapa',
|
||||
nextText: 'Përpara>',
|
||||
currentText: 'sot',
|
||||
monthNames: ['Janar','Shkurt','Mars','Prill','Maj','Qershor',
|
||||
'Korrik','Gusht','Shtator','Tetor','Nëntor','Dhjetor'],
|
||||
monthNamesShort: ['Jan','Shk','Mar','Pri','Maj','Qer',
|
||||
'Kor','Gus','Sht','Tet','Nën','Dhj'],
|
||||
dayNames: ['E Diel','E Hënë','E Martë','E Mërkurë','E Enjte','E Premte','E Shtune'],
|
||||
dayNamesShort: ['Di','Hë','Ma','Më','En','Pr','Sh'],
|
||||
dayNamesMin: ['Di','Hë','Ma','Më','En','Pr','Sh'],
|
||||
weekHeader: 'Ja',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sq']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Serbian i18n for the jQuery UI date picker plugin. */
|
||||
/* Written by Dejan Dimić. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sr-SR'] = {
|
||||
closeText: 'Zatvori',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Danas',
|
||||
monthNames: ['Januar','Februar','Mart','April','Maj','Jun',
|
||||
'Jul','Avgust','Septembar','Oktobar','Novembar','Decembar'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Avg','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Nedelja','Ponedeljak','Utorak','Sreda','Četvrtak','Petak','Subota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Sre','Čet','Pet','Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
weekHeader: 'Sed',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sr-SR']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Serbian i18n for the jQuery UI date picker plugin. */
|
||||
/* Written by Dejan Dimić. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sr'] = {
|
||||
closeText: 'Затвори',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Данас',
|
||||
monthNames: ['Јануар','Фебруар','Март','Април','Мај','Јун',
|
||||
'Јул','Август','Септембар','Октобар','Новембар','Децембар'],
|
||||
monthNamesShort: ['Јан','Феб','Мар','Апр','Мај','Јун',
|
||||
'Јул','Авг','Сеп','Окт','Нов','Дец'],
|
||||
dayNames: ['Недеља','Понедељак','Уторак','Среда','Четвртак','Петак','Субота'],
|
||||
dayNamesShort: ['Нед','Пон','Уто','Сре','Чет','Пет','Суб'],
|
||||
dayNamesMin: ['Не','По','Ут','Ср','Че','Пе','Су'],
|
||||
weekHeader: 'Сед',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sr']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Swedish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Anders Ekdahl ( anders@nomadiz.se). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sv'] = {
|
||||
closeText: 'Stäng',
|
||||
prevText: '«Förra',
|
||||
nextText: 'Nästa»',
|
||||
currentText: 'Idag',
|
||||
monthNames: ['Januari','Februari','Mars','April','Maj','Juni',
|
||||
'Juli','Augusti','September','Oktober','November','December'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNamesShort: ['Sön','Mån','Tis','Ons','Tor','Fre','Lör'],
|
||||
dayNames: ['Söndag','Måndag','Tisdag','Onsdag','Torsdag','Fredag','Lördag'],
|
||||
dayNamesMin: ['Sö','Må','Ti','On','To','Fr','Lö'],
|
||||
weekHeader: 'Ve',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sv']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Tamil (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by S A Sureshkumar (saskumar@live.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ta'] = {
|
||||
closeText: 'மூடு',
|
||||
prevText: 'முன்னையது',
|
||||
nextText: 'அடுத்தது',
|
||||
currentText: 'இன்று',
|
||||
monthNames: ['தை','மாசி','பங்குனி','சித்திரை','வைகாசி','ஆனி',
|
||||
'ஆடி','ஆவணி','புரட்டாசி','ஐப்பசி','கார்த்திகை','மார்கழி'],
|
||||
monthNamesShort: ['தை','மாசி','பங்','சித்','வைகா','ஆனி',
|
||||
'ஆடி','ஆவ','புர','ஐப்','கார்','மார்'],
|
||||
dayNames: ['ஞாயிற்றுக்கிழமை','திங்கட்கிழமை','செவ்வாய்க்கிழமை','புதன்கிழமை','வியாழக்கிழமை','வெள்ளிக்கிழமை','சனிக்கிழமை'],
|
||||
dayNamesShort: ['ஞாயிறு','திங்கள்','செவ்வாய்','புதன்','வியாழன்','வெள்ளி','சனி'],
|
||||
dayNamesMin: ['ஞா','தி','செ','பு','வி','வெ','ச'],
|
||||
weekHeader: 'Не',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ta']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Thai initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by pipo (pipo@sixhead.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['th'] = {
|
||||
closeText: 'ปิด',
|
||||
prevText: '« ย้อน',
|
||||
nextText: 'ถัดไป »',
|
||||
currentText: 'วันนี้',
|
||||
monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน',
|
||||
'กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'],
|
||||
monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.',
|
||||
'ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.'],
|
||||
dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'],
|
||||
dayNamesShort: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],
|
||||
dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['th']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Tajiki (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Abdurahmon Saidov (saidovab@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['tj'] = {
|
||||
closeText: 'Идома',
|
||||
prevText: '<Қафо',
|
||||
nextText: 'Пеш>',
|
||||
currentText: 'Имрӯз',
|
||||
monthNames: ['Январ','Феврал','Март','Апрел','Май','Июн',
|
||||
'Июл','Август','Сентябр','Октябр','Ноябр','Декабр'],
|
||||
monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн',
|
||||
'Июл','Авг','Сен','Окт','Ноя','Дек'],
|
||||
dayNames: ['якшанбе','душанбе','сешанбе','чоршанбе','панҷшанбе','ҷумъа','шанбе'],
|
||||
dayNamesShort: ['якш','душ','сеш','чор','пан','ҷум','шан'],
|
||||
dayNamesMin: ['Як','Дш','Сш','Чш','Пш','Ҷм','Шн'],
|
||||
weekHeader: 'Хф',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['tj']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Turkish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Izzet Emre Erkan (kara@karalamalar.net). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['tr'] = {
|
||||
closeText: 'kapat',
|
||||
prevText: '<geri',
|
||||
nextText: 'ileri>',
|
||||
currentText: 'bugün',
|
||||
monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran',
|
||||
'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'],
|
||||
monthNamesShort: ['Oca','Şub','Mar','Nis','May','Haz',
|
||||
'Tem','Ağu','Eyl','Eki','Kas','Ara'],
|
||||
dayNames: ['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'],
|
||||
dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'],
|
||||
dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'],
|
||||
weekHeader: 'Hf',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['tr']);
|
||||
});
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
/* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Maxim Drogobitskiy (maxdao@gmail.com). */
|
||||
/* Corrected by Igor Milla (igor.fsp.milla@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['uk'] = {
|
||||
closeText: 'Закрити',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Сьогодні',
|
||||
monthNames: ['Січень','Лютий','Березень','Квітень','Травень','Червень',
|
||||
'Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'],
|
||||
monthNamesShort: ['Січ','Лют','Бер','Кві','Тра','Чер',
|
||||
'Лип','Сер','Вер','Жов','Лис','Гру'],
|
||||
dayNames: ['неділя','понеділок','вівторок','середа','четвер','п’ятниця','субота'],
|
||||
dayNamesShort: ['нед','пнд','вів','срд','чтв','птн','сбт'],
|
||||
dayNamesMin: ['Нд','Пн','Вт','Ср','Чт','Пт','Сб'],
|
||||
weekHeader: 'Тиж',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['uk']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Vietnamese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Translated by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['vi'] = {
|
||||
closeText: 'Đóng',
|
||||
prevText: '<Trước',
|
||||
nextText: 'Tiếp>',
|
||||
currentText: 'Hôm nay',
|
||||
monthNames: ['Tháng Một', 'Tháng Hai', 'Tháng Ba', 'Tháng Tư', 'Tháng Năm', 'Tháng Sáu',
|
||||
'Tháng Bảy', 'Tháng Tám', 'Tháng Chín', 'Tháng Mười', 'Tháng Mười Một', 'Tháng Mười Hai'],
|
||||
monthNamesShort: ['Tháng 1', 'Tháng 2', 'Tháng 3', 'Tháng 4', 'Tháng 5', 'Tháng 6',
|
||||
'Tháng 7', 'Tháng 8', 'Tháng 9', 'Tháng 10', 'Tháng 11', 'Tháng 12'],
|
||||
dayNames: ['Chủ Nhật', 'Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ Năm', 'Thứ Sáu', 'Thứ Bảy'],
|
||||
dayNamesShort: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'],
|
||||
dayNamesMin: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'],
|
||||
weekHeader: 'Tu',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['vi']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Chinese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Cloudream (cloudream@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['zh-CN'] = {
|
||||
closeText: '关闭',
|
||||
prevText: '<上月',
|
||||
nextText: '下月>',
|
||||
currentText: '今天',
|
||||
monthNames: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
monthNamesShort: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
||||
dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
||||
dayNamesMin: ['日','一','二','三','四','五','六'],
|
||||
weekHeader: '周',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '年'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['zh-CN']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Chinese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by SCCY (samuelcychan@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['zh-HK'] = {
|
||||
closeText: '關閉',
|
||||
prevText: '<上月',
|
||||
nextText: '下月>',
|
||||
currentText: '今天',
|
||||
monthNames: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
monthNamesShort: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
||||
dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
||||
dayNamesMin: ['日','一','二','三','四','五','六'],
|
||||
weekHeader: '周',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '年'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['zh-HK']);
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/* Chinese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Ressol (ressol@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['zh-TW'] = {
|
||||
closeText: '關閉',
|
||||
prevText: '<上月',
|
||||
nextText: '下月>',
|
||||
currentText: '今天',
|
||||
monthNames: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
monthNamesShort: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
||||
dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
||||
dayNamesMin: ['日','一','二','三','四','五','六'],
|
||||
weekHeader: '周',
|
||||
dateFormat: 'yy/mm/dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '年'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['zh-TW']);
|
||||
});
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
/*! jQuery Timepicker Addon - v1.5.0 - 2014-09-01
|
||||
* http://trentrichardson.com/examples/timepicker
|
||||
* Copyright (c) 2014 Trent Richardson; Licensed MIT */
|
||||
(function(e){e.timepicker.regional.af={timeOnlyTitle:"Kies Tyd",timeText:"Tyd ",hourText:"Ure ",minuteText:"Minute",secondText:"Sekondes",millisecText:"Millisekondes",microsecText:"Mikrosekondes",timezoneText:"Tydsone",currentText:"Huidige Tyd",closeText:"Klaar",timeFormat:"HH:mm",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},e.timepicker.regional.am={timeOnlyTitle:"Ընտրեք ժամանակը",timeText:"Ժամանակը",hourText:"Ժամ",minuteText:"Րոպե",secondText:"Վարկյան",millisecText:"Միլիվարկյան",microsecText:"Միկրովարկյան",timezoneText:"Ժամային գոտին",currentText:"Այժմ",closeText:"Փակել",timeFormat:"HH:mm",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},e.timepicker.regional.bg={timeOnlyTitle:"Изберете време",timeText:"Време",hourText:"Час",minuteText:"Минути",secondText:"Секунди",millisecText:"Милисекунди",microsecText:"Микросекунди",timezoneText:"Часови пояс",currentText:"Сега",closeText:"Затвори",timeFormat:"HH:mm",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},e.timepicker.regional.ca={timeOnlyTitle:"Escollir una hora",timeText:"Hora",hourText:"Hores",minuteText:"Minuts",secondText:"Segons",millisecText:"Milisegons",microsecText:"Microsegons",timezoneText:"Fus horari",currentText:"Ara",closeText:"Tancar",timeFormat:"HH:mm",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},e.timepicker.regional.cs={timeOnlyTitle:"Vyberte čas",timeText:"Čas",hourText:"Hodiny",minuteText:"Minuty",secondText:"Vteřiny",millisecText:"Milisekundy",microsecText:"Mikrosekundy",timezoneText:"Časové pásmo",currentText:"Nyní",closeText:"Zavřít",timeFormat:"HH:mm",amNames:["dop.","AM","A"],pmNames:["odp.","PM","P"],isRTL:!1},e.timepicker.regional.da={timeOnlyTitle:"Vælg tid",timeText:"Tid",hourText:"Time",minuteText:"Minut",secondText:"Sekund",millisecText:"Millisekund",microsecText:"Mikrosekund",timezoneText:"Tidszone",currentText:"Nu",closeText:"Luk",timeFormat:"HH:mm",amNames:["am","AM","A"],pmNames:["pm","PM","P"],isRTL:!1},e.timepicker.regional.de={timeOnlyTitle:"Zeit wählen",timeText:"Zeit",hourText:"Stunde",minuteText:"Minute",secondText:"Sekunde",millisecText:"Millisekunde",microsecText:"Mikrosekunde",timezoneText:"Zeitzone",currentText:"Jetzt",closeText:"Fertig",timeFormat:"HH:mm",amNames:["vorm.","AM","A"],pmNames:["nachm.","PM","P"],isRTL:!1},e.timepicker.regional.el={timeOnlyTitle:"Επιλογή ώρας",timeText:"Ώρα",hourText:"Ώρες",minuteText:"Λεπτά",secondText:"Δευτερόλεπτα",millisecText:"μιλιδευτερόλεπτο",microsecText:"Microseconds",timezoneText:"Ζώνη ώρας",currentText:"Τώρα",closeText:"Κλείσιμο",timeFormat:"HH:mm",amNames:["π.μ.","AM","A"],pmNames:["μ.μ.","PM","P"],isRTL:!1},e.timepicker.regional.es={timeOnlyTitle:"Elegir una hora",timeText:"Hora",hourText:"Horas",minuteText:"Minutos",secondText:"Segundos",millisecText:"Milisegundos",microsecText:"Microsegundos",timezoneText:"Uso horario",currentText:"Hoy",closeText:"Cerrar",timeFormat:"HH:mm",amNames:["a.m.","AM","A"],pmNames:["p.m.","PM","P"],isRTL:!1},e.timepicker.regional.et={timeOnlyTitle:"Vali aeg",timeText:"Aeg",hourText:"Tund",minuteText:"Minut",secondText:"Sekund",millisecText:"Millisekundis",microsecText:"Mikrosekundis",timezoneText:"Ajavöönd",currentText:"Praegu",closeText:"Valmis",timeFormat:"HH:mm",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},e.timepicker.regional.eu={timeOnlyTitle:"Aukeratu ordua",timeText:"Ordua",hourText:"Orduak",minuteText:"Minutuak",secondText:"Segundoak",millisecText:"Milisegundoak",microsecText:"Mikrosegundoak",timezoneText:"Ordu-eremua",currentText:"Orain",closeText:"Itxi",timeFormat:"HH:mm",amNames:["a.m.","AM","A"],pmNames:["p.m.","PM","P"],isRTL:!1},e.timepicker.regional.fi={timeOnlyTitle:"Valitse aika",timeText:"Aika",hourText:"Tunti",minuteText:"Minuutti",secondText:"Sekunti",millisecText:"Millisekunnin",microsecText:"Mikrosekuntia",timezoneText:"Aikavyöhyke",currentText:"Nyt",closeText:"Sulje",timeFormat:"HH:mm",amNames:["ap.","AM","A"],pmNames:["ip.","PM","P"],isRTL:!1},e.timepicker.regional.fr={timeOnlyTitle:"Choisir une heure",timeText:"Heure",hourText:"Heures",minuteText:"Minutes",secondText:"Secondes",millisecText:"Millisecondes",microsecText:"Microsecondes",timezoneText:"Fuseau horaire",currentText:"Maintenant",closeText:"Terminé",timeFormat:"HH:mm",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},e.timepicker.regional.gl={timeOnlyTitle:"Elixir unha hora",timeText:"Hora",hourText:"Horas",minuteText:"Minutos",secondText:"Segundos",millisecText:"Milisegundos",microsecText:"Microssegundos",timezoneText:"Fuso horario",currentText:"Agora",closeText:"Pechar",timeFormat:"HH:mm",amNames:["a.m.","AM","A"],pmNames:["p.m.","PM","P"],isRTL:!1},e.timepicker.regional.he={timeOnlyTitle:"בחירת זמן",timeText:"שעה",hourText:"שעות",minuteText:"דקות",secondText:"שניות",millisecText:"אלLine truncated
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
/*! jQuery Timepicker Addon - v1.5.0 - 2014-09-01
|
||||
* http://trentrichardson.com/examples/timepicker
|
||||
* Copyright (c) 2014 Trent Richardson; Licensed MIT */
|
||||
(function($){if($.ui.timepicker=$.ui.timepicker||{},!$.ui.timepicker.version){$.extend($.ui,{timepicker:{version:"1.5.0"}});var Timepicker=function(){this.regional=[],this.regional[""]={currentText:"Now",closeText:"Done",amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"HH:mm",timeSuffix:"",timeOnlyTitle:"Choose Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",millisecText:"Millisecond",microsecText:"Microsecond",timezoneText:"Time Zone",isRTL:!1},this._defaults={showButtonPanel:!0,timeOnly:!1,timeOnlyShowDate:!1,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:!0,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:!0,separator:" ",altFieldTimeOnly:!0,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,altRedirectFocus:!0,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:!0,timezoneList:null,addSliderAccess:!1,sliderAccessArgs:null,controlType:"slider",defaultValue:null,parse:"strict"},$.extend(this._defaults,this.regional[""])};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:"",formattedDate:"",formattedTime:"",formattedDateTime:"",timezoneList:null,units:["hour","minute","second","millisec","microsec"],support:{},control:null,setDefaults:function(e){return extendRemove(this._defaults,e||{}),this},_newInst:function($input,opts){var tp_inst=new Timepicker,inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults)if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr("time:"+attrName);if(attrValue)try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}overrides={beforeShow:function(e,t){return $.isFunction(tp_inst._defaults.evnts.beforeShow)?tp_inst._defaults.evnts.beforeShow.call($input[0],e,t,tp_inst):void 0},onChangeMonthYear:function(e,t,i){tp_inst._updateDateTime(i),$.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)&&tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],e,t,i,tp_inst)},onClose:function(e,t){tp_inst.timeDefined===!0&&""!==$input.val()&&tp_inst._updateDateTime(t),$.isFunction(tp_inst._defaults.evnts.onClose)&&tp_inst._defaults.evnts.onClose.call($input[0],e,t,tp_inst)}};for(i in overrides)overrides.hasOwnProperty(i)&&(fns[i]=opts[i]||null);tp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst}),tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(e){return e.toUpperCase()}),tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(e){return e.toUpperCase()}),tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:"")+(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:"")),"string"==typeof tp_inst._defaults.controlType?("slider"===tp_inst._defaults.controlType&&$.ui.slider===void 0&&(tp_inst._defaults.controlType="select"),tp_inst.control=tp_inst._controls[tp_inst._defaults.controlType]):tp_inst.control=tp_inst._defaults.controlType;var timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];null!==tp_inst._defaults.timezoneList&&(timezoneList=tp_inst._defaults.timezoneList);var tzl=timezoneList.length,tzi=0,tzv=null;if(tzl>0&&"object"!=typeof timezoneList[0])for(;tzl>tzi;tzi++)tzv=timezoneList[tzi],timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)};return tp_inst._defaults.timezoneList=timezoneList,tp_inst.timezone=null!==tp_inst._defaults.timezone?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):-1*(new Date).getTimezoneOffset(),tp_inst.hour=tp_inst._defaults.hour<tp_inst._defaults.hourMin?tp_inst._defaults.hourMin:tp_inst._defaults.hour>tp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour,tp_inst.minute=tp_inst._defaults.minute<tp_inst._defaults.minuteMin?tp_inst._defaults.minuteMin:tp_inst._defaults.minute>tp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute,tp_inst.second=tp_inst._defaults.second<tp_inst._defaulLine truncated
|
||||
i.hour=t?t.getHours():s.hour,i.minute=t?t.getMinutes():s.minute,i.second=t?t.getSeconds():s.second,i.millisec=t?t.getMilliseconds():s.millisec,i.microsec=t?t.getMicroseconds():s.microsec,i._limitMinMaxDateTime(e,!0),i._onTimeChange(),i._updateDateTime(e)}},$.datepicker._setTimeDatepicker=function(e,t,i){var s=this._getInst(e);if(s){var a=this._get(s,"timepicker");if(a){this._setDateFromField(s);var n;t&&("string"==typeof t?(a._parseTime(t,i),n=new Date,n.setHours(a.hour,a.minute,a.second,a.millisec),n.setMicroseconds(a.microsec)):(n=new Date(t.getTime()),n.setMicroseconds(t.getMicroseconds())),"Invalid Date"==""+n&&(n=void 0),this._setTime(s,n))}}},$.datepicker._base_setDateDatepicker=$.datepicker._setDateDatepicker,$.datepicker._setDateDatepicker=function(e,t){var i=this._getInst(e),s=t;if(i){"string"==typeof t&&(s=new Date(t),s.getTime()||(this._base_setDateDatepicker.apply(this,arguments),s=$(e).datepicker("getDate")));var a,n=this._get(i,"timepicker");s instanceof Date?(a=new Date(s.getTime()),a.setMicroseconds(s.getMicroseconds())):a=s,n&&a&&(n.support.timezone||null!==n._defaults.timezone||(n.timezone=-1*a.getTimezoneOffset()),s=$.timepicker.timezoneAdjust(s,n.timezone),a=$.timepicker.timezoneAdjust(a,n.timezone)),this._updateDatepicker(i),this._base_setDateDatepicker.apply(this,arguments),this._setTimeDatepicker(e,a,!0)}},$.datepicker._base_getDateDatepicker=$.datepicker._getDateDatepicker,$.datepicker._getDateDatepicker=function(e,t){var i=this._getInst(e);if(i){var s=this._get(i,"timepicker");if(s){void 0===i.lastVal&&this._setDateFromField(i,t);var a=this._getDate(i);return a&&s._parseTime($(e).val(),s.timeOnly)&&(a.setHours(s.hour,s.minute,s.second,s.millisec),a.setMicroseconds(s.microsec),null!=s.timezone&&(s.support.timezone||null!==s._defaults.timezone||(s.timezone=-1*a.getTimezoneOffset()),a=$.timepicker.timezoneAdjust(a,s.timezone))),a}return this._base_getDateDatepicker(e,t)}},$.datepicker._base_parseDate=$.datepicker.parseDate,$.datepicker.parseDate=function(e,t,i){var s;try{s=this._base_parseDate(e,t,i)}catch(a){if(!(a.indexOf(":")>=0))throw a;s=this._base_parseDate(e,t.substring(0,t.length-(a.length-a.indexOf(":")-2)),i),$.timepicker.log("Error parsing the date string: "+a+"\ndate string = "+t+"\ndate format = "+e)}return s},$.datepicker._base_formatDate=$.datepicker._formatDate,$.datepicker._formatDate=function(e){var t=this._get(e,"timepicker");return t?(t._updateDateTime(e),t.$input.val()):this._base_formatDate(e)},$.datepicker._base_optionDatepicker=$.datepicker._optionDatepicker,$.datepicker._optionDatepicker=function(e,t,i){var s,a=this._getInst(e);if(!a)return null;var n=this._get(a,"timepicker");if(n){var r,l,o,c,u=null,m=null,d=null,h=n._defaults.evnts,p={};if("string"==typeof t){if("minDate"===t||"minDateTime"===t)u=i;else if("maxDate"===t||"maxDateTime"===t)m=i;else if("onSelect"===t)d=i;else if(h.hasOwnProperty(t)){if(i===void 0)return h[t];p[t]=i,s={}}}else if("object"==typeof t){t.minDate?u=t.minDate:t.minDateTime?u=t.minDateTime:t.maxDate?m=t.maxDate:t.maxDateTime&&(m=t.maxDateTime);for(r in h)h.hasOwnProperty(r)&&t[r]&&(p[r]=t[r])}for(r in p)p.hasOwnProperty(r)&&(h[r]=p[r],s||(s=$.extend({},t)),delete s[r]);if(s&&isEmptyObject(s))return;if(u?(u=0===u?new Date:new Date(u),n._defaults.minDate=u,n._defaults.minDateTime=u):m?(m=0===m?new Date:new Date(m),n._defaults.maxDate=m,n._defaults.maxDateTime=m):d&&(n._defaults.onSelect=d),u||m)return c=$(e),o=c.datetimepicker("getDate"),l=this._base_optionDatepicker.call($.datepicker,e,s||t,i),c.datetimepicker("setDate",o),l}return void 0===i?this._base_optionDatepicker.call($.datepicker,e,t):this._base_optionDatepicker.call($.datepicker,e,s||t,i)};var isEmptyObject=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0},extendRemove=function(e,t){$.extend(e,t);for(var i in t)(null===t[i]||void 0===t[i])&&(e[i]=t[i]);return e},detectSupport=function(e){var t=e.replace(/'.*?'/g,"").toLowerCase(),i=function(e,t){return-1!==e.indexOf(t)?!0:!1};return{hour:i(t,"h"),minute:i(t,"m"),second:i(t,"s"),millisec:i(t,"l"),microsec:i(t,"c"),timezone:i(t,"z"),ampm:i(t,"t")&&i(e,"h"),iso8601:i(e,"Z")}},convert24to12=function(e){return e%=12,0===e&&(e=12),e+""},computeEffectiveSetting=function(e,t){return e&&e[t]?e[t]:$.timepicker._defaults[t]},splitDateTime=function(e,t){var i=computeEffectiveSetting(t,"separator"),s=computeEffectiveSetting(t,"timeFormat"),a=s.split(i),n=a.length,r=e.split(i),l=r.length;return l>1?{dateString:r.splice(0,l-n).join(i),timeString:r.splice(0,n).join(i)}:{dateString:e,timeString:""}},parseDateTimeInternal=function(e,t,i,s,a){var n,r,l;if(r=splitDateTime(i,a),n=$.datepicker._base_parseDate(e,r.dateString,s),""===r.timeString)return{date:n};if(l=$.datepicker.parseTime(t,r.timeString,a),!l)throw"Wrong time format";return{date:n,timeObj:l}},selectLocalTimezone=function(e,t){if(e&&e.timezone_select){var i=t||new Date;e.timezone_select.val(-i.getTimezoneOffset())}};$.timepicker=new Timepicker,$.timepicker.timezLine truncated
|
||||
@@ -0,0 +1,71 @@
|
||||
/* global google, jQuery */
|
||||
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Callback function for Google Maps Lazy Load library to display map
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function displayMap()
|
||||
{
|
||||
var $container = $( this ),
|
||||
options = $container.data( 'map_options' );
|
||||
|
||||
var mapOptions = options.js_options,
|
||||
center = new google.maps.LatLng( options.latitude, options.longitude ),
|
||||
map;
|
||||
|
||||
switch ( mapOptions.mapTypeId )
|
||||
{
|
||||
case 'ROADMAP':
|
||||
mapOptions.mapTypeId = google.maps.MapTypeId.ROADMAP;
|
||||
break;
|
||||
case 'SATELLITE':
|
||||
mapOptions.mapTypeId = google.maps.MapTypeId.SATELLITE;
|
||||
break;
|
||||
case 'HYBRID':
|
||||
mapOptions.mapTypeId = google.maps.MapTypeId.HYBRID;
|
||||
break;
|
||||
case 'TERRAIN':
|
||||
mapOptions.mapTypeId = google.maps.MapTypeId.TERRAIN;
|
||||
break;
|
||||
}
|
||||
mapOptions.center = center;
|
||||
map = new google.maps.Map( this, mapOptions );
|
||||
|
||||
// Set marker
|
||||
if ( options.marker )
|
||||
{
|
||||
var marker = new google.maps.Marker( {
|
||||
position: center,
|
||||
map : map
|
||||
} );
|
||||
|
||||
// Set marker title
|
||||
if ( options.marker_title )
|
||||
{
|
||||
marker.setTitle( options.marker_title );
|
||||
}
|
||||
}
|
||||
|
||||
// Set info window
|
||||
if ( options.info_window )
|
||||
{
|
||||
var infoWindow = new google.maps.InfoWindow( {
|
||||
content : options.info_window,
|
||||
minWidth: 200
|
||||
} );
|
||||
|
||||
google.maps.event.addListener( marker, 'click', function ()
|
||||
{
|
||||
infoWindow.open( map, marker );
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
// Loop through all map instances and display them
|
||||
$( '.mashsb-rwmb-map-canvas' ).each( displayMap );
|
||||
} );
|
||||
@@ -0,0 +1,227 @@
|
||||
(function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
// Use function construction to store map & DOM elements separately for each instance
|
||||
var MapField = function ( $container )
|
||||
{
|
||||
this.$container = $container;
|
||||
};
|
||||
|
||||
// Use prototype for better performance
|
||||
MapField.prototype = {
|
||||
// Initialize everything
|
||||
init : function ()
|
||||
{
|
||||
this.initDomElements();
|
||||
this.initMapElements();
|
||||
|
||||
this.initMarkerPosition();
|
||||
this.addListeners();
|
||||
this.autocomplete();
|
||||
},
|
||||
|
||||
// Initialize DOM elements
|
||||
initDomElements : function ()
|
||||
{
|
||||
this.canvas = this.$container.find( '.mashsb-rwmb-map-canvas' )[0];
|
||||
this.$coordinate = this.$container.find( '.mashsb-rwmb-map-coordinate' );
|
||||
this.$findButton = this.$container.find( '.mashsb-rwmb-map-goto-address-button' );
|
||||
this.addressField = this.$findButton.val();
|
||||
},
|
||||
|
||||
// Initialize map elements
|
||||
initMapElements : function ()
|
||||
{
|
||||
var defaultLoc = $( this.canvas ).data( 'default-loc' ),
|
||||
latLng;
|
||||
|
||||
defaultLoc = defaultLoc ? defaultLoc.split( ',' ) : [53.346881, -6.258860];
|
||||
latLng = new google.maps.LatLng( defaultLoc[0], defaultLoc[1] ); // Initial position for map
|
||||
|
||||
this.map = new google.maps.Map( this.canvas, {
|
||||
center : latLng,
|
||||
zoom : 14,
|
||||
streetViewControl: 0,
|
||||
mapTypeId : google.maps.MapTypeId.ROADMAP
|
||||
} );
|
||||
this.marker = new google.maps.Marker( { position: latLng, map: this.map, draggable: true } );
|
||||
this.geocoder = new google.maps.Geocoder();
|
||||
},
|
||||
|
||||
// Initialize marker position
|
||||
initMarkerPosition: function ()
|
||||
{
|
||||
var coord = this.$coordinate.val(),
|
||||
l,
|
||||
zoom;
|
||||
|
||||
if ( coord )
|
||||
{
|
||||
l = coord.split( ',' );
|
||||
this.marker.setPosition( new google.maps.LatLng( l[0], l[1] ) );
|
||||
|
||||
zoom = l.length > 2 ? parseInt( l[2], 10 ) : 14;
|
||||
|
||||
this.map.setCenter( this.marker.position );
|
||||
this.map.setZoom( zoom );
|
||||
}
|
||||
else if ( this.addressField )
|
||||
{
|
||||
this.geocodeAddress();
|
||||
}
|
||||
},
|
||||
|
||||
// Add event listeners for 'click' & 'drag'
|
||||
addListeners : function ()
|
||||
{
|
||||
var that = this;
|
||||
google.maps.event.addListener( this.map, 'click', function ( event )
|
||||
{
|
||||
that.marker.setPosition( event.latLng );
|
||||
that.updateCoordinate( event.latLng );
|
||||
} );
|
||||
google.maps.event.addListener( this.marker, 'drag', function ( event )
|
||||
{
|
||||
that.updateCoordinate( event.latLng );
|
||||
} );
|
||||
|
||||
this.$findButton.on( 'click', function ()
|
||||
{
|
||||
that.geocodeAddress();
|
||||
return false;
|
||||
} );
|
||||
|
||||
/**
|
||||
* Add a custom event that allows other scripts to refresh the maps when needed
|
||||
* For example: when maps is in tabs or hidden div (this is known issue of Google Maps)
|
||||
*
|
||||
* @see https://developers.google.com/maps/documentation/javascript/reference
|
||||
* ('resize' Event)
|
||||
*/
|
||||
$( window ).on( 'rwmb_map_refresh', function()
|
||||
{
|
||||
that.refreshMap();
|
||||
} );
|
||||
|
||||
//Refresh on meta box hide and show
|
||||
$( document ).on( 'postbox-toggled', function() {
|
||||
that.refreshMap();
|
||||
} );
|
||||
},
|
||||
|
||||
refreshMap: function()
|
||||
{
|
||||
var zoom = this.map.getZoom(),
|
||||
center = this.map.getCenter();
|
||||
|
||||
if ( this.map )
|
||||
{
|
||||
google.maps.event.trigger( this.map, 'resize' );
|
||||
this.map.setZoom( zoom );
|
||||
this.map.setCenter( center );
|
||||
}
|
||||
},
|
||||
|
||||
// Autocomplete address
|
||||
autocomplete : function ()
|
||||
{
|
||||
var that = this;
|
||||
|
||||
// No address field or more than 1 address fields, ignore
|
||||
if ( !this.addressField || this.addressField.split( ',' ).length > 1 )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$( '#' + this.addressField ).autocomplete( {
|
||||
source: function ( request, response )
|
||||
{
|
||||
that.geocoder.geocode( {
|
||||
'address': request.term
|
||||
}, function ( results )
|
||||
{
|
||||
response( $.map( results, function ( item )
|
||||
{
|
||||
return {
|
||||
label : item.formatted_address,
|
||||
value : item.formatted_address,
|
||||
latitude : item.geometry.location.lat(),
|
||||
longitude: item.geometry.location.lng()
|
||||
};
|
||||
} ) );
|
||||
} );
|
||||
},
|
||||
select: function ( event, ui )
|
||||
{
|
||||
var latLng = new google.maps.LatLng( ui.item.latitude, ui.item.longitude );
|
||||
|
||||
that.map.setCenter( latLng );
|
||||
that.marker.setPosition( latLng );
|
||||
that.updateCoordinate( latLng );
|
||||
}
|
||||
} );
|
||||
},
|
||||
|
||||
// Update coordinate to input field
|
||||
updateCoordinate : function ( latLng )
|
||||
{
|
||||
this.$coordinate.val( latLng.lat() + ',' + latLng.lng() );
|
||||
},
|
||||
|
||||
// Find coordinates by address
|
||||
// Find coordinates by address
|
||||
geocodeAddress : function ()
|
||||
{
|
||||
var address,
|
||||
addressList = [],
|
||||
fieldList = this.addressField.split( ',' ),
|
||||
loop,
|
||||
that = this;
|
||||
|
||||
for ( loop = 0; loop < fieldList.length; loop++ )
|
||||
{
|
||||
addressList[loop] = jQuery( '#' + fieldList[loop] ).val();
|
||||
}
|
||||
|
||||
address = addressList.join( ',' ).replace( /\n/g, ',' ).replace( /,,/g, ',' );
|
||||
|
||||
if ( address )
|
||||
{
|
||||
this.geocoder.geocode( { 'address': address }, function ( results, status )
|
||||
{
|
||||
if ( status === google.maps.GeocoderStatus.OK )
|
||||
{
|
||||
that.map.setCenter( results[0].geometry.location );
|
||||
that.marker.setPosition( results[0].geometry.location );
|
||||
that.updateCoordinate( results[0].geometry.location );
|
||||
}
|
||||
} );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$( function ()
|
||||
{
|
||||
$( '.mashsb-rwmb-map-field' ).each( function ()
|
||||
{
|
||||
var field = new MapField( $( this ) );
|
||||
field.init();
|
||||
|
||||
$( this ).data( 'mapController', field );
|
||||
|
||||
} );
|
||||
|
||||
$( '.mashsb-rwmb-input' ).on( 'clone', function ()
|
||||
{
|
||||
$( '.mashsb-rwmb-map-field' ).each( function ()
|
||||
{
|
||||
var field = new MapField( $( this ) );
|
||||
field.init();
|
||||
|
||||
$( this ).data( 'mapController', field );
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
|
||||
})( jQuery );
|
||||
@@ -0,0 +1,451 @@
|
||||
window.rwmb = window.rwmb || {};
|
||||
|
||||
jQuery(function ($)
|
||||
{
|
||||
'use strict';
|
||||
|
||||
var views = rwmb.views = rwmb.views || {},
|
||||
MediaField, MediaList, MediaItem, MediaButton, MediaStatus;
|
||||
rwmb.test = 'spoon';
|
||||
|
||||
MediaList = views.MediaList = Backbone.View.extend({
|
||||
tagName: 'ul',
|
||||
className: 'mashsb-rwmb-media-list',
|
||||
addItemView: function (item)
|
||||
{
|
||||
if (!this.itemViews[item.cid])
|
||||
{
|
||||
this.itemViews[item.cid] = new this.itemView({
|
||||
model: item,
|
||||
collection: this.collection,
|
||||
props: this.props
|
||||
});
|
||||
}
|
||||
this.$el.append(this.itemViews[item.cid].el);
|
||||
},
|
||||
render: function ()
|
||||
{
|
||||
this.$el.empty();
|
||||
this.collection.each(this.addItemView);
|
||||
|
||||
},
|
||||
initialize: function (options)
|
||||
{
|
||||
var that = this;
|
||||
this.itemViews = {};
|
||||
this.props = options.props;
|
||||
this.itemView = options.itemView || MediaItem;
|
||||
|
||||
this.listenTo(this.collection, 'add', this.addItemView);
|
||||
|
||||
this.listenTo(this.collection, 'remove', function (item, collection)
|
||||
{
|
||||
if (this.itemViews[item.cid])
|
||||
{
|
||||
this.itemViews[item.cid].remove();
|
||||
delete this.itemViews[item.cid];
|
||||
}
|
||||
});
|
||||
|
||||
//Sort media using sortable
|
||||
this.initSort();
|
||||
|
||||
this.render();
|
||||
},
|
||||
initSort: function ()
|
||||
{
|
||||
this.$el.sortable({delay: 150});
|
||||
}
|
||||
});
|
||||
|
||||
MediaField = views.MediaField = Backbone.View.extend({
|
||||
initialize: function (options)
|
||||
{
|
||||
var that = this;
|
||||
this.$input = $(options.input);
|
||||
this.values = this.$input.val().split(',');
|
||||
this.props = new Backbone.Model(this.$el.data());
|
||||
this.props.set('fieldName', this.$input.attr('name'));
|
||||
|
||||
//Create collection
|
||||
this.collection = new wp.media.model.Attachments();
|
||||
|
||||
//Create views
|
||||
this.createList();
|
||||
this.createAddButton()
|
||||
this.createStatus();
|
||||
|
||||
|
||||
//Render
|
||||
this.render();
|
||||
|
||||
//Limit max files
|
||||
this.listenTo(this.collection, 'add', function (item, collection)
|
||||
{
|
||||
var maxFiles = this.props.get('maxFiles');
|
||||
if (maxFiles > 0 && this.collection.length > maxFiles)
|
||||
{
|
||||
this.collection.pop();
|
||||
}
|
||||
//Reset some styles
|
||||
if (this.collection.length === 1) {
|
||||
mashsb_reset_new(this);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//Load initial media
|
||||
if (!_.isEmpty(this.values))
|
||||
{
|
||||
this.collection.props.set({
|
||||
query: true,
|
||||
include: this.values,
|
||||
orderby: 'post__in',
|
||||
order: 'ASC',
|
||||
type: this.props.get('mimeType'),
|
||||
perPage: this.props.get('maxFiles') || -1
|
||||
});
|
||||
this.collection.more();
|
||||
|
||||
//Reset some styles after initial loading images
|
||||
if (this.collection.length === 1) {
|
||||
mashsb_reset_new(this);
|
||||
}
|
||||
}
|
||||
|
||||
//Listen for destroy event on input
|
||||
this.$input
|
||||
.on('remove', function () {
|
||||
if (that.props.get('forceDelete'))
|
||||
{
|
||||
_.each(_.clone(that.collection.models), function (model)
|
||||
{
|
||||
model.destroy();
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
createList: function ()
|
||||
{
|
||||
this.list = new MediaList({collection: this.collection, props: this.props});
|
||||
},
|
||||
createAddButton: function ()
|
||||
{
|
||||
this.addButton = new MediaButton({collection: this.collection, props: this.props});
|
||||
},
|
||||
createStatus: function ()
|
||||
{
|
||||
this.status = new MediaStatus({collection: this.collection, props: this.props});
|
||||
},
|
||||
render: function ()
|
||||
{
|
||||
//Empty then add parts
|
||||
this.$el
|
||||
.empty()
|
||||
.append(
|
||||
this.list.el,
|
||||
this.addButton.el,
|
||||
this.status.el
|
||||
);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
MediaStatus = views.MediaStatus = Backbone.View.extend({
|
||||
tagName: 'span',
|
||||
className: 'mashsb-rwmb-media-status',
|
||||
template: wp.template('mashsb-rwmb-media-status'),
|
||||
initialize: function (options)
|
||||
{
|
||||
this.props = options.props;
|
||||
this.listenTo(this.collection, 'add remove reset', this.render);
|
||||
this.render();
|
||||
},
|
||||
render: function ()
|
||||
{
|
||||
var data = {
|
||||
items: this.collection.length,
|
||||
maxFiles: this.props.get('maxFiles')
|
||||
};
|
||||
this.$el.html(this.template(data));
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
MediaButton = views.MediaButton = Backbone.View.extend({
|
||||
className: 'mashsb-rwmb-add-media button',
|
||||
tagName: 'a',
|
||||
events: {
|
||||
click: function ()
|
||||
{
|
||||
var models = this.collection.models;
|
||||
|
||||
// Destroy the previous collection frame.
|
||||
if (this._frame)
|
||||
{
|
||||
//this.stopListening( this._frame );
|
||||
this._frame.dispose();
|
||||
}
|
||||
|
||||
this._frame = wp.media({
|
||||
className: 'media-frame mashsb-rwmb-media-frame',
|
||||
multiple: true,
|
||||
title: 'Select Media',
|
||||
editing: true,
|
||||
library: {
|
||||
type: this.props.get('mimeType')
|
||||
}
|
||||
});
|
||||
|
||||
this._frame.on('select', function ()
|
||||
{
|
||||
var selection = this._frame.state().get('selection');
|
||||
this.collection.add(selection.models);
|
||||
mashsb_reset_remove(this);
|
||||
}, this);
|
||||
|
||||
this._frame.open();
|
||||
}
|
||||
},
|
||||
render: function ()
|
||||
{
|
||||
this.$el.text(i18nRwmbMedia.add);
|
||||
return this;
|
||||
},
|
||||
initialize: function (options)
|
||||
{
|
||||
this.props = options.props;
|
||||
this.listenTo(this.collection, 'add remove reset', function ()
|
||||
{
|
||||
var maxFiles = this.props.get('maxFiles');
|
||||
|
||||
if (maxFiles > 0)
|
||||
{
|
||||
this.$el.toggle(this.collection.length < maxFiles);
|
||||
}
|
||||
});
|
||||
|
||||
this.render();
|
||||
}
|
||||
});
|
||||
|
||||
MediaItem = views.MediaItem = Backbone.View.extend({
|
||||
tagName: 'li',
|
||||
className: 'mashsb-rwmb-media-item',
|
||||
template: wp.template('mashsb-rwmb-media-item'),
|
||||
initialize: function (options)
|
||||
{
|
||||
this.props = options.props;
|
||||
this.render();
|
||||
this.listenTo(this.model, 'destroy', function (model)
|
||||
{
|
||||
this.collection.remove(this.model);
|
||||
})
|
||||
.listenTo(this.model, 'change', function ()
|
||||
{
|
||||
this.render();
|
||||
});
|
||||
},
|
||||
events: {
|
||||
'click .mashsb-rwmb-remove-media': function (e)
|
||||
{
|
||||
this.collection.remove(this.model);
|
||||
if (this.props.get('forceDelete'))
|
||||
{
|
||||
this.model.destroy();
|
||||
}
|
||||
mashsb_reset_remove(this);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
render: function ()
|
||||
{
|
||||
var attrs = _.clone(this.model.attributes);
|
||||
attrs.fieldName = this.props.get('fieldName');
|
||||
this.$el.html(this.template(attrs));
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Initialize media fields
|
||||
* @return void
|
||||
*/
|
||||
function initMediaField()
|
||||
{
|
||||
new MediaField({input: this, el: $(this).siblings('div.mashsb-rwmb-media-view')});
|
||||
}
|
||||
|
||||
|
||||
$(':input.mashsb-rwmb-file_advanced').each(initMediaField);
|
||||
$('.mashsb-rwmb-input')
|
||||
.on('clone', ':input.mashsb-rwmb-file_advanced', initMediaField);
|
||||
});
|
||||
|
||||
|
||||
function mashsb_reset_remove(elem) {
|
||||
console.log(elem);
|
||||
jQuery(elem.el).prev().css({'height': '100%'});
|
||||
jQuery(elem.el).prev().css({'background-image': 'none'});
|
||||
jQuery(elem.el).prev().css({'background-color': '#fff'});
|
||||
}
|
||||
function mashsb_reset_new(elem) {
|
||||
selector = jQuery(elem.el).children('ul');
|
||||
|
||||
selector.css({'height': '100%'});
|
||||
jQuery(elem.el.firstChild).css({'background-image': 'none'});
|
||||
jQuery(elem.el.firstChild).css({'background-color': '#fff'});
|
||||
}
|
||||
|
||||
/**
|
||||
* Remaining og:title characters
|
||||
*
|
||||
* @returns jQuery
|
||||
*/
|
||||
function mashsb_remaining_og_title() {
|
||||
var og_title = jQuery('#mashsb_meta .mashsb-og-title textarea').val();
|
||||
var remaining = 95 - og_title.length;
|
||||
if (og_title.length > 0 && remaining >= 0) {
|
||||
jQuery('#mashsb_meta .mashsb-og-title .mashsb_counter').removeClass('mashsb_exceeded');
|
||||
} else if (og_title.length > 0 && remaining < 0) {
|
||||
jQuery('#mashsb_meta .mashsb-og-title .mashsb_counter').addClass('mashsb_exceeded');
|
||||
} else {
|
||||
jQuery('#mashsb_meta .mashsb-og-title .mashsb_counter').removeClass('mashsb_exceeded');
|
||||
}
|
||||
jQuery('#mashsb_meta .mashsb-og-title .mashsb_remaining').html(remaining);
|
||||
}
|
||||
/**
|
||||
* Remaining og:description characters
|
||||
*
|
||||
* @returns jQuery
|
||||
*/
|
||||
function mashsb_remaining_og_desc() {
|
||||
var og_desc = jQuery('#mashsb_meta .mashsb-og-desc textarea').val();
|
||||
var remaining = 297 - og_desc.length;
|
||||
if (og_desc.length > 0 && remaining >= 0) {
|
||||
jQuery('#mashsb_meta .mashsb-og-desc .mashsb_counter').removeClass('mashsb_exceeded');
|
||||
} else if (og_desc.length > 0 && remaining < 0) {
|
||||
jQuery('#mashsb_meta .mashsb-og-desc .mashsb_counter').addClass('mashsb_exceeded');
|
||||
} else {
|
||||
jQuery('#mashsb_meta .mashsb-og-desc .mashsb_counter').removeClass('mashsb_exceeded');
|
||||
}
|
||||
jQuery('#mashsb_meta .mashsb-og-desc .mashsb_remaining').html(remaining);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the length of tweet
|
||||
* included a 23 character shortened url
|
||||
*
|
||||
* @param string input
|
||||
* @returns int
|
||||
*/
|
||||
function mashsb_get_tweet_length(input) {
|
||||
var url = input.replace(/\(?(?:(http|https|ftp):\/\/)?(?:((?:[^\W\s]|\.|-|[:]{1})+)@{1})?((?:www.)?(?:[^\W\s]|\.|-)+[\.][^\W\s]{2,4}|localhost(?=\/)|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?::(\d*))?([\/]?[^\s\?]*[\/]{1})*(?:\/?([^\s\n\?\[\]\{\}\#]*(?:(?=\.)){1}|[^\s\n\?\[\]\{\}\.\#]*)?([\.]{1}[^\s\?\#]*)?)?(?:\?{1}([^\s\n\#\[\]]*))?([\#][^\s\n]*)?\)?/gi, '.......................');
|
||||
return url.length;
|
||||
}
|
||||
|
||||
jQuery(function ($) {
|
||||
|
||||
/**
|
||||
* Remaining twitter characters
|
||||
*
|
||||
* @returns jQuery
|
||||
*/
|
||||
function mashsb_remaining_twitter() {
|
||||
var tweet = $('#mashsb_meta .mashsb-custom-tweet textarea').val();
|
||||
var handle = $('#mashsb_twitter_handle').val();
|
||||
var shortened_post_url = 23; // Twitter is shortening all urls to 23 characters
|
||||
|
||||
if (handle !== 'undefined' && handle.length > 0) {
|
||||
var remaining = 280 - mashsb_get_tweet_length(tweet) - handle.length - shortened_post_url;
|
||||
} else {
|
||||
var remaining = 280 - mashsb_get_tweet_length(tweet) - shortened_post_url;
|
||||
}
|
||||
if (tweet.length > 0 && remaining >= 0) {
|
||||
$('#mashsb_meta .mashsb-custom-tweet .mashsb_counter').removeClass('mashsb_exceeded');
|
||||
}
|
||||
if (tweet.length > 0 && remaining < 0) {
|
||||
$('#mashsb_meta .mashsb-custom-tweet .mashsb_counter').addClass('mashsb_exceeded');
|
||||
} else {
|
||||
$('#mashsb_meta .mashsb-custom-tweet .mashsb_counter').removeClass('mashsb_exceeded');
|
||||
}
|
||||
$('#mashsb_meta .mashsb-custom-tweet .mashsb_remaining').html(remaining);
|
||||
}
|
||||
|
||||
|
||||
if ($('#mashsb_meta.postbox').length) {
|
||||
|
||||
// counter Social Media Title
|
||||
$('#mashsb_meta #mashsb_og_title').after('<div class="mashsb_counter"><span class="mashsb_remaining">60</span> Characters Remaining</div>');
|
||||
|
||||
// counter Social Media Description
|
||||
$('#mashsb_meta #mashsb_og_description').after('<div class="mashsb_counter"><span class="mashsb_remaining">150</span> Characters Remaining</div>');
|
||||
|
||||
// counter Twitter Box
|
||||
$('#mashsb_meta #mashsb_custom_tweet').after('<div class="mashsb_counter"><span class="mashsb_remaining">118</span> Characters Remaining</div>');
|
||||
|
||||
|
||||
mashsb_remaining_og_title();
|
||||
$('#mashsb_meta .mashsb-og-title textarea').on('input', function () {
|
||||
mashsb_remaining_og_title();
|
||||
});
|
||||
|
||||
mashsb_remaining_og_desc();
|
||||
$('#mashsb_meta .mashsb-og-desc textarea').on('input', function () {
|
||||
mashsb_remaining_og_desc();
|
||||
});
|
||||
|
||||
mashsb_remaining_twitter();
|
||||
$('#mashsb_custom_tweet').on('input', function () {
|
||||
mashsb_remaining_twitter();
|
||||
});
|
||||
|
||||
|
||||
var og_image_width = $('#mashsb_meta .mashsb-rwmb-field.mashsb-rwmb-image_advanced-wrapper.mashsb-og-image .mashsb-rwmb-input').width();
|
||||
var og_image_height = og_image_width * (1 / 1.91);
|
||||
|
||||
var pinterest_width = $('#mashsb_meta .mashsb-rwmb-field.mashsb-rwmb-image_advanced-wrapper.mashsb-pinterest-image .mashsb-rwmb-input').width();
|
||||
var pinterest_height = pinterest_width * (3 / 2);
|
||||
|
||||
$('#mashsb_meta').prepend('<style>#mashsb_meta .mashsb-rwmb-field.mashsb-rwmb-image_advanced-wrapper.mashsb-og-image .mashsb-rwmb-input ul{height:' + og_image_height + 'px;}</style>');
|
||||
$('#mashsb_meta').prepend('<style>#mashsb_meta .mashsb-rwmb-field.mashsb-rwmb-image_advanced-wrapper.mashsb-pinterest-image .mashsb-rwmb-input ul{height:' + pinterest_height + 'px;}</style>');
|
||||
|
||||
}
|
||||
|
||||
|
||||
// show / hide helper description
|
||||
$('.mashsb-helper').click(function (e) {
|
||||
e.preventDefault();
|
||||
var icon = $(this),
|
||||
bubble = $(this).next();
|
||||
|
||||
// Close any that are already open
|
||||
$('.mashsb-message').not(bubble).hide();
|
||||
|
||||
var position = icon.position();
|
||||
if (bubble.hasClass('bottom')) {
|
||||
bubble.css({
|
||||
'left': (position.left - bubble.width() / 2) + 'px',
|
||||
'top': (position.top + icon.height() + 9) + 'px'
|
||||
});
|
||||
} else {
|
||||
bubble.css({
|
||||
'left': (position.left + icon.width() + 9) + 'px',
|
||||
'top': (position.top + icon.height() / 2 - 18) + 'px'
|
||||
});
|
||||
}
|
||||
|
||||
bubble.toggle();
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
$('body').click(function () {
|
||||
$('.mashsb-message').hide();
|
||||
});
|
||||
|
||||
$('.mashsb-message').click(function (e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
}(jQuery));
|
||||
@@ -0,0 +1,24 @@
|
||||
jQuery( function( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
$( '.mashsb-rwmb-oembed-wrapper .spinner' ).hide();
|
||||
|
||||
$( 'body' ).on( 'click', '.mashsb-rwmb-oembed-wrapper .show-embed', function() {
|
||||
var $this = $( this ),
|
||||
$spinner = $this.siblings( '.spinner' ),
|
||||
data = {
|
||||
action: 'rwmb_get_embed',
|
||||
url: $this.siblings( 'input' ).val()
|
||||
};
|
||||
|
||||
$spinner.show();
|
||||
$.post( ajaxurl, data, function( r )
|
||||
{
|
||||
$spinner.hide();
|
||||
$this.siblings( '.embed-code' ).html( r.data );
|
||||
}, 'json' );
|
||||
|
||||
return false;
|
||||
} );
|
||||
} );
|
||||
@@ -0,0 +1,23 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Update color picker element
|
||||
* Used for static & dynamic added elements (when clone)
|
||||
*/
|
||||
function update()
|
||||
{
|
||||
var $this = $( this ),
|
||||
$output = $this.siblings( '.mashsb-rwmb-output' );
|
||||
|
||||
$this.on( 'input propertychange change', function( e )
|
||||
{
|
||||
$output.html( $this.val() );
|
||||
} );
|
||||
|
||||
}
|
||||
|
||||
$( ':input.mashsb-rwmb-range' ).each( update );
|
||||
$( '.mashsb-rwmb-input' ).on( 'clone', 'input.mashsb-rwmb-range', update );
|
||||
} );
|
||||
@@ -0,0 +1,23 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Turn select field into beautiful dropdown with select2 library
|
||||
* This function is called when document ready and when clone button is clicked (to update the new cloned field)
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function update()
|
||||
{
|
||||
var $this = $( this ),
|
||||
options = $this.data( 'options' );
|
||||
$this.siblings( '.select2-container' ).remove();
|
||||
$this.show().select2( options );
|
||||
|
||||
rwmbSelect.bindEvents( $this );
|
||||
}
|
||||
|
||||
$( ':input.mashsb-rwmb-select_advanced' ).each( update );
|
||||
$( '.mashsb-rwmb-input' ).on( 'clone', ':input.mashsb-rwmb-select_advanced', update );
|
||||
} );
|
||||
@@ -0,0 +1,22 @@
|
||||
jQuery( function( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
function update()
|
||||
{
|
||||
var $this = $( this ),
|
||||
val = $this.val(),
|
||||
$selected = $this.siblings( "[data-parent-id='" + val + "']" ),
|
||||
$notSelected = $this.parent().find( '.mashsb-rwmb-select-tree' ).not( $selected );
|
||||
|
||||
$selected.removeClass( 'hidden' );
|
||||
$notSelected
|
||||
.addClass( 'hidden' )
|
||||
.find( 'select' )
|
||||
.prop( 'selectedIndex', 0 );
|
||||
}
|
||||
|
||||
$( '.mashsb-rwmb-input' )
|
||||
.on( 'change', '.mashsb-rwmb-select-tree select', update )
|
||||
.on( 'clone', '.mashsb-rwmb-select-tree select', update );
|
||||
} );
|
||||
@@ -0,0 +1,84 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Object stores all necessary methods for select All/None actions
|
||||
* Assign to global variable so we can access to this object from select advanced field
|
||||
*/
|
||||
var select = window.rwmbSelect = {
|
||||
/**
|
||||
* Select all/none for select tag
|
||||
*
|
||||
* @param $input jQuery selector for input wrapper
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
selectAllNone: function ( $input )
|
||||
{
|
||||
var $element = $input.find( 'select' );
|
||||
|
||||
$input.on( 'click', '.mashsb-rwmb-select-all-none a', function ( e )
|
||||
{
|
||||
e.preventDefault();
|
||||
if ( 'all' == $( this ).data( 'type' ) )
|
||||
{
|
||||
var selected = [];
|
||||
$element.find( 'option' ).each( function ( i, e )
|
||||
{
|
||||
var $value = $( e ).attr( 'value' );
|
||||
|
||||
if ( $value != '' )
|
||||
{
|
||||
selected.push( $value );
|
||||
}
|
||||
} );
|
||||
$element.val( selected ).trigger( 'change' );
|
||||
}
|
||||
else
|
||||
{
|
||||
$element.val( '' );
|
||||
}
|
||||
} );
|
||||
},
|
||||
|
||||
/**
|
||||
* Add event listener for select all/none links when click
|
||||
*
|
||||
* @param $el jQuery element
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
bindEvents: function ( $el )
|
||||
{
|
||||
var $input = $el.closest( '.mashsb-rwmb-input' ),
|
||||
$clone = $input.find( '.mashsb-rwmb-clone' );
|
||||
|
||||
if ( $clone.length )
|
||||
{
|
||||
$clone.each( function ()
|
||||
{
|
||||
select.selectAllNone( $( this ) );
|
||||
} );
|
||||
}
|
||||
else
|
||||
{
|
||||
select.selectAllNone( $input );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Update select field when clicking clone button
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function update()
|
||||
{
|
||||
select.bindEvents( $( this ) );
|
||||
}
|
||||
|
||||
// Run for select field
|
||||
$( ':input.mashsb-rwmb-select' ).each( update );
|
||||
$( '.mashsb-rwmb-input' ).on( 'clone', ':input.mashsb-rwmb-select', update );
|
||||
} );
|
||||
@@ -0,0 +1,3 @@
|
||||
/*! Select2 4.0.2 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="الرجاء حذف "+t+" عناصر";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="الرجاء إضافة "+t+" عناصر";return n},loadingMore:function(){return"جاري تحميل نتائج إضافية..."},maximumSelected:function(e){var t="تستطيع إختيار "+e.maximum+" بنود فقط";return t},noResults:function(){return"لم يتم العثور على أي نتائج"},searching:function(){return"جاري البحث…"}}}),{define:e.define,require:e.require}})();
|
||||
@@ -0,0 +1,3 @@
|
||||
/*! Select2 4.0.2 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||
|
||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/az",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return t+" simvol silin"},inputTooShort:function(e){var t=e.minimum-e.input.length;return t+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(e){return"Sadəcə "+e.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"}}}),{define:e.define,require:e.require}})();
|
||||
Loaded 100 of 13389 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user