Upgrading timeEntry Libs to 2.0.1

This commit is contained in:
Nicholas Mayne
2014-08-08 17:47:34 +01:00
parent 2e334baa37
commit 53cff7a989
31 changed files with 1412 additions and 933 deletions

View File

@@ -258,6 +258,8 @@
<Content Include="Scripts\jquery-1.11.1.min.js" />
<Content Include="Scripts\jquery-migrate-1.2.1.js" />
<Content Include="Scripts\jquery-migrate-1.2.1.min.js" />
<Content Include="Scripts\jquery.plugin.js" />
<Content Include="Scripts\jquery.plugin.min.js" />
<Content Include="Scripts\timeentry\jquery.timeentry-ar.js" />
<Content Include="Scripts\timeentry\jquery.timeentry-ca.js" />
<Content Include="Scripts\timeentry\jquery.timeentry-cs.js" />

View File

@@ -61,6 +61,7 @@ namespace Orchard.jQuery {
manifest.DefineScript("jQueryUI_Menu").SetUrl("jquery.ui.menu.min.js", "jquery.ui.menu.js").SetVersion("1.9.2").SetDependencies("jQueryUI_Core", "jQueryUI_Widget", "jQueryUI_Position");
manifest.DefineScript("jQueryUtils").SetUrl("jquery.utils.js").SetDependencies("jQuery");
manifest.DefineScript("jQueryPlugin").SetUrl("jquery.plugin.min.js", "jquery.plugin.js").SetDependencies("jQuery");
manifest.DefineStyle("jQueryUI_Orchard").SetUrl("jquery-ui-1.9.2.custom.css").SetVersion("1.9.2");
manifest.DefineStyle("jQueryUI_DatePicker").SetUrl("ui.datepicker.css").SetDependencies("jQueryUI_Orchard").SetVersion("1.7.2");
@@ -73,8 +74,8 @@ namespace Orchard.jQuery {
manifest.DefineStyle("jQueryUI_Calendars_Picker").SetUrl("ui.calendars.picker.css").SetDependencies("jQueryUI_Orchard").SetVersion("1.2.1");
// jQuery Time Entry
manifest.DefineScript("jQueryTimeEntry").SetUrl("timeentry/jquery.timeentry.min.js", "timeentry/jquery.timeentry.js").SetDependencies("jQuery").SetVersion("1.5.2");
manifest.DefineStyle("jQueryTimeEntry").SetUrl("jquery.timeentry.css").SetVersion("1.5.2");
manifest.DefineScript("jQueryTimeEntry").SetUrl("timeentry/jquery.timeentry.min.js", "timeentry/jquery.timeentry.js").SetDependencies("jQueryPlugin").SetVersion("2.0.1");
manifest.DefineStyle("jQueryTimeEntry").SetUrl("jquery.timeentry.css").SetVersion("2.0.1");
// jQuery Date/Time Editor Enhancements
manifest.DefineStyle("jQueryDateTimeEditor").SetUrl("jquery-datetime-editor.css").SetDependencies("DateTimeEditor");

View File

@@ -0,0 +1,344 @@
/* Simple JavaScript Inheritance
* By John Resig http://ejohn.org/
* MIT Licensed.
*/
// Inspired by base2 and Prototype
(function(){
var initializing = false;
// The base JQClass implementation (does nothing)
window.JQClass = function(){};
// Collection of derived classes
JQClass.classes = {};
// Create a new JQClass that inherits from this class
JQClass.extend = function extender(prop) {
var base = this.prototype;
// Instantiate a base class (but only create the instance,
// don't run the init constructor)
initializing = true;
var prototype = new this();
initializing = false;
// Copy the properties over onto the new prototype
for (var name in prop) {
// Check if we're overwriting an existing function
prototype[name] = typeof prop[name] == 'function' &&
typeof base[name] == 'function' ?
(function(name, fn){
return function() {
var __super = this._super;
// Add a new ._super() method that is the same method
// but on the super-class
this._super = function(args) {
return base[name].apply(this, args || []);
};
var ret = fn.apply(this, arguments);
// The method only need to be bound temporarily, so we
// remove it when we're done executing
this._super = __super;
return ret;
};
})(name, prop[name]) :
prop[name];
}
// The dummy class constructor
function JQClass() {
// All construction is actually done in the init method
if (!initializing && this._init) {
this._init.apply(this, arguments);
}
}
// Populate our constructed prototype object
JQClass.prototype = prototype;
// Enforce the constructor to be what we expect
JQClass.prototype.constructor = JQClass;
// And make this class extendable
JQClass.extend = extender;
return JQClass;
};
})();
(function($) { // Ensure $, encapsulate
/** Abstract base class for collection plugins v1.0.1.
Written by Keith Wood (kbwood{at}iinet.com.au) December 2013.
Licensed under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
@module $.JQPlugin
@abstract */
JQClass.classes.JQPlugin = JQClass.extend({
/** Name to identify this plugin.
@example name: 'tabs' */
name: 'plugin',
/** Default options for instances of this plugin (default: {}).
@example defaultOptions: {
selectedClass: 'selected',
triggers: 'click'
} */
defaultOptions: {},
/** Options dependent on the locale.
Indexed by language and (optional) country code, with '' denoting the default language (English/US).
@example regionalOptions: {
'': {
greeting: 'Hi'
}
} */
regionalOptions: {},
/** Names of getter methods - those that can't be chained (default: []).
@example _getters: ['activeTab'] */
_getters: [],
/** Retrieve a marker class for affected elements.
@private
@return {string} The marker class. */
_getMarker: function() {
return 'is-' + this.name;
},
/** Initialise the plugin.
Create the jQuery bridge - plugin name <code>xyz</code>
produces <code>$.xyz</code> and <code>$.fn.xyz</code>. */
_init: function() {
// Apply default localisations
$.extend(this.defaultOptions, (this.regionalOptions && this.regionalOptions['']) || {});
// Camel-case the name
var jqName = camelCase(this.name);
// Expose jQuery singleton manager
$[jqName] = this;
// Expose jQuery collection plugin
$.fn[jqName] = function(options) {
var otherArgs = Array.prototype.slice.call(arguments, 1);
if ($[jqName]._isNotChained(options, otherArgs)) {
return $[jqName][options].apply($[jqName], [this[0]].concat(otherArgs));
}
return this.each(function() {
if (typeof options === 'string') {
if (options[0] === '_' || !$[jqName][options]) {
throw 'Unknown method: ' + options;
}
$[jqName][options].apply($[jqName], [this].concat(otherArgs));
}
else {
$[jqName]._attach(this, options);
}
});
};
},
/** Set default values for all subsequent instances.
@param options {object} The new default options.
@example $.plugin.setDefauls({name: value}) */
setDefaults: function(options) {
$.extend(this.defaultOptions, options || {});
},
/** Determine whether a method is a getter and doesn't permit chaining.
@private
@param name {string} The method name.
@param otherArgs {any[]} Any other arguments for the method.
@return {boolean} True if this method is a getter, false otherwise. */
_isNotChained: function(name, otherArgs) {
if (name === 'option' && (otherArgs.length === 0 ||
(otherArgs.length === 1 && typeof otherArgs[0] === 'string'))) {
return true;
}
return $.inArray(name, this._getters) > -1;
},
/** Initialise an element. Called internally only.
Adds an instance object as data named for the plugin.
@param elem {Element} The element to enhance.
@param options {object} Overriding settings. */
_attach: function(elem, options) {
elem = $(elem);
if (elem.hasClass(this._getMarker())) {
return;
}
elem.addClass(this._getMarker());
options = $.extend({}, this.defaultOptions, this._getMetadata(elem), options || {});
var inst = $.extend({name: this.name, elem: elem, options: options},
this._instSettings(elem, options));
elem.data(this.name, inst); // Save instance against element
this._postAttach(elem, inst);
this.option(elem, options);
},
/** Retrieve additional instance settings.
Override this in a sub-class to provide extra settings.
@param elem {jQuery} The current jQuery element.
@param options {object} The instance options.
@return {object} Any extra instance values.
@example _instSettings: function(elem, options) {
return {nav: elem.find(options.navSelector)};
} */
_instSettings: function(elem, options) {
return {};
},
/** Plugin specific post initialisation.
Override this in a sub-class to perform extra activities.
@param elem {jQuery} The current jQuery element.
@param inst {object} The instance settings.
@example _postAttach: function(elem, inst) {
elem.on('click.' + this.name, function() {
...
});
} */
_postAttach: function(elem, inst) {
},
/** Retrieve metadata configuration from the element.
Metadata is specified as an attribute:
<code>data-&lt;plugin name>="&lt;setting name>: '&lt;value>', ..."</code>.
Dates should be specified as strings in this format: 'new Date(y, m-1, d)'.
@private
@param elem {jQuery} The source element.
@return {object} The inline configuration or {}. */
_getMetadata: function(elem) {
try {
var data = elem.data(this.name.toLowerCase()) || '';
data = data.replace(/'/g, '"');
data = data.replace(/([a-zA-Z0-9]+):/g, function(match, group, i) {
var count = data.substring(0, i).match(/"/g); // Handle embedded ':'
return (!count || count.length % 2 === 0 ? '"' + group + '":' : group + ':');
});
data = $.parseJSON('{' + data + '}');
for (var name in data) { // Convert dates
var value = data[name];
if (typeof value === 'string' && value.match(/^new Date\((.*)\)$/)) {
data[name] = eval(value);
}
}
return data;
}
catch (e) {
return {};
}
},
/** Retrieve the instance data for element.
@param elem {Element} The source element.
@return {object} The instance data or {}. */
_getInst: function(elem) {
return $(elem).data(this.name) || {};
},
/** Retrieve or reconfigure the settings for a plugin.
@param elem {Element} The source element.
@param name {object|string} The collection of new option values or the name of a single option.
@param [value] {any} The value for a single named option.
@return {any|object} If retrieving a single value or all options.
@example $(selector).plugin('option', 'name', value)
$(selector).plugin('option', {name: value, ...})
var value = $(selector).plugin('option', 'name')
var options = $(selector).plugin('option') */
option: function(elem, name, value) {
elem = $(elem);
var inst = elem.data(this.name);
if (!name || (typeof name === 'string' && value == null)) {
var options = (inst || {}).options;
return (options && name ? options[name] : options);
}
if (!elem.hasClass(this._getMarker())) {
return;
}
var options = name || {};
if (typeof name === 'string') {
options = {};
options[name] = value;
}
this._optionsChanged(elem, inst, options);
$.extend(inst.options, options);
},
/** Plugin specific options processing.
Old value available in <code>inst.options[name]</code>, new value in <code>options[name]</code>.
Override this in a sub-class to perform extra activities.
@param elem {jQuery} The current jQuery element.
@param inst {object} The instance settings.
@param options {object} The new options.
@example _optionsChanged: function(elem, inst, options) {
if (options.name != inst.options.name) {
elem.removeClass(inst.options.name).addClass(options.name);
}
} */
_optionsChanged: function(elem, inst, options) {
},
/** Remove all trace of the plugin.
Override <code>_preDestroy</code> for plugin-specific processing.
@param elem {Element} The source element.
@example $(selector).plugin('destroy') */
destroy: function(elem) {
elem = $(elem);
if (!elem.hasClass(this._getMarker())) {
return;
}
this._preDestroy(elem, this._getInst(elem));
elem.removeData(this.name).removeClass(this._getMarker());
},
/** Plugin specific pre destruction.
Override this in a sub-class to perform extra activities and undo everything that was
done in the <code>_postAttach</code> or <code>_optionsChanged</code> functions.
@param elem {jQuery} The current jQuery element.
@param inst {object} The instance settings.
@example _preDestroy: function(elem, inst) {
elem.off('.' + this.name);
} */
_preDestroy: function(elem, inst) {
}
});
/** Convert names from hyphenated to camel-case.
@private
@param value {string} The original hyphenated name.
@return {string} The camel-case version. */
function camelCase(name) {
return name.replace(/-([a-z])/g, function(match, group) {
return group.toUpperCase();
});
}
/** Expose the plugin base.
@namespace "$.JQPlugin" */
$.JQPlugin = {
/** Create a new collection plugin.
@memberof "$.JQPlugin"
@param [superClass='JQPlugin'] {string} The name of the parent class to inherit from.
@param overrides {object} The property/function overrides for the new class.
@example $.JQPlugin.createPlugin({
name: 'tabs',
defaultOptions: {selectedClass: 'selected'},
_initSettings: function(elem, options) { return {...}; },
_postAttach: function(elem, inst) { ... }
}); */
createPlugin: function(superClass, overrides) {
if (typeof superClass === 'object') {
overrides = superClass;
superClass = 'JQPlugin';
}
superClass = camelCase(superClass);
var className = camelCase(overrides.name);
JQClass.classes[className] = JQClass.classes[superClass].extend(overrides);
new JQClass.classes[className]();
}
};
})(jQuery);

View File

@@ -0,0 +1,4 @@
/** Abstract base class for collection plugins v1.0.1.
Written by Keith Wood (kbwood{at}iinet.com.au) December 2013.
Licensed under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license. */
(function(){var j=false;window.JQClass=function(){};JQClass.classes={};JQClass.extend=function extender(f){var g=this.prototype;j=true;var h=new this();j=false;for(var i in f){h[i]=typeof f[i]=='function'&&typeof g[i]=='function'?(function(d,e){return function(){var b=this._super;this._super=function(a){return g[d].apply(this,a||[])};var c=e.apply(this,arguments);this._super=b;return c}})(i,f[i]):f[i]}function JQClass(){if(!j&&this._init){this._init.apply(this,arguments)}}JQClass.prototype=h;JQClass.prototype.constructor=JQClass;JQClass.extend=extender;return JQClass}})();(function($){JQClass.classes.JQPlugin=JQClass.extend({name:'plugin',defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return'is-'+this.name},_init:function(){$.extend(this.defaultOptions,(this.regionalOptions&&this.regionalOptions[''])||{});var c=camelCase(this.name);$[c]=this;$.fn[c]=function(a){var b=Array.prototype.slice.call(arguments,1);if($[c]._isNotChained(a,b)){return $[c][a].apply($[c],[this[0]].concat(b))}return this.each(function(){if(typeof a==='string'){if(a[0]==='_'||!$[c][a]){throw'Unknown method: '+a;}$[c][a].apply($[c],[this].concat(b))}else{$[c]._attach(this,a)}})}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_isNotChained:function(a,b){if(a==='option'&&(b.length===0||(b.length===1&&typeof b[0]==='string'))){return true}return $.inArray(a,this._getters)>-1},_attach:function(a,b){a=$(a);if(a.hasClass(this._getMarker())){return}a.addClass(this._getMarker());b=$.extend({},this.defaultOptions,this._getMetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c);this._postAttach(a,c);this.option(a,b)},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||'';f=f.replace(/'/g,'"');f=f.replace(/([a-zA-Z0-9]+):/g,function(a,b,i){var c=f.substring(0,i).match(/"/g);return(!c||c.length%2===0?'"'+b+'":':b+':')});f=$.parseJSON('{'+f+'}');for(var g in f){var h=f[g];if(typeof h==='string'&&h.match(/^new Date\((.*)\)$/)){f[g]=eval(h)}}return f}catch(e){return{}}},_getInst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name);if(!b||(typeof b==='string'&&c==null)){var e=(d||{}).options;return(e&&b?e[b]:e)}if(!a.hasClass(this._getMarker())){return}var e=b||{};if(typeof b==='string'){e={};e[b]=c}this._optionsChanged(a,d,e);$.extend(d.options,e)},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a);if(!a.hasClass(this._getMarker())){return}this._preDestroy(a,this._getInst(a));a.removeData(this.name).removeClass(this._getMarker())},_preDestroy:function(a,b){}});function camelCase(c){return c.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}$.JQPlugin={createPlugin:function(a,b){if(typeof a==='object'){b=a;a='JQPlugin'}a=camelCase(a);var c=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b);new JQClass.classes[c]()}}})(jQuery);

View File

@@ -2,8 +2,8 @@
Arabic initialize for the jQuery time entry extension
Written by Mohammad Baydoun (mab@modbay.me). */
(function($) {
$.timeEntry.regional['ar'] = {show24Hours: false, separator: ':',
$.timeEntry.regionalOptions['ar'] = {show24Hours: false, separator: ':',
ampmPrefix: '', ampmNames: ['ص', 'م'],
spinnerTexts: ['الأن', 'الحقل السابق', 'الحقل التالي', 'زيادة', 'تنقيص']};
$.timeEntry.setDefaults($.timeEntry.regional['ar']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['ar']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Catalan initialisation for the jQuery time entry extension
Written by Gabriel Guzman (gabriel@josoft.com.ar). */
(function($) {
$.timeEntry.regional['ca'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['ca'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Ara', 'Camp anterior', 'Següent camp', 'Augmentar', 'Disminuir']};
$.timeEntry.setDefaults($.timeEntry.regional['ca']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['ca']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Czech initialisation for the jQuery time entry extension
Written by Stanislav Kurinec (stenly.kurinec@gmail.com) */
(function($) {
$.timeEntry.regional['cs'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['Dop', 'Odp'],
spinnerTexts: ['Nyní', 'Předchozí pole', 'Následující pole', 'Zvýšit', 'Snížit']};
$.timeEntry.setDefaults($.timeEntry.regional['cs']);
$.timeEntry.regionalOptions['cs'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['Dop', 'Odp'],
spinnerTexts: ['Nyní', 'Předchozí pole', 'Následující pole', 'Zvýšit', 'Snížit']};
$.timeEntry.setDefaults($.timeEntry.regionalOptions['cs']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
German initialisation for the jQuery time entry extension
Written by Eyk Schulz (eyk.schulz@gmx.net) */
(function($) {
$.timeEntry.regional['de'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['de'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Jetzt', 'vorheriges Feld', 'nächstes Feld', 'hoch', 'runter']};
$.timeEntry.setDefaults($.timeEntry.regional['de']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['de']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Spanish initialisation for the jQuery time entry extension
Written by diegok (diego@freekeylabs.com). */
(function($) {
$.timeEntry.regional['es'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['es'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Ahora', 'Campo anterior', 'Siguiente campo', 'Aumentar', 'Disminuir']};
$.timeEntry.setDefaults($.timeEntry.regional['es']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['es']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Persian initialisation for the jQuery time entry extension
translation by benyblack */
(function($) {
$.timeEntry.regional['fa'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['fa'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['ق.ظ', 'ب.ظ'],
spinnerTexts: ['اکنون', 'قبلی', 'بعدی', 'افزایش', 'کاهش']};
$.timeEntry.setDefaults($.timeEntry.regional['fa']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['fa']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
French initialisation for the jQuery time entry extension
Written by Keith Wood (kbwood@iprimus.com.au) June 2007. */
(function($) {
$.timeEntry.regional['fr'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['fr'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Maintenant', 'Précédent', 'Suivant', 'Augmenter', 'Diminuer']};
$.timeEntry.setDefaults($.timeEntry.regional['fr']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['fr']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Hungarian initialisation for the jQuery time entry extension
Written by Karaszi Istvan (raszi@spam.raszi.hu) */
(function($) {
$.timeEntry.regional['hu'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['hu'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['DE', 'DU'],
spinnerTexts: ['Most', 'Előző mező', 'Következő mező', 'Növel', 'Csökkent']};
$.timeEntry.setDefaults($.timeEntry.regional['hu']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['hu']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Icelandic initialisation for the jQuery time entry extension
Written by Már Örlygsson (http://mar.anomy.net/) */
(function($) {
$.timeEntry.regional['is'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['is'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['fh', 'eh'],
spinnerTexts: ['Núna', 'Fyrra svæði', 'Næsta svæði', 'Hækka', 'Lækka']};
$.timeEntry.setDefaults($.timeEntry.regional['is']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['is']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Italian initialisation for the jQuery time entry extension
Written by Apaella (apaella@gmail.com) June 2007. */
(function($) {
$.timeEntry.regional['it'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['it'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Adesso', 'Precedente', 'Successivo', 'Aumenta', 'Diminuisci']};
$.timeEntry.setDefaults($.timeEntry.regional['it']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['it']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Japanese initialisation for the jQuery time entry extension
Written by Yuuki Takahashi (yuuki&#64fb69.jp) */
(function($) {
$.timeEntry.regional['ja'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['ja'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['現在時刻', '前へ', '次へ', '増やす', '減らす']};
$.timeEntry.setDefaults($.timeEntry.regional['ja']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['ja']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Lithuanian initialisation for the jQuery time entry extension
Written by Andrej Andrejev */
(function($) {
$.timeEntry.regional['lt'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['lt'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Dabar', 'Ankstesnis laukas', 'Kitas laukas', 'Daugiau', 'Mažiau']};
$.timeEntry.setDefaults($.timeEntry.regional['lt']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['lt']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Latvian (UTF-8) initialisation for the jQuery $.timeEntry extension.
Written by Rihards Prieditis (rprieditis@gmail.com). */
(function($) {
$.timeEntry.regional['lv'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['lv'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Pašlaik', 'Iepriekšējais lauks', 'Nākamais lauks', 'Palielināt', 'Samazināt']};
$.timeEntry.setDefaults($.timeEntry.regional['lv']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['lv']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Dutch initialisation written for the jQuery time entry extension.
Glenn plas (glenn.plas@telenet.be) March 2008. */
(function($) {
$.timeEntry.regional['nl'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['nl'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Nu', 'Vorig veld', 'Volgend veld','Verhoog', 'Verlaag']};
$.timeEntry.setDefaults($.timeEntry.regional['nl']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['nl']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Polish initialisation for the jQuery time entry extension.
Polish translation by Jacek Wysocki (jacek.wysocki@gmail.com). */
(function($) {
$.timeEntry.regional['pl'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['pl'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Teraz', 'Poprzednie pole', 'Następne pole', 'Zwiększ wartość', 'Zmniejsz wartość']};
$.timeEntry.setDefaults($.timeEntry.regional['pl']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['pl']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Portuguese initialisation for the jQuery time entry extension
Written by Dino Sane (dino@asttra.com.br). */
(function($) {
$.timeEntry.regional['pt'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['pt'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Agora', 'Campo anterior', 'Campo Seguinte', 'Aumentar', 'Diminuir']};
$.timeEntry.setDefaults($.timeEntry.regional['pt']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['pt']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Romanian initialisation for the jQuery time entry extension
Written by Edmond L. (ll_edmond@walla.com) */
(function($) {
$.timeEntry.regional['ro'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['ro'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Acum', 'Campul Anterior', 'Campul Urmator', 'Mareste', 'Micsoreaza']};
$.timeEntry.setDefaults($.timeEntry.regional['ro']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['ro']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Russian (UTF-8) initialisation for the jQuery $.timeEntry extension.
Written by Andrew Stromnov (stromnov@gmail.com). */
(function($) {
$.timeEntry.regional['ru'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['ru'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Сейчас', 'Предыдущее поле', 'Следующее поле', 'Больше', 'Меньше']};
$.timeEntry.setDefaults($.timeEntry.regional['ru']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['ru']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Slovak initialisation for the jQuery time entry extension
Written by Vojtech Rinik (vojto@hmm.sk) */
(function($) {
$.timeEntry.regional['sk'] = {show24Hours: false, separator: ':',
$.timeEntry.regionalOptions['sk'] = {show24Hours: false, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Teraz', 'Predchádzajúce pole', 'Nasledujúce pole', 'Zvýšiť', 'Znížiť']};
$.timeEntry.setDefaults($.timeEntry.regional['sk']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['sk']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Swedish initialisation for the jQuery time entry extension.
Written by Anders Ekdahl ( anders@nomadiz.se). */
(function($) {
$.timeEntry.regional['sv'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['sv'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Nu', 'Förra fältet', 'Nästa fält', 'öka', 'minska']};
$.timeEntry.setDefaults($.timeEntry.regional['sv']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['sv']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Turkish initialisation for the jQuery time entry extension
Written by Vural Dinçer */
(function($) {
$.timeEntry.regional['tr'] = {show24Hours: true, separator: ':',
$.timeEntry.regionalOptions['tr'] = {show24Hours: true, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['şu an', 'önceki alan', 'sonraki alan', 'arttır', 'azalt']};
$.timeEntry.setDefaults($.timeEntry.regional['tr']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['tr']);
})(jQuery);

View File

@@ -2,9 +2,9 @@
Vietnamese template for the jQuery time entry extension
Written by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */
(function($) {
$.timeEntry.regional['vi'] = {show24Hours: false, separator: ':',
$.timeEntry.regionalOptions['vi'] = {show24Hours: false, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['Hiện tại', 'Mục trước', 'Mục sau', 'Tăng', 'Giảm']};
$.timeEntry.setDefaults($.timeEntry.regional['vi']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['vi']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Simplified Chinese initialisation for the jQuery time entry extension.
By Cloudream(cloudream@gmail.com) */
(function($) {
$.timeEntry.regional['zh-CN'] = {show24Hours: false, separator: ':',
$.timeEntry.regionalOptions['zh-CN'] = {show24Hours: false, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['当前', '左移', '右移', '加一', '减一']};
$.timeEntry.setDefaults($.timeEntry.regional['zh-CN']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['zh-CN']);
})(jQuery);

View File

@@ -2,8 +2,8 @@
Traditional Chinese initialisation for the jQuery time entry extension.
By Taian Su(taiansu@gmail.com) */
(function($) {
$.timeEntry.regional['zh-TW'] = {show24Hours: false, separator: ':',
$.timeEntry.regionalOptions['zh-TW'] = {show24Hours: false, separator: ':',
ampmPrefix: '', ampmNames: ['AM', 'PM'],
spinnerTexts: ['現在時刻', '上一個欄位', '下一個欄位', '增加', '减少']};
$.timeEntry.setDefaults($.timeEntry.regional['zh-TW']);
$.timeEntry.setDefaults($.timeEntry.regionalOptions['zh-TW']);
})(jQuery);

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
/* TimeEntry styles */
.timeEntry_control {
/* TimeEntry styles v2.0.0 */
.timeEntry-control {
vertical-align: middle;
margin-left: 2px;
}