Merging the Limesurvey 1.91+ branch of queXS in to the trunk
682
include/limesurvey/scripts/ajaxupload.js
Normal file
@@ -0,0 +1,682 @@
|
||||
/**
|
||||
* AJAX Upload ( http://valums.com/ajax-upload/ )
|
||||
* Copyright (c) Andrew Valums
|
||||
* Licensed under the MIT license
|
||||
*/
|
||||
(function () {
|
||||
/**
|
||||
* Attaches event to a dom element.
|
||||
* @param {Element} el
|
||||
* @param type event name
|
||||
* @param fn callback This refers to the passed element
|
||||
*/
|
||||
function addEvent(el, type, fn){
|
||||
if (el.addEventListener) {
|
||||
el.addEventListener(type, fn, false);
|
||||
} else if (el.attachEvent) {
|
||||
el.attachEvent('on' + type, function(){
|
||||
fn.call(el);
|
||||
});
|
||||
} else {
|
||||
throw new Error('not supported or DOM not loaded');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Attaches resize event to a window, limiting
|
||||
* number of event fired. Fires only when encounteres
|
||||
* delay of 100 after series of events.
|
||||
*
|
||||
* Some browsers fire event multiple times when resizing
|
||||
* http://www.quirksmode.org/dom/events/resize.html
|
||||
*
|
||||
* @param fn callback This refers to the passed element
|
||||
*/
|
||||
function addResizeEvent(fn){
|
||||
var timeout;
|
||||
|
||||
addEvent(window, 'resize', function(){
|
||||
if (timeout){
|
||||
clearTimeout(timeout);
|
||||
}
|
||||
timeout = setTimeout(fn, 100);
|
||||
});
|
||||
}
|
||||
|
||||
// Needs more testing, will be rewriten for next version
|
||||
// getOffset function copied from jQuery lib (http://jquery.com/)
|
||||
if (document.documentElement.getBoundingClientRect){
|
||||
// Get Offset using getBoundingClientRect
|
||||
// http://ejohn.org/blog/getboundingclientrect-is-awesome/
|
||||
var getOffset = function(el){
|
||||
var box = el.getBoundingClientRect();
|
||||
var doc = el.ownerDocument;
|
||||
var body = doc.body;
|
||||
var docElem = doc.documentElement; // for ie
|
||||
var clientTop = docElem.clientTop || body.clientTop || 0;
|
||||
var clientLeft = docElem.clientLeft || body.clientLeft || 0;
|
||||
|
||||
// In Internet Explorer 7 getBoundingClientRect property is treated as physical,
|
||||
// while others are logical. Make all logical, like in IE8.
|
||||
var zoom = 1;
|
||||
if (body.getBoundingClientRect) {
|
||||
var bound = body.getBoundingClientRect();
|
||||
zoom = (bound.right - bound.left) / body.clientWidth;
|
||||
}
|
||||
|
||||
if (zoom > 1) {
|
||||
clientTop = 0;
|
||||
clientLeft = 0;
|
||||
}
|
||||
|
||||
var top = box.top / zoom + (window.pageYOffset || docElem && docElem.scrollTop / zoom || body.scrollTop / zoom) - clientTop, left = box.left / zoom + (window.pageXOffset || docElem && docElem.scrollLeft / zoom || body.scrollLeft / zoom) - clientLeft;
|
||||
|
||||
return {
|
||||
top: top,
|
||||
left: left
|
||||
};
|
||||
};
|
||||
} else {
|
||||
// Get offset adding all offsets
|
||||
var getOffset = function(el){
|
||||
var top = 0, left = 0;
|
||||
do {
|
||||
top += el.offsetTop || 0;
|
||||
left += el.offsetLeft || 0;
|
||||
el = el.offsetParent;
|
||||
} while (el);
|
||||
|
||||
return {
|
||||
left: left,
|
||||
top: top
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns left, top, right and bottom properties describing the border-box,
|
||||
* in pixels, with the top-left relative to the body
|
||||
* @param {Element} el
|
||||
* @return {Object} Contains left, top, right,bottom
|
||||
*/
|
||||
function getBox(el){
|
||||
var left, right, top, bottom;
|
||||
var offset = getOffset(el);
|
||||
left = offset.left;
|
||||
top = offset.top;
|
||||
|
||||
right = left + el.offsetWidth;
|
||||
bottom = top + el.offsetHeight;
|
||||
|
||||
return {
|
||||
left: left,
|
||||
right: right,
|
||||
top: top,
|
||||
bottom: bottom
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper that takes object literal
|
||||
* and add all properties to element.style
|
||||
* @param {Element} el
|
||||
* @param {Object} styles
|
||||
*/
|
||||
function addStyles(el, styles){
|
||||
for (var name in styles) {
|
||||
if (styles.hasOwnProperty(name)) {
|
||||
el.style[name] = styles[name];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Function places an absolutely positioned
|
||||
* element on top of the specified element
|
||||
* copying position and dimentions.
|
||||
* @param {Element} from
|
||||
* @param {Element} to
|
||||
*/
|
||||
function copyLayout(from, to){
|
||||
var box = getBox(from);
|
||||
|
||||
addStyles(to, {
|
||||
position: 'absolute',
|
||||
left : box.left + 'px',
|
||||
top : box.top + 'px',
|
||||
width : from.offsetWidth + 'px',
|
||||
height : from.offsetHeight + 'px'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates and returns element from html chunk
|
||||
* Uses innerHTML to create an element
|
||||
*/
|
||||
var toElement = (function(){
|
||||
var div = document.createElement('div');
|
||||
return function(html){
|
||||
div.innerHTML = html;
|
||||
var el = div.firstChild;
|
||||
return div.removeChild(el);
|
||||
};
|
||||
})();
|
||||
|
||||
/**
|
||||
* Function generates unique id
|
||||
* @return unique id
|
||||
*/
|
||||
var getUID = (function(){
|
||||
var id = 0;
|
||||
return function(){
|
||||
return 'ValumsAjaxUpload' + id++;
|
||||
};
|
||||
})();
|
||||
|
||||
/**
|
||||
* Get file name from path
|
||||
* @param {String} file path to file
|
||||
* @return filename
|
||||
*/
|
||||
function fileFromPath(file){
|
||||
return file.replace(/.*(\/|\\)/, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get file extension lowercase
|
||||
* @param {String} file name
|
||||
* @return file extenstion
|
||||
*/
|
||||
function getExt(file){
|
||||
return (-1 !== file.indexOf('.')) ? file.replace(/.*[.]/, '') : '';
|
||||
}
|
||||
|
||||
function hasClass(el, name){
|
||||
var re = new RegExp('\\b' + name + '\\b');
|
||||
return re.test(el.className);
|
||||
}
|
||||
function addClass(el, name){
|
||||
if ( ! hasClass(el, name)){
|
||||
el.className += ' ' + name;
|
||||
}
|
||||
}
|
||||
function removeClass(el, name){
|
||||
var re = new RegExp('\\b' + name + '\\b');
|
||||
el.className = el.className.replace(re, '');
|
||||
}
|
||||
|
||||
function removeNode(el){
|
||||
el.parentNode.removeChild(el);
|
||||
}
|
||||
|
||||
/**
|
||||
* Easy styling and uploading
|
||||
* @constructor
|
||||
* @param button An element you want convert to
|
||||
* upload button. Tested dimentions up to 500x500px
|
||||
* @param {Object} options See defaults below.
|
||||
*/
|
||||
window.AjaxUpload = function(button, options){
|
||||
this._settings = {
|
||||
// Location of the server-side upload script
|
||||
action: 'upload.php',
|
||||
// File upload name
|
||||
name: 'userfile',
|
||||
// Select & upload multiple files at once FF3.6+, Chrome 4+
|
||||
multiple: false,
|
||||
// Additional data to send
|
||||
data: {},
|
||||
// Submit file as soon as it's selected
|
||||
autoSubmit: true,
|
||||
// The type of data that you're expecting back from the server.
|
||||
// html and xml are detected automatically.
|
||||
// Only useful when you are using json data as a response.
|
||||
// Set to "json" in that case.
|
||||
responseType: false,
|
||||
// Class applied to button when mouse is hovered
|
||||
hoverClass: 'hover',
|
||||
// Class applied to button when button is focused
|
||||
focusClass: 'focus',
|
||||
// Class applied to button when AU is disabled
|
||||
disabledClass: 'disabled',
|
||||
// When user selects a file, useful with autoSubmit disabled
|
||||
// You can return false to cancel upload
|
||||
onChange: function(file, extension){
|
||||
},
|
||||
// Callback to fire before file is uploaded
|
||||
// You can return false to cancel upload
|
||||
onSubmit: function(file, extension){
|
||||
},
|
||||
// Fired when file upload is completed
|
||||
// WARNING! DO NOT USE "FALSE" STRING AS A RESPONSE!
|
||||
onComplete: function(file, response){
|
||||
}
|
||||
};
|
||||
|
||||
// Merge the users options with our defaults
|
||||
for (var i in options) {
|
||||
if (options.hasOwnProperty(i)){
|
||||
this._settings[i] = options[i];
|
||||
}
|
||||
}
|
||||
|
||||
// button isn't necessary a dom element
|
||||
if (button.jquery){
|
||||
// jQuery object was passed
|
||||
button = button[0];
|
||||
} else if (typeof button == "string") {
|
||||
if (/^#.*/.test(button)){
|
||||
// If jQuery user passes #elementId don't break it
|
||||
button = button.slice(1);
|
||||
}
|
||||
|
||||
button = document.getElementById(button);
|
||||
}
|
||||
|
||||
if ( ! button || button.nodeType !== 1){
|
||||
throw new Error("Please make sure that you're passing a valid element");
|
||||
}
|
||||
|
||||
if ( button.nodeName.toUpperCase() == 'A'){
|
||||
// disable link
|
||||
addEvent(button, 'click', function(e){
|
||||
if (e && e.preventDefault){
|
||||
e.preventDefault();
|
||||
} else if (window.event){
|
||||
window.event.returnValue = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// DOM element
|
||||
this._button = button;
|
||||
// DOM element
|
||||
this._input = null;
|
||||
// If disabled clicking on button won't do anything
|
||||
this._disabled = false;
|
||||
|
||||
// if the button was disabled before refresh if will remain
|
||||
// disabled in FireFox, let's fix it
|
||||
this.enable();
|
||||
|
||||
this._rerouteClicks();
|
||||
};
|
||||
|
||||
// assigning methods to our class
|
||||
AjaxUpload.prototype = {
|
||||
setData: function(data){
|
||||
this._settings.data = data;
|
||||
},
|
||||
disable: function(){
|
||||
addClass(this._button, this._settings.disabledClass);
|
||||
this._disabled = true;
|
||||
|
||||
var nodeName = this._button.nodeName.toUpperCase();
|
||||
if (nodeName == 'INPUT' || nodeName == 'BUTTON'){
|
||||
this._button.setAttribute('disabled', 'disabled');
|
||||
}
|
||||
|
||||
// hide input
|
||||
if (this._input){
|
||||
if (this._input.parentNode) {
|
||||
// We use visibility instead of display to fix problem with Safari 4
|
||||
// The problem is that the value of input doesn't change if it
|
||||
// has display none when user selects a file
|
||||
this._input.parentNode.style.visibility = 'hidden';
|
||||
}
|
||||
}
|
||||
},
|
||||
enable: function(){
|
||||
removeClass(this._button, this._settings.disabledClass);
|
||||
this._button.removeAttribute('disabled');
|
||||
this._disabled = false;
|
||||
|
||||
},
|
||||
/**
|
||||
* Creates invisible file input
|
||||
* that will hover above the button
|
||||
* <div><input type='file' /></div>
|
||||
*/
|
||||
_createInput: function(){
|
||||
var self = this;
|
||||
|
||||
var input = document.createElement("input");
|
||||
input.setAttribute('type', 'file');
|
||||
input.setAttribute('name', this._settings.name);
|
||||
if(this._settings.multiple) input.setAttribute('multiple', 'multiple');
|
||||
|
||||
addStyles(input, {
|
||||
'position' : 'absolute',
|
||||
// in Opera only 'browse' button
|
||||
// is clickable and it is located at
|
||||
// the right side of the input
|
||||
'right' : 0,
|
||||
'margin' : 0,
|
||||
'padding' : 0,
|
||||
'fontSize' : '480px',
|
||||
// in Firefox if font-family is set to
|
||||
// 'inherit' the input doesn't work
|
||||
'fontFamily' : 'sans-serif',
|
||||
'cursor' : 'pointer'
|
||||
});
|
||||
|
||||
var div = document.createElement("div");
|
||||
addStyles(div, {
|
||||
'display' : 'block',
|
||||
'position' : 'absolute',
|
||||
'overflow' : 'hidden',
|
||||
'margin' : 0,
|
||||
'padding' : 0,
|
||||
'opacity' : 0,
|
||||
// Make sure browse button is in the right side
|
||||
// in Internet Explorer
|
||||
'direction' : 'ltr',
|
||||
//Max zIndex supported by Opera 9.0-9.2
|
||||
'zIndex': 2147483583
|
||||
});
|
||||
|
||||
// Make sure that element opacity exists.
|
||||
// Otherwise use IE filter
|
||||
if ( div.style.opacity !== "0") {
|
||||
if (typeof(div.filters) == 'undefined'){
|
||||
throw new Error('Opacity not supported by the browser');
|
||||
}
|
||||
div.style.filter = "alpha(opacity=0)";
|
||||
}
|
||||
|
||||
addEvent(input, 'change', function(){
|
||||
|
||||
if ( ! input || input.value === ''){
|
||||
return;
|
||||
}
|
||||
|
||||
// Get filename from input, required
|
||||
// as some browsers have path instead of it
|
||||
var file = fileFromPath(input.value);
|
||||
|
||||
if (false === self._settings.onChange.call(self, file, getExt(file))){
|
||||
self._clearInput();
|
||||
return;
|
||||
}
|
||||
|
||||
// Submit form when value is changed
|
||||
if (self._settings.autoSubmit) {
|
||||
self.submit();
|
||||
}
|
||||
});
|
||||
|
||||
addEvent(input, 'mouseover', function(){
|
||||
addClass(self._button, self._settings.hoverClass);
|
||||
});
|
||||
|
||||
addEvent(input, 'mouseout', function(){
|
||||
removeClass(self._button, self._settings.hoverClass);
|
||||
removeClass(self._button, self._settings.focusClass);
|
||||
|
||||
if (input.parentNode) {
|
||||
// We use visibility instead of display to fix problem with Safari 4
|
||||
// The problem is that the value of input doesn't change if it
|
||||
// has display none when user selects a file
|
||||
input.parentNode.style.visibility = 'hidden';
|
||||
}
|
||||
});
|
||||
|
||||
addEvent(input, 'focus', function(){
|
||||
addClass(self._button, self._settings.focusClass);
|
||||
});
|
||||
|
||||
addEvent(input, 'blur', function(){
|
||||
removeClass(self._button, self._settings.focusClass);
|
||||
});
|
||||
|
||||
div.appendChild(input);
|
||||
document.body.appendChild(div);
|
||||
|
||||
this._input = input;
|
||||
},
|
||||
_clearInput : function(){
|
||||
if (!this._input){
|
||||
return;
|
||||
}
|
||||
|
||||
// this._input.value = ''; Doesn't work in IE6
|
||||
removeNode(this._input.parentNode);
|
||||
this._input = null;
|
||||
this._createInput();
|
||||
|
||||
removeClass(this._button, this._settings.hoverClass);
|
||||
removeClass(this._button, this._settings.focusClass);
|
||||
},
|
||||
/**
|
||||
* Function makes sure that when user clicks upload button,
|
||||
* the this._input is clicked instead
|
||||
*/
|
||||
_rerouteClicks: function(){
|
||||
var self = this;
|
||||
|
||||
// IE will later display 'access denied' error
|
||||
// if you use using self._input.click()
|
||||
// other browsers just ignore click()
|
||||
|
||||
addEvent(self._button, 'mouseover', function(){
|
||||
if (self._disabled){
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! self._input){
|
||||
self._createInput();
|
||||
}
|
||||
|
||||
var div = self._input.parentNode;
|
||||
copyLayout(self._button, div);
|
||||
div.style.visibility = 'visible';
|
||||
|
||||
});
|
||||
|
||||
|
||||
// commented because we now hide input on mouseleave
|
||||
/**
|
||||
* When the window is resized the elements
|
||||
* can be misaligned if button position depends
|
||||
* on window size
|
||||
*/
|
||||
//addResizeEvent(function(){
|
||||
// if (self._input){
|
||||
// copyLayout(self._button, self._input.parentNode);
|
||||
// }
|
||||
//});
|
||||
|
||||
},
|
||||
/**
|
||||
* Creates iframe with unique name
|
||||
* @return {Element} iframe
|
||||
*/
|
||||
_createIframe: function(){
|
||||
// We can't use getTime, because it sometimes return
|
||||
// same value in safari :(
|
||||
var id = getUID();
|
||||
|
||||
// We can't use following code as the name attribute
|
||||
// won't be properly registered in IE6, and new window
|
||||
// on form submit will open
|
||||
// var iframe = document.createElement('iframe');
|
||||
// iframe.setAttribute('name', id);
|
||||
|
||||
var iframe = toElement('<iframe src="javascript:false;" name="' + id + '" />');
|
||||
// src="javascript:false; was added
|
||||
// because it possibly removes ie6 prompt
|
||||
// "This page contains both secure and nonsecure items"
|
||||
// Anyway, it doesn't do any harm.
|
||||
iframe.setAttribute('id', id);
|
||||
|
||||
iframe.style.display = 'none';
|
||||
document.body.appendChild(iframe);
|
||||
|
||||
return iframe;
|
||||
},
|
||||
/**
|
||||
* Creates form, that will be submitted to iframe
|
||||
* @param {Element} iframe Where to submit
|
||||
* @return {Element} form
|
||||
*/
|
||||
_createForm: function(iframe){
|
||||
var settings = this._settings;
|
||||
|
||||
// We can't use the following code in IE6
|
||||
// var form = document.createElement('form');
|
||||
// form.setAttribute('method', 'post');
|
||||
// form.setAttribute('enctype', 'multipart/form-data');
|
||||
// Because in this case file won't be attached to request
|
||||
var form = toElement('<form method="post" enctype="multipart/form-data"></form>');
|
||||
|
||||
form.setAttribute('action', settings.action);
|
||||
form.setAttribute('target', iframe.name);
|
||||
form.style.display = 'none';
|
||||
document.body.appendChild(form);
|
||||
|
||||
// Create hidden input element for each data key
|
||||
for (var prop in settings.data) {
|
||||
if (settings.data.hasOwnProperty(prop)){
|
||||
var el = document.createElement("input");
|
||||
el.setAttribute('type', 'hidden');
|
||||
el.setAttribute('name', prop);
|
||||
el.setAttribute('value', settings.data[prop]);
|
||||
form.appendChild(el);
|
||||
}
|
||||
}
|
||||
return form;
|
||||
},
|
||||
/**
|
||||
* Gets response from iframe and fires onComplete event when ready
|
||||
* @param iframe
|
||||
* @param file Filename to use in onComplete callback
|
||||
*/
|
||||
_getResponse : function(iframe, file){
|
||||
// getting response
|
||||
var toDeleteFlag = false, self = this, settings = this._settings;
|
||||
|
||||
addEvent(iframe, 'load', function(){
|
||||
|
||||
if (// For Safari
|
||||
iframe.src == "javascript:'%3Chtml%3E%3C/html%3E';" ||
|
||||
// For FF, IE
|
||||
iframe.src == "javascript:'<html></html>';"){
|
||||
// First time around, do not delete.
|
||||
// We reload to blank page, so that reloading main page
|
||||
// does not re-submit the post.
|
||||
|
||||
if (toDeleteFlag) {
|
||||
// Fix busy state in FF3
|
||||
setTimeout(function(){
|
||||
removeNode(iframe);
|
||||
}, 0);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var doc = iframe.contentDocument ? iframe.contentDocument : window.frames[iframe.id].document;
|
||||
|
||||
// fixing Opera 9.26,10.00
|
||||
if (doc.readyState && doc.readyState != 'complete') {
|
||||
// Opera fires load event multiple times
|
||||
// Even when the DOM is not ready yet
|
||||
// this fix should not affect other browsers
|
||||
return;
|
||||
}
|
||||
|
||||
// fixing Opera 9.64
|
||||
if (doc.body && doc.body.innerHTML == "false") {
|
||||
// In Opera 9.64 event was fired second time
|
||||
// when body.innerHTML changed from false
|
||||
// to server response approx. after 1 sec
|
||||
return;
|
||||
}
|
||||
|
||||
var response;
|
||||
|
||||
if (doc.XMLDocument) {
|
||||
// response is a xml document Internet Explorer property
|
||||
response = doc.XMLDocument;
|
||||
} else if (doc.body){
|
||||
// response is html document or plain text
|
||||
response = doc.body.innerHTML;
|
||||
|
||||
if (settings.responseType && settings.responseType.toLowerCase() == 'json') {
|
||||
// If the document was sent as 'application/javascript' or
|
||||
// 'text/javascript', then the browser wraps the text in a <pre>
|
||||
// tag and performs html encoding on the contents. In this case,
|
||||
// we need to pull the original text content from the text node's
|
||||
// nodeValue property to retrieve the unmangled content.
|
||||
// Note that IE6 only understands text/html
|
||||
if (doc.body.firstChild && doc.body.firstChild.nodeName.toUpperCase() == 'PRE') {
|
||||
doc.normalize();
|
||||
response = doc.body.firstChild.firstChild.nodeValue;
|
||||
}
|
||||
|
||||
if (response) {
|
||||
response = eval("(" + response + ")");
|
||||
} else {
|
||||
response = {};
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// response is a xml document
|
||||
response = doc;
|
||||
}
|
||||
|
||||
settings.onComplete.call(self, file, response);
|
||||
|
||||
// Reload blank page, so that reloading main page
|
||||
// does not re-submit the post. Also, remember to
|
||||
// delete the frame
|
||||
toDeleteFlag = true;
|
||||
|
||||
// Fix IE mixed content issue
|
||||
iframe.src = "javascript:'<html></html>';";
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Upload file contained in this._input
|
||||
*/
|
||||
submit: function(){
|
||||
var self = this, settings = this._settings;
|
||||
|
||||
if ( ! this._input || this._input.value === ''){
|
||||
return;
|
||||
}
|
||||
|
||||
var file = fileFromPath(this._input.value);
|
||||
|
||||
// user returned false to cancel upload
|
||||
if (false === settings.onSubmit.call(this, file, getExt(file))){
|
||||
this._clearInput();
|
||||
return;
|
||||
}
|
||||
|
||||
// sending request
|
||||
var iframe = this._createIframe();
|
||||
var form = this._createForm(iframe);
|
||||
|
||||
// assuming following structure
|
||||
// div -> input type='file'
|
||||
removeNode(this._input.parentNode);
|
||||
removeClass(self._button, self._settings.hoverClass);
|
||||
removeClass(self._button, self._settings.focusClass);
|
||||
|
||||
form.appendChild(this._input);
|
||||
|
||||
form.submit();
|
||||
|
||||
// request set, clean up
|
||||
removeNode(form); form = null;
|
||||
removeNode(this._input); this._input = null;
|
||||
|
||||
// Get response from iframe and fire onComplete event when ready
|
||||
this._getResponse(iframe, file);
|
||||
|
||||
// get ready for next request
|
||||
this._createInput();
|
||||
}
|
||||
};
|
||||
})();
|
||||
122
include/limesurvey/scripts/coookies.js
Normal file
@@ -0,0 +1,122 @@
|
||||
/**
|
||||
* Cookies.js, providing easy access to cookies thru the cookiejar object. Enabling so-called "subcookies" thru the subcookiejar
|
||||
* object.
|
||||
* See this related blogpost for more information on how to use these objects:
|
||||
* <http://www.whatstyle.net/articles/28/subcookies>
|
||||
* Check out this other blogpost for information about the new version:
|
||||
* <http://www.whatstyle.net/articles/46/subcookies_v2>
|
||||
*
|
||||
* @author Harmen Janssen <http://www.whatstyle.net>
|
||||
* @version 2.0
|
||||
*
|
||||
*/
|
||||
|
||||
/* based on http://www.quirksmode.org/js/cookies.html, by Peter-Paul Koch */
|
||||
var cookiejar = {
|
||||
/* set a cookie */
|
||||
bake: function(cookieName,cookieValue,days,path) {
|
||||
var expires='';
|
||||
if (days) {
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime()+(days*24*60*60*1000));
|
||||
expires = "; expires="+date.toGMTString();
|
||||
}
|
||||
var thePath = '; path=/';
|
||||
if (path) {
|
||||
thePath = '; path=' + path;
|
||||
}
|
||||
document.cookie = cookieName+'='+escape(cookieValue)+expires+thePath;
|
||||
return true;
|
||||
},
|
||||
/* get a cookie value */
|
||||
fetch: function(cookieName) {
|
||||
var nameEQ = cookieName + '=';
|
||||
var ca = document.cookie.split(';');
|
||||
for (var i=0; i<ca.length; i++) {
|
||||
var c = ca[i];
|
||||
while (c.charAt(0) == ' ') {
|
||||
c = c.substring(1, c.length);
|
||||
}
|
||||
if (c.indexOf(nameEQ) == 0) {
|
||||
return unescape(c.substring(nameEQ.length, c.length));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
},
|
||||
/* delete a cookie */
|
||||
crumble: function(cookieName) {
|
||||
return cookiejar.bake(cookieName,'',-1);
|
||||
}
|
||||
};
|
||||
|
||||
/* circumventing browser restrictions on the number of cookies one can use */
|
||||
var subcookiejar = {
|
||||
nameValueSeparator: '$$:$$',
|
||||
subcookieSeparator: '$$/$$',
|
||||
/* set a cookie. subcookieObj is a collection of cookies to be. Every member of subcookieObj is the name of the cookie, its value
|
||||
* the cookie value
|
||||
*/
|
||||
bake: function(cookieName,subcookieObj,days,path) {
|
||||
var existingCookie;
|
||||
/* check for existing cookie */
|
||||
if (existingCookie = subcookiejar.fetch (cookieName)) {
|
||||
/* if a cookie by the same name is found,
|
||||
* append its values to the subcookieObj.
|
||||
*/
|
||||
for (var i in existingCookie) {
|
||||
if (!(i in subcookieObj)) {
|
||||
subcookieObj[i] = existingCookie[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
var cookieValue = '';
|
||||
for (var i in subcookieObj) {
|
||||
cookieValue += i + subcookiejar.nameValueSeparator;
|
||||
cookieValue += subcookieObj[i];
|
||||
cookieValue += subcookiejar.subcookieSeparator;
|
||||
}
|
||||
/* remove trailing subcookieSeparator */
|
||||
cookieValue = cookieValue.substring(0,cookieValue.length-subcookiejar.subcookieSeparator.length);
|
||||
return cookiejar.bake(cookieName,cookieValue,days,path);
|
||||
},
|
||||
/* get a subcookie */
|
||||
fetch: function(cookieName,subcookieName) {
|
||||
var cookieValue = cookiejar.fetch(cookieName);
|
||||
/* proceed only if a cookie was found */
|
||||
if (!cookieValue) {
|
||||
return null;
|
||||
}
|
||||
var subcookies = cookieValue.split(subcookiejar.subcookieSeparator);
|
||||
var cookieObj = {};
|
||||
for (var i=0,sclen=subcookies.length; i<sclen; i++) {
|
||||
var sc = subcookies[i].split(subcookiejar.nameValueSeparator);
|
||||
cookieObj [sc[0]] = sc[1];
|
||||
}
|
||||
/* if subcookieName is given, return that subcookie if available, or null.
|
||||
* else, return the entire cookie as an object literal
|
||||
*/
|
||||
if (subcookieName != undefined) {
|
||||
if (subcookieName in cookieObj) {
|
||||
return cookieObj[subcookieName];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return cookieObj;
|
||||
},
|
||||
/* delete a subcookie */
|
||||
crumble: function(cookieName,subcookieName,days,path) {
|
||||
var cookieValue = cookiejar.fetch(cookieName);
|
||||
if (!cookieValue) {
|
||||
return false;
|
||||
}
|
||||
var newCookieObj = {};
|
||||
var subcookies = cookieValue.split(subcookiejar.subcookieSeparator);
|
||||
for (var i=0, sclen=subcookies.length; i<sclen; i++) {
|
||||
var sc = subcookies[i].split(subcookiejar.nameValueSeparator);
|
||||
if (sc[0] != subcookieName) {
|
||||
newCookieObj[sc[0]] = sc[1];
|
||||
}
|
||||
}
|
||||
return subcookiejar.bake(cookieName,newCookieObj,days,path);
|
||||
}
|
||||
};
|
||||
102
include/limesurvey/scripts/jquery/css/jquery.keypad.alt.css
Normal file
@@ -0,0 +1,102 @@
|
||||
/* Alternate style sheet for jQuery Keypad v1.3.0 */
|
||||
button.keypad-trigger {
|
||||
width: 25px;
|
||||
padding: 0px;
|
||||
}
|
||||
img.keypad-trigger {
|
||||
margin: 2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.keypad-popup {
|
||||
display: none;
|
||||
z-index: 10;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
border: 1px solid #888;
|
||||
border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
.keypad-keyentry {
|
||||
display: none;
|
||||
}
|
||||
.keypad-inline {
|
||||
background-color: #f4f4f4;
|
||||
border: 1px solid #888;
|
||||
border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
}
|
||||
.keypad-disabled {
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
background-color: white;
|
||||
opacity: 0.25;
|
||||
filter: alpha(opacity=25);
|
||||
}
|
||||
.keypad-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.keypad-prompt {
|
||||
clear: both;
|
||||
text-align: center;
|
||||
}
|
||||
.keypad-prompt.ui-widget-header {
|
||||
margin: 2px;
|
||||
}
|
||||
.keypad-row {
|
||||
clear: both;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.keypad-space {
|
||||
float: left;
|
||||
margin: 2px;
|
||||
width: 24px;
|
||||
}
|
||||
* html .keypad-space { /* IE6 */
|
||||
margin: 0px;
|
||||
width: 28px;
|
||||
}
|
||||
.keypad-half-space {
|
||||
float: left;
|
||||
margin: 1px;
|
||||
width: 12px;
|
||||
}
|
||||
* html .keypad-half-space { /* IE6 */
|
||||
margin: 0px;
|
||||
width: 14px;
|
||||
}
|
||||
.keypad-key {
|
||||
float: left;
|
||||
margin: 2px;
|
||||
padding: 0px;
|
||||
width: 24px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.keypad-spacebar {
|
||||
width: 164px;
|
||||
}
|
||||
.keypad-enter {
|
||||
width: 52px;
|
||||
}
|
||||
.keypad-clear, .keypad-back, .keypad-close, .keypad-shift {
|
||||
width: 108px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.keypad-cover {
|
||||
display: none;
|
||||
display/**/: block;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
filter: mask();
|
||||
top: -4px;
|
||||
left: -4px;
|
||||
width: 125px;
|
||||
height: 200px;
|
||||
}
|
||||
124
include/limesurvey/scripts/jquery/css/jquery.keypad.css
Normal file
@@ -0,0 +1,124 @@
|
||||
/* Main style sheet for jQuery Keypad v1.3.0 */
|
||||
button.keypad-trigger {
|
||||
width: 25px;
|
||||
padding: 0px;
|
||||
}
|
||||
img.keypad-trigger {
|
||||
margin: 2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.keypad-popup {
|
||||
display: none;
|
||||
z-index: 10;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
border: 1px solid #888;
|
||||
border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
.keypad-keyentry {
|
||||
display: none;
|
||||
}
|
||||
.keypad-inline {
|
||||
background-color: #f4f4f4;
|
||||
border: 1px solid #888;
|
||||
border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
}
|
||||
.keypad-disabled {
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
background-color: white;
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
}
|
||||
.keypad-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.keypad-prompt {
|
||||
clear: both;
|
||||
text-align: center;
|
||||
}
|
||||
.keypad-prompt.ui-widget-header {
|
||||
margin: 2px;
|
||||
}
|
||||
.keypad-row {
|
||||
clear: both;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.keypad-space {
|
||||
float: left;
|
||||
margin: 2px;
|
||||
width: 24px;
|
||||
}
|
||||
* html .keypad-space { /* IE6 */
|
||||
margin: 0px;
|
||||
width: 28px;
|
||||
}
|
||||
.keypad-half-space {
|
||||
float: left;
|
||||
margin: 1px;
|
||||
width: 12px;
|
||||
}
|
||||
* html .keypad-half-space { /* IE6 */
|
||||
margin: 0px;
|
||||
width: 14px;
|
||||
}
|
||||
.keypad-key {
|
||||
float: left;
|
||||
margin: 2px;
|
||||
padding: 0px;
|
||||
width: 24px;
|
||||
background-color: #f4f4f4;
|
||||
border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.keypad-key[disabled] {
|
||||
border: 2px outset;
|
||||
}
|
||||
.keypad-key-down {
|
||||
}
|
||||
.keypad-spacebar {
|
||||
width: 164px;
|
||||
}
|
||||
.keypad-enter {
|
||||
width: 52px;
|
||||
}
|
||||
.keypad-clear, .keypad-back, .keypad-close, .keypad-shift {
|
||||
width: 52px;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
.keypad-clear {
|
||||
background-color: #a00;
|
||||
}
|
||||
.keypad-back {
|
||||
background-color: #00a;
|
||||
}
|
||||
.keypad-close {
|
||||
background-color: #0a0;
|
||||
}
|
||||
.keypad-shift {
|
||||
background-color: #0aa;
|
||||
}
|
||||
.keypad-cover {
|
||||
display: none;
|
||||
display/**/: block;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
filter: mask();
|
||||
top: -4px;
|
||||
left: -4px;
|
||||
width: 125px;
|
||||
height: 200px;
|
||||
}
|
||||
28
include/limesurvey/scripts/jquery/css/jquery.multiselect.css
Normal file
@@ -0,0 +1,28 @@
|
||||
.ui-multiselect { padding:2px 0 2px 4px; text-align:left }
|
||||
.ui-multiselect span.ui-icon { float:right }
|
||||
.ui-multiselect-single input { position:absolute !important; top: auto !important; left:-9999px; }
|
||||
.ui-multiselect-single label { padding:5px !important }
|
||||
|
||||
.ui-multiselect-header { margin-bottom:3px; padding:3px 0 3px 4px }
|
||||
.ui-multiselect-header ul { font-size:0.9em }
|
||||
.ui-multiselect-header ul li { float:left; padding:0 10px 0 0 }
|
||||
.ui-multiselect-header a { text-decoration:none }
|
||||
.ui-multiselect-header a:hover { text-decoration:underline }
|
||||
.ui-multiselect-header span.ui-icon { float:left }
|
||||
.ui-multiselect-header li.ui-multiselect-close { float:right; text-align:right; padding-right:0 }
|
||||
|
||||
.ui-multiselect-menu { display:none; padding:3px; position:absolute; z-index:10000 }
|
||||
.ui-multiselect-checkboxes { position:relative /* fixes bug in IE6/7 */; overflow-y:scroll }
|
||||
.ui-multiselect-checkboxes label { cursor:default; display:block; border:1px solid transparent; padding:3px 1px }
|
||||
.ui-multiselect-checkboxes label input { position:relative; top:1px }
|
||||
.ui-multiselect-checkboxes li { clear:both; font-size:0.9em; padding-right:3px }
|
||||
.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label { text-align:center; font-weight:bold; border-bottom:1px solid }
|
||||
.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a { display:block; padding:3px; margin:1px 0; text-decoration:none }
|
||||
|
||||
/* remove label borders in IE6 because IE6 does not support transparency */
|
||||
* html .ui-multiselect-checkboxes label { border:none }
|
||||
|
||||
/* Some custom CSS by the LimeSurvey team */
|
||||
.ui-multiselect-close, .ui-multiselect .ui-icon-triangle-2-n-s {display:none;}
|
||||
.ui-multiselect-checkboxes .ui-state-hover {font-weight:normal;}
|
||||
|
||||
|
After Width: | Height: | Size: 87 B |
|
After Width: | Height: | Size: 87 B |
|
Before Width: | Height: | Size: 87 B |
|
Before Width: | Height: | Size: 176 B |
|
Before Width: | Height: | Size: 168 B |
|
After Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 155 B |
|
After Width: | Height: | Size: 119 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 122 B |
|
Before Width: | Height: | Size: 88 B |
|
After Width: | Height: | Size: 87 B |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 4.1 KiB |
@@ -1,404 +0,0 @@
|
||||
/*
|
||||
* jQuery UI CSS Framework
|
||||
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
|
||||
/* Layout helpers
|
||||
----------------------------------*/
|
||||
.ui-helper-hidden { display: none; }
|
||||
.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
|
||||
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
|
||||
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
||||
.ui-helper-clearfix { display: inline-block; }
|
||||
/* required comment for clearfix to work in Opera \*/
|
||||
* html .ui-helper-clearfix { height:1%; }
|
||||
.ui-helper-clearfix { display:block; }
|
||||
/* end clearfix */
|
||||
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
|
||||
|
||||
|
||||
/* Interaction Cues
|
||||
----------------------------------*/
|
||||
.ui-state-disabled { cursor: default !important; }
|
||||
|
||||
|
||||
/* Icons
|
||||
----------------------------------*/
|
||||
|
||||
/* states and images */
|
||||
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
|
||||
|
||||
|
||||
/* Misc visuals
|
||||
----------------------------------*/
|
||||
|
||||
/* Overlays */
|
||||
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
||||
|
||||
/*
|
||||
* jQuery UI CSS Framework
|
||||
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
||||
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande,%20Lucida%20Sans,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=5c9ccc&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=55&borderColorHeader=4297d7&fcHeader=ffffff&iconColorHeader=d8e7f3&bgColorContent=fcfdfd&bgTextureContent=06_inset_hard.png&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=222222&iconColorContent=469bdd&bgColorDefault=dfeffc&bgTextureDefault=02_glass.png&bgImgOpacityDefault=85&borderColorDefault=c5dbec&fcDefault=2e6e9e&iconColorDefault=6da8d5&bgColorHover=d0e5f5&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=79b7e7&fcHover=1d5987&iconColorHover=217bc0&bgColorActive=f5f8f9&bgTextureActive=06_inset_hard.png&bgImgOpacityActive=100&borderColorActive=79b7e7&fcActive=e17009&iconColorActive=f9bd01&bgColorHighlight=fbec88&bgTextureHighlight=01_flat.png&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
||||
*/
|
||||
|
||||
|
||||
/* Component containers
|
||||
----------------------------------*/
|
||||
.ui-widget { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1.1em; }
|
||||
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1em; }
|
||||
.ui-widget-content { border: 1px solid #a6c9e2; background: #fcfdfd url(images/ui-bg_inset-hard_100_fcfdfd_1x100.png) 50% bottom repeat-x; color: #222222; }
|
||||
.ui-widget-content a { color: #222222; }
|
||||
.ui-widget-header { border: 1px solid #4297d7; background: #5c9ccc url(images/ui-bg_gloss-wave_55_5c9ccc_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
|
||||
.ui-widget-header a { color: #ffffff; }
|
||||
|
||||
/* Interaction states
|
||||
----------------------------------*/
|
||||
.ui-state-default, .ui-widget-content .ui-state-default { border: 1px solid #c5dbec; background: #dfeffc url(images/ui-bg_glass_85_dfeffc_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #2e6e9e; outline: none; }
|
||||
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #2e6e9e; text-decoration: none; outline: none; }
|
||||
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus { border: 1px solid #79b7e7; background: #d0e5f5 url(images/ui-bg_glass_75_d0e5f5_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1d5987; outline: none; }
|
||||
.ui-state-hover a, .ui-state-hover a:hover { color: #1d5987; text-decoration: none; outline: none; }
|
||||
.ui-state-active, .ui-widget-content .ui-state-active { border: 1px solid #79b7e7; background: #f5f8f9 url(images/ui-bg_inset-hard_100_f5f8f9_1x100.png) 50% 50% repeat-x; font-weight: bold; color: #e17009; outline: none; }
|
||||
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #e17009; outline: none; text-decoration: none; }
|
||||
|
||||
/* Interaction Cues
|
||||
----------------------------------*/
|
||||
.ui-state-highlight, .ui-widget-content .ui-state-highlight {border: 1px solid #fad42e; background: #fbec88 url(images/ui-bg_flat_55_fbec88_40x100.png) 50% 50% repeat-x; color: #363636; }
|
||||
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a { color: #363636; }
|
||||
.ui-state-error, .ui-widget-content .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; }
|
||||
.ui-state-error a, .ui-widget-content .ui-state-error a { color: #cd0a0a; }
|
||||
.ui-state-error-text, .ui-widget-content .ui-state-error-text { color: #cd0a0a; }
|
||||
.ui-state-disabled, .ui-widget-content .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
||||
.ui-priority-primary, .ui-widget-content .ui-priority-primary { font-weight: bold; }
|
||||
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
||||
|
||||
/* Icons
|
||||
----------------------------------*/
|
||||
|
||||
/* states and images */
|
||||
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_469bdd_256x240.png); }
|
||||
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_469bdd_256x240.png); }
|
||||
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_d8e7f3_256x240.png); }
|
||||
.ui-state-default .ui-icon { background-image: url(images/ui-icons_6da8d5_256x240.png); }
|
||||
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_217bc0_256x240.png); }
|
||||
.ui-state-active .ui-icon {background-image: url(images/ui-icons_f9bd01_256x240.png); }
|
||||
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
|
||||
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png); }
|
||||
|
||||
/* positioning */
|
||||
.ui-icon-carat-1-n { background-position: 0 0; }
|
||||
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
||||
.ui-icon-carat-1-e { background-position: -32px 0; }
|
||||
.ui-icon-carat-1-se { background-position: -48px 0; }
|
||||
.ui-icon-carat-1-s { background-position: -64px 0; }
|
||||
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
||||
.ui-icon-carat-1-w { background-position: -96px 0; }
|
||||
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
||||
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
||||
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
||||
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
||||
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
||||
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
||||
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
||||
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
||||
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
||||
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
||||
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
||||
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
||||
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
||||
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
||||
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
||||
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
||||
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
||||
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
||||
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
||||
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
||||
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
||||
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
||||
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
||||
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
||||
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
||||
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
||||
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
||||
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
||||
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
||||
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
||||
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
||||
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
||||
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
||||
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
||||
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
||||
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
||||
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
||||
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
||||
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
||||
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
||||
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
||||
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
||||
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
||||
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
||||
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
||||
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
||||
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
||||
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
||||
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
||||
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
||||
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
||||
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
||||
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
||||
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
||||
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
||||
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
||||
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
||||
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
||||
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
||||
.ui-icon-extlink { background-position: -32px -80px; }
|
||||
.ui-icon-newwin { background-position: -48px -80px; }
|
||||
.ui-icon-refresh { background-position: -64px -80px; }
|
||||
.ui-icon-shuffle { background-position: -80px -80px; }
|
||||
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
||||
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
||||
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
||||
.ui-icon-folder-open { background-position: -16px -96px; }
|
||||
.ui-icon-document { background-position: -32px -96px; }
|
||||
.ui-icon-document-b { background-position: -48px -96px; }
|
||||
.ui-icon-note { background-position: -64px -96px; }
|
||||
.ui-icon-mail-closed { background-position: -80px -96px; }
|
||||
.ui-icon-mail-open { background-position: -96px -96px; }
|
||||
.ui-icon-suitcase { background-position: -112px -96px; }
|
||||
.ui-icon-comment { background-position: -128px -96px; }
|
||||
.ui-icon-person { background-position: -144px -96px; }
|
||||
.ui-icon-print { background-position: -160px -96px; }
|
||||
.ui-icon-trash { background-position: -176px -96px; }
|
||||
.ui-icon-locked { background-position: -192px -96px; }
|
||||
.ui-icon-unlocked { background-position: -208px -96px; }
|
||||
.ui-icon-bookmark { background-position: -224px -96px; }
|
||||
.ui-icon-tag { background-position: -240px -96px; }
|
||||
.ui-icon-home { background-position: 0 -112px; }
|
||||
.ui-icon-flag { background-position: -16px -112px; }
|
||||
.ui-icon-calendar { background-position: -32px -112px; }
|
||||
.ui-icon-cart { background-position: -48px -112px; }
|
||||
.ui-icon-pencil { background-position: -64px -112px; }
|
||||
.ui-icon-clock { background-position: -80px -112px; }
|
||||
.ui-icon-disk { background-position: -96px -112px; }
|
||||
.ui-icon-calculator { background-position: -112px -112px; }
|
||||
.ui-icon-zoomin { background-position: -128px -112px; }
|
||||
.ui-icon-zoomout { background-position: -144px -112px; }
|
||||
.ui-icon-search { background-position: -160px -112px; }
|
||||
.ui-icon-wrench { background-position: -176px -112px; }
|
||||
.ui-icon-gear { background-position: -192px -112px; }
|
||||
.ui-icon-heart { background-position: -208px -112px; }
|
||||
.ui-icon-star { background-position: -224px -112px; }
|
||||
.ui-icon-link { background-position: -240px -112px; }
|
||||
.ui-icon-cancel { background-position: 0 -128px; }
|
||||
.ui-icon-plus { background-position: -16px -128px; }
|
||||
.ui-icon-plusthick { background-position: -32px -128px; }
|
||||
.ui-icon-minus { background-position: -48px -128px; }
|
||||
.ui-icon-minusthick { background-position: -64px -128px; }
|
||||
.ui-icon-close { background-position: -80px -128px; }
|
||||
.ui-icon-closethick { background-position: -96px -128px; }
|
||||
.ui-icon-key { background-position: -112px -128px; }
|
||||
.ui-icon-lightbulb { background-position: -128px -128px; }
|
||||
.ui-icon-scissors { background-position: -144px -128px; }
|
||||
.ui-icon-clipboard { background-position: -160px -128px; }
|
||||
.ui-icon-copy { background-position: -176px -128px; }
|
||||
.ui-icon-contact { background-position: -192px -128px; }
|
||||
.ui-icon-image { background-position: -208px -128px; }
|
||||
.ui-icon-video { background-position: -224px -128px; }
|
||||
.ui-icon-script { background-position: -240px -128px; }
|
||||
.ui-icon-alert { background-position: 0 -144px; }
|
||||
.ui-icon-info { background-position: -16px -144px; }
|
||||
.ui-icon-notice { background-position: -32px -144px; }
|
||||
.ui-icon-help { background-position: -48px -144px; }
|
||||
.ui-icon-check { background-position: -64px -144px; }
|
||||
.ui-icon-bullet { background-position: -80px -144px; }
|
||||
.ui-icon-radio-off { background-position: -96px -144px; }
|
||||
.ui-icon-radio-on { background-position: -112px -144px; }
|
||||
.ui-icon-pin-w { background-position: -128px -144px; }
|
||||
.ui-icon-pin-s { background-position: -144px -144px; }
|
||||
.ui-icon-play { background-position: 0 -160px; }
|
||||
.ui-icon-pause { background-position: -16px -160px; }
|
||||
.ui-icon-seek-next { background-position: -32px -160px; }
|
||||
.ui-icon-seek-prev { background-position: -48px -160px; }
|
||||
.ui-icon-seek-end { background-position: -64px -160px; }
|
||||
.ui-icon-seek-first { background-position: -80px -160px; }
|
||||
.ui-icon-stop { background-position: -96px -160px; }
|
||||
.ui-icon-eject { background-position: -112px -160px; }
|
||||
.ui-icon-volume-off { background-position: -128px -160px; }
|
||||
.ui-icon-volume-on { background-position: -144px -160px; }
|
||||
.ui-icon-power { background-position: 0 -176px; }
|
||||
.ui-icon-signal-diag { background-position: -16px -176px; }
|
||||
.ui-icon-signal { background-position: -32px -176px; }
|
||||
.ui-icon-battery-0 { background-position: -48px -176px; }
|
||||
.ui-icon-battery-1 { background-position: -64px -176px; }
|
||||
.ui-icon-battery-2 { background-position: -80px -176px; }
|
||||
.ui-icon-battery-3 { background-position: -96px -176px; }
|
||||
.ui-icon-circle-plus { background-position: 0 -192px; }
|
||||
.ui-icon-circle-minus { background-position: -16px -192px; }
|
||||
.ui-icon-circle-close { background-position: -32px -192px; }
|
||||
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
||||
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
||||
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
||||
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
||||
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
||||
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
||||
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
||||
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
||||
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
||||
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
||||
.ui-icon-circle-check { background-position: -208px -192px; }
|
||||
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
||||
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
||||
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
||||
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
||||
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
||||
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
||||
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
||||
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
||||
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
||||
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
||||
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
||||
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
||||
|
||||
|
||||
/* Misc visuals
|
||||
----------------------------------*/
|
||||
|
||||
/* Corner radius */
|
||||
.ui-corner-tl { -moz-border-radius-topleft: 5px; -webkit-border-top-left-radius: 5px; }
|
||||
.ui-corner-tr { -moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px; }
|
||||
.ui-corner-bl { -moz-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px; }
|
||||
.ui-corner-br { -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; }
|
||||
.ui-corner-top { -moz-border-radius-topleft: 5px; -webkit-border-top-left-radius: 5px; -moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px; }
|
||||
.ui-corner-bottom { -moz-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; }
|
||||
.ui-corner-right { -moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px; -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; }
|
||||
.ui-corner-left { -moz-border-radius-topleft: 5px; -webkit-border-top-left-radius: 5px; -moz-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px; }
|
||||
.ui-corner-all { -moz-border-radius: 5px; -webkit-border-radius: 5px; }
|
||||
|
||||
/* Overlays */
|
||||
.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_75_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
|
||||
.ui-widget-shadow { margin: 5px 0 0 5px; padding: 0px; background: #999999 url(images/ui-bg_flat_55_999999_40x100.png) 50% 50% repeat-x; opacity: .45;filter:Alpha(Opacity=45); -moz-border-radius: 5px; -webkit-border-radius: 5px; }
|
||||
----------------------------------*/
|
||||
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
|
||||
.ui-accordion .ui-accordion-li-fix { display: inline; }
|
||||
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
|
||||
.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em 2.2em; }
|
||||
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
|
||||
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; }
|
||||
.ui-accordion .ui-accordion-content-active { display: block; }/* Datepicker
|
||||
----------------------------------*/
|
||||
.ui-datepicker { width: 17em; padding: .2em .2em 0; z-index:9999;}
|
||||
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
|
||||
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
|
||||
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
|
||||
.ui-datepicker .ui-datepicker-prev { left:2px; }
|
||||
.ui-datepicker .ui-datepicker-next { right:2px; }
|
||||
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
|
||||
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
|
||||
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
|
||||
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
||||
.ui-datepicker .ui-datepicker-title select { float:left; font-size:1em; margin:1px 0; }
|
||||
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
||||
.ui-datepicker select.ui-datepicker-month,
|
||||
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
||||
.ui-datepicker .ui-datepicker-title select.ui-datepicker-year { float: right; }
|
||||
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
||||
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
||||
.ui-datepicker td { border: 0; padding: 1px; }
|
||||
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
|
||||
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
|
||||
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
|
||||
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
|
||||
|
||||
/* with multiple calendars */
|
||||
.ui-datepicker.ui-datepicker-multi { width:auto; }
|
||||
.ui-datepicker-multi .ui-datepicker-group { float:left; }
|
||||
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
|
||||
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
|
||||
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
|
||||
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
|
||||
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
|
||||
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
|
||||
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
|
||||
.ui-datepicker-row-break { clear:both; width:100%; }
|
||||
|
||||
/* RTL support */
|
||||
.ui-datepicker-rtl { direction: rtl; }
|
||||
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
|
||||
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
|
||||
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
||||
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
||||
|
||||
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
||||
.ui-datepicker-cover {
|
||||
display: none; /*sorry for IE5*/
|
||||
display/**/: block; /*sorry for IE5*/
|
||||
position: absolute; /*must have*/
|
||||
z-index: -1; /*must have*/
|
||||
filter: mask(); /*must have*/
|
||||
top: -4px; /*must have*/
|
||||
left: -4px; /*must have*/
|
||||
width: 200px; /*must have*/
|
||||
height: 200px; /*must have*/
|
||||
}/* Dialog
|
||||
----------------------------------*/
|
||||
.ui-dialog { position: relative; padding: .2em; width: 300px; }
|
||||
.ui-dialog .ui-dialog-titlebar { padding: .5em .3em .3em 1em; position: relative; }
|
||||
.ui-dialog .ui-dialog-title { float: left; margin: .1em 0 .2em; }
|
||||
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
||||
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
|
||||
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
||||
.ui-dialog .ui-dialog-content { border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
||||
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
||||
.ui-dialog .ui-dialog-buttonpane button { float: right; margin: .5em .4em .5em 0; cursor: pointer; padding: .2em .6em .3em .6em; line-height: 1.4em; width:auto; overflow:visible; }
|
||||
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
||||
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|
||||
/* Progressbar
|
||||
----------------------------------*/
|
||||
.ui-progressbar { height:2em; text-align: left; }
|
||||
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }/* Resizable
|
||||
----------------------------------*/
|
||||
.ui-resizable { position: relative;}
|
||||
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;}
|
||||
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
||||
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0px; }
|
||||
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0px; }
|
||||
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0px; height: 100%; }
|
||||
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0px; height: 100%; }
|
||||
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
|
||||
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
|
||||
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
|
||||
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/* Slider
|
||||
----------------------------------*/
|
||||
.ui-slider { position: relative; text-align: left; }
|
||||
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
||||
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; }
|
||||
|
||||
.ui-slider-horizontal { height: .8em; }
|
||||
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
|
||||
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
||||
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
||||
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
||||
|
||||
.ui-slider-vertical { width: .8em; height: 100px; }
|
||||
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
||||
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
||||
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
||||
.ui-slider-vertical .ui-slider-range-max { top: 0; }/* Tabs
|
||||
----------------------------------*/
|
||||
.ui-tabs { padding: .2em; zoom: 1; }
|
||||
.ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: .2em .2em 0; }
|
||||
.ui-tabs .ui-tabs-nav li { position: relative; float: left; border-bottom-width: 0 !important; margin: 0 .2em -1px 0; padding: 0; }
|
||||
.ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: .5em 1em; }
|
||||
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; }
|
||||
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
|
||||
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
||||
.ui-tabs .ui-tabs-panel { padding: 1em 1.4em; display: block; border-width: 0; background: none; }
|
||||
.ui-tabs .ui-tabs-hide { display: none !important; }
|
||||
1566
include/limesurvey/scripts/jquery/css/start/jquery-ui.css
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
/*****
|
||||
Default styles for the jQuery UI progress bar
|
||||
*****/
|
||||
#progress-wrapper {
|
||||
width: 252px;
|
||||
height: 2em;
|
||||
margin: 10px auto 0 auto;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#progress-wrapper #progress-pre {
|
||||
float: left;
|
||||
margin: 0 5px 0 0;
|
||||
width: 45px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#progress-wrapper .ui-widget-content {
|
||||
float: left;
|
||||
width: 150px;
|
||||
height: 1em;
|
||||
text-align: left;
|
||||
border: 1px solid #666666;
|
||||
}
|
||||
|
||||
#progress-wrapper .ui-widget-header {
|
||||
background-color: #AAAAAA;
|
||||
background-image: none;
|
||||
border: 1px solid #666666;
|
||||
}
|
||||
|
||||
#progress-wrapper #progress-post {
|
||||
float: left;
|
||||
margin: 0 0 0 5px;
|
||||
width: 45px;
|
||||
text-align: left;
|
||||
}
|
||||
174
include/limesurvey/scripts/jquery/dd.css
Normal file
@@ -0,0 +1,174 @@
|
||||
/************** Skin 1 *********************/
|
||||
.dd {
|
||||
/*display:inline-block !important;*/
|
||||
text-align:left;
|
||||
background-color:#fff;
|
||||
font-family:Arial, Helvetica, sans-serif;
|
||||
float:left;
|
||||
}
|
||||
.dd span, .dd a{
|
||||
font-size: 8pt;
|
||||
}
|
||||
.dd .ddTitle {
|
||||
background:#f2f2f2;
|
||||
border:1px solid #c3c3c3;
|
||||
padding:3px;
|
||||
text-indent:0;
|
||||
cursor:default;
|
||||
overflow:hidden;
|
||||
height:16px;
|
||||
}
|
||||
.dd .ddTitle span.arrow {
|
||||
background:url(dd_arrow.gif) no-repeat 0 0; float:right; display:inline-block;width:16px; height:16px; cursor:pointer;
|
||||
}
|
||||
|
||||
.dd .ddTitle span.ddTitleText {text-indent:1px; overflow:hidden; line-height:16px;}
|
||||
.dd .ddTitle span.ddTitleText img{text-align:left; padding:0 2px 0 0}
|
||||
.dd .ddTitle img.selected {
|
||||
padding:0 3px 0 0;
|
||||
vertical-align:top;
|
||||
}
|
||||
.dd .ddChild {
|
||||
position:absolute;
|
||||
border:1px solid #c3c3c3;
|
||||
border-top:none;
|
||||
display:none;
|
||||
margin:0;
|
||||
width:auto;
|
||||
overflow:auto;
|
||||
overflow-x:hidden !important;
|
||||
background-color:#ffffff;
|
||||
}
|
||||
.dd .ddChild .opta a, .dd .ddChild .opta a:visited {padding-left:10px}
|
||||
.dd .ddChild a {
|
||||
display:block;
|
||||
padding:2px 0 2px 3px;
|
||||
text-decoration:none;
|
||||
color:#000;
|
||||
overflow:hidden;
|
||||
white-space:nowrap;
|
||||
cursor:pointer;
|
||||
}
|
||||
.dd .ddChild a:hover {
|
||||
background-color:#66CCFF;
|
||||
}
|
||||
.dd .ddChild a img {
|
||||
border:0;
|
||||
padding:0 2px 0 0;
|
||||
vertical-align:middle;
|
||||
}
|
||||
.dd .ddChild a.selected {
|
||||
background-color:#66CCFF;
|
||||
|
||||
}
|
||||
.hidden {display:none;}
|
||||
|
||||
.dd .borderTop{border-top:1px solid #c3c3c3 !important;}
|
||||
.dd .noBorderTop{border-top:none 0 !important}
|
||||
|
||||
/************** Skin 2 *********************/
|
||||
.dd2 {
|
||||
/*display:inline-block !important;*/
|
||||
text-align:left;
|
||||
background-color:#fff;
|
||||
font-family:Arial, Helvetica, sans-serif;
|
||||
font-size:12px;
|
||||
float:left;
|
||||
}
|
||||
.dd2 .ddTitle {
|
||||
background:transparent url(../../images/msDropDown.gif) no-repeat;
|
||||
padding:0 3px;
|
||||
text-indent:0;
|
||||
cursor:default;
|
||||
overflow:hidden;
|
||||
height:36px;
|
||||
}
|
||||
.dd2 .ddTitle span.arrow {
|
||||
background:transparent url(../../images/icon-arrow.gif) no-repeat 0 0; float:right; display:inline-block;width:27px; height:27px; cursor:pointer; top:5px; position:relative; right:2px;
|
||||
}
|
||||
|
||||
.dd2 .ddTitle span.ddTitleText {text-indent:1px; overflow:hidden; line-height:33px; font-family:Georgia, "Times New Roman", Times, serif; font-size:16px; font-weight:bold; color:#fff; _position:relative; _top:4px}
|
||||
.dd2 .ddTitle span.ddTitleText img{text-align:left; padding:0 2px 0 0;}
|
||||
.dd2 .ddTitle img.selected {
|
||||
padding:0 2px 0 0;
|
||||
vertical-align:top;
|
||||
}
|
||||
.dd2 .ddChild {
|
||||
position:absolute;
|
||||
border:1px solid #c3c3c3;
|
||||
border-top:none;
|
||||
display:none;
|
||||
margin:0;
|
||||
width:auto;
|
||||
overflow:auto;
|
||||
overflow-x:hidden !important;
|
||||
background-color:#ffffff;
|
||||
font-size:14px;
|
||||
}
|
||||
.dd2 .ddChild .opta a, .dd2 .ddChild .opta a:visited {padding-left:10px}
|
||||
.dd2 .ddChild a {
|
||||
display:block;
|
||||
padding:3px 0 3px 3px;
|
||||
text-decoration:none;
|
||||
color:#000;
|
||||
overflow:hidden;
|
||||
white-space:nowrap;
|
||||
cursor:pointer;
|
||||
}
|
||||
.dd2 .ddChild a:hover {
|
||||
background-color:#66CCFF;
|
||||
}
|
||||
.dd2 .ddChild a img {
|
||||
border:0;
|
||||
padding:0 2px 0 0;
|
||||
vertical-align:middle;
|
||||
}
|
||||
.dd2 .ddChild a.selected {
|
||||
background-color:#66CCFF;
|
||||
}
|
||||
|
||||
.dd2 .borderTop{border-top:1px solid #c3c3c3 !important;}
|
||||
.dd2 .noBorderTop{border-top:none 0 !important}
|
||||
|
||||
/************* use sprite *****************/
|
||||
.dd .ddChild a.sprite, .dd .ddChild a.sprite:visited {
|
||||
background-image:url(../icons/sprite.gif);
|
||||
background-repeat:no-repeat;
|
||||
padding-left:24px;
|
||||
}
|
||||
|
||||
.dd .ddChild a.calendar, .dd .ddChild a.calendar:visited {
|
||||
background-position:0 -404px;
|
||||
}
|
||||
.dd .ddChild a.shoppingcart, .dd .ddChild a.shoppingcart:visited {
|
||||
background-position:0 -330px;
|
||||
}
|
||||
.dd .ddChild a.cd, .dd .ddChild a.cd:visited {
|
||||
background-position:0 -439px;
|
||||
}
|
||||
.dd .ddChild a.email, .dd .ddChild a.email:visited {
|
||||
background-position:0 -256px;
|
||||
}
|
||||
.dd .ddChild a.faq, .dd .ddChild a.faq:visited {
|
||||
background-position:0 -183px;
|
||||
}
|
||||
.dd .ddChild a.games,
|
||||
.dd .ddChild a.games:visited {
|
||||
background-position:0 -365px;
|
||||
}
|
||||
.dd .ddChild a.music, .dd .ddChild a.music:visited {
|
||||
background-position:0 -146px;
|
||||
}
|
||||
.dd .ddChild a.phone, .dd .ddChild a.phone:visited {
|
||||
background-position:0 -109px;
|
||||
}
|
||||
.dd .ddChild a.graph, .dd .ddChild a.graph:visited {
|
||||
background-position:0 -73px;
|
||||
}
|
||||
.dd .ddChild a.secured, .dd .ddChild a.secured:visited {
|
||||
background-position:0 -37px;
|
||||
}
|
||||
.dd .ddChild a.video, .dd .ddChild a.video:visited {
|
||||
background-position:0 0;
|
||||
}
|
||||
/*******************************/
|
||||
BIN
include/limesurvey/scripts/jquery/dd_arrow.gif
Normal file
|
After Width: | Height: | Size: 138 B |
84
include/limesurvey/scripts/jquery/hoverIntent.js
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
(function($){
|
||||
/* hoverIntent by Brian Cherne */
|
||||
$.fn.hoverIntent = function(f,g) {
|
||||
// default configuration options
|
||||
var cfg = {
|
||||
sensitivity: 7,
|
||||
interval: 100,
|
||||
timeout: 0
|
||||
};
|
||||
// override configuration options with user supplied object
|
||||
cfg = $.extend(cfg, g ? { over: f, out: g } : f );
|
||||
|
||||
// instantiate variables
|
||||
// cX, cY = current X and Y position of mouse, updated by mousemove event
|
||||
// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
|
||||
var cX, cY, pX, pY;
|
||||
|
||||
// A private function for getting mouse position
|
||||
var track = function(ev) {
|
||||
cX = ev.pageX;
|
||||
cY = ev.pageY;
|
||||
};
|
||||
|
||||
// A private function for comparing current and previous mouse position
|
||||
var compare = function(ev,ob) {
|
||||
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
||||
// compare mouse positions to see if they've crossed the threshold
|
||||
if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
|
||||
$(ob).unbind("mousemove",track);
|
||||
// set hoverIntent state to true (so mouseOut can be called)
|
||||
ob.hoverIntent_s = 1;
|
||||
return cfg.over.apply(ob,[ev]);
|
||||
} else {
|
||||
// set previous coordinates for next time
|
||||
pX = cX; pY = cY;
|
||||
// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
|
||||
ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
|
||||
}
|
||||
};
|
||||
|
||||
// A private function for delaying the mouseOut function
|
||||
var delay = function(ev,ob) {
|
||||
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
||||
ob.hoverIntent_s = 0;
|
||||
return cfg.out.apply(ob,[ev]);
|
||||
};
|
||||
|
||||
// A private function for handling mouse 'hovering'
|
||||
var handleHover = function(e) {
|
||||
// next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut
|
||||
var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
|
||||
while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
|
||||
if ( p == this ) { return false; }
|
||||
|
||||
// copy objects to be passed into t (required for event object to be passed in IE)
|
||||
var ev = jQuery.extend({},e);
|
||||
var ob = this;
|
||||
|
||||
// cancel hoverIntent timer if it exists
|
||||
if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
|
||||
|
||||
// else e.type == "onmouseover"
|
||||
if (e.type == "mouseover") {
|
||||
// set "previous" X and Y position based on initial entry point
|
||||
pX = ev.pageX; pY = ev.pageY;
|
||||
// update "current" X and Y position based on mousemove
|
||||
$(ob).bind("mousemove",track);
|
||||
// start polling interval (self-calling timeout) to compare mouse coordinates over time
|
||||
if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
|
||||
|
||||
// else e.type == "onmouseout"
|
||||
} else {
|
||||
// unbind expensive mousemove event
|
||||
$(ob).unbind("mousemove",track);
|
||||
// if hoverIntent state is true, then call the mouseOut function after the specified delay
|
||||
if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
|
||||
}
|
||||
};
|
||||
|
||||
// bind the function to the two event listeners
|
||||
return this.mouseover(handleHover).mouseout(handleHover);
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
@@ -1,23 +0,0 @@
|
||||
;(function($){var _remove=$.fn.remove;$.fn.remove=function(){$("*",this).add(this).triggerHandler("remove");return _remove.apply(this,arguments);};function isVisible(element){function checkStyles(element){var style=element.style;return(style.display!='none'&&style.visibility!='hidden');}
|
||||
var visible=checkStyles(element);(visible&&$.each($.dir(element,'parentNode'),function(){return(visible=checkStyles(this));}));return visible;}
|
||||
$.extend($.expr[':'],{data:function(a,i,m){return $.data(a,m[3]);},tabbable:function(a,i,m){var nodeName=a.nodeName.toLowerCase();return(a.tabIndex>=0&&(('a'==nodeName&&a.href)||(/input|select|textarea|button/.test(nodeName)&&'hidden'!=a.type&&!a.disabled))&&isVisible(a));}});$.keyCode={BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38};function getter(namespace,plugin,method,args){function getMethods(type){var methods=$[namespace][plugin][type]||[];return(typeof methods=='string'?methods.split(/,?\s+/):methods);}
|
||||
var methods=getMethods('getter');if(args.length==1&&typeof args[0]=='string'){methods=methods.concat(getMethods('getterSetter'));}
|
||||
return($.inArray(method,methods)!=-1);}
|
||||
$.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=='string'),args=Array.prototype.slice.call(arguments,1);if(isMethodCall&&options.substring(0,1)=='_'){return this;}
|
||||
if(isMethodCall&&getter(namespace,name,options,args)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined);}
|
||||
return this.each(function(){var instance=$.data(this,name);(!instance&&!isMethodCall&&$.data(this,name,new $[namespace][name](this,options)));(instance&&isMethodCall&&$.isFunction(instance[options])&&instance[options].apply(instance,args));});};$[namespace][name]=function(element,options){var self=this;this.widgetName=name;this.widgetEventPrefix=$[namespace][name].eventPrefix||name;this.widgetBaseClass=namespace+'-'+name;this.options=$.extend({},$.widget.defaults,$[namespace][name].defaults,$.metadata&&$.metadata.get(element)[name],options);this.element=$(element).bind('setData.'+name,function(e,key,value){return self._setData(key,value);}).bind('getData.'+name,function(e,key){return self._getData(key);}).bind('remove',function(){return self.destroy();});this._init();};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype);$[namespace][name].getterSetter='option';};$.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName);},option:function(key,value){var options=key,self=this;if(typeof key=="string"){if(value===undefined){return this._getData(key);}
|
||||
options={};options[key]=value;}
|
||||
$.each(options,function(key,value){self._setData(key,value);});},_getData:function(key){return this.options[key];},_setData:function(key,value){this.options[key]=value;if(key=='disabled'){this.element[value?'addClass':'removeClass'](this.widgetBaseClass+'-disabled');}},enable:function(){this._setData('disabled',false);},disable:function(){this._setData('disabled',true);},_trigger:function(type,e,data){var eventName=(type==this.widgetEventPrefix?type:this.widgetEventPrefix+type);e=e||$.event.fix({type:eventName,target:this.element[0]});return this.element.triggerHandler(eventName,[e,data],this.options[type]);}};$.widget.defaults={disabled:false};$.ui={plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var set=instance.plugins[name];if(!set){return;}
|
||||
for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}},cssCache:{},css:function(name){if($.ui.cssCache[name]){return $.ui.cssCache[name];}
|
||||
var tmp=$('<div class="ui-gen">').addClass(name).css({position:'absolute',top:'-5000px',left:'-5000px',display:'block'}).appendTo('body');$.ui.cssCache[name]=!!((!(/auto|default/).test(tmp.css('cursor'))||(/^[1-9]/).test(tmp.css('height'))||(/^[1-9]/).test(tmp.css('width'))||!(/none/).test(tmp.css('backgroundImage'))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))));try{$('body').get(0).removeChild(tmp.get(0));}catch(e){}
|
||||
return $.ui.cssCache[name];},disableSelection:function(el){return $(el).attr('unselectable','on').css('MozUserSelect','none').bind('selectstart.ui',function(){return false;});},enableSelection:function(el){return $(el).attr('unselectable','off').css('MozUserSelect','').unbind('selectstart.ui');},hasScroll:function(e,a){if($(e).css('overflow')=='hidden'){return false;}
|
||||
var scroll=(a&&a=='left')?'scrollLeft':'scrollTop',has=false;if(e[scroll]>0){return true;}
|
||||
e[scroll]=1;has=(e[scroll]>0);e[scroll]=0;return has;}};$.ui.mouse={_mouseInit:function(){var self=this;this.element.bind('mousedown.'+this.widgetName,function(e){return self._mouseDown(e);});if($.browser.msie){this._mouseUnselectable=this.element.attr('unselectable');this.element.attr('unselectable','on');}
|
||||
this.started=false;},_mouseDestroy:function(){this.element.unbind('.'+this.widgetName);($.browser.msie&&this.element.attr('unselectable',this._mouseUnselectable));},_mouseDown:function(e){(this._mouseStarted&&this._mouseUp(e));this._mouseDownEvent=e;var self=this,btnIsLeft=(e.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(e.target).parents().add(e.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(e)){return true;}
|
||||
this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self.mouseDelayMet=true;},this.options.delay);}
|
||||
if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=(this._mouseStart(e)!==false);if(!this._mouseStarted){e.preventDefault();return true;}}
|
||||
this._mouseMoveDelegate=function(e){return self._mouseMove(e);};this._mouseUpDelegate=function(e){return self._mouseUp(e);};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);return false;},_mouseMove:function(e){if($.browser.msie&&!e.button){return this._mouseUp(e);}
|
||||
if(this._mouseStarted){this._mouseDrag(e);return false;}
|
||||
if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,e)!==false);(this._mouseStarted?this._mouseDrag(e):this._mouseUp(e));}
|
||||
return!this._mouseStarted;},_mouseUp:function(e){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._mouseStop(e);}
|
||||
return false;},_mouseDistanceMet:function(e){return(Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance);},_mouseDelayMet:function(e){return this.mouseDelayMet;},_mouseStart:function(e){},_mouseDrag:function(e){},_mouseStop:function(e){},_mouseCapture:function(e){return true;}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);
|
||||
2009
include/limesurvey/scripts/jquery/jquery-ui-i18n.js
vendored
@@ -1,60 +0,0 @@
|
||||
|
||||
(function($){$.widget("ui.tabs",{_init:function(){this.options.event+='.tabs';this._tabify(true);},_setData:function(key,value){if((/^selected/).test(key))
|
||||
this.select(value);else{this.options[key]=value;this._tabify();}},length:function(){return this.$tabs.length;},_tabId:function(a){return a.title&&a.title.replace(/\s/g,'_').replace(/[^A-Za-z0-9\-_:\.]/g,'')||this.options.idPrefix+$.data(a);},ui:function(tab,panel){return{options:this.options,tab:tab,panel:panel,index:this.$tabs.index(tab)};},_tabify:function(init){this.$lis=$('li:has(a[href])',this.element);this.$tabs=this.$lis.map(function(){return $('a',this)[0];});this.$panels=$([]);var self=this,o=this.options;this.$tabs.each(function(i,a){if(a.hash&&a.hash.replace('#',''))
|
||||
self.$panels=self.$panels.add(a.hash);else if($(a).attr('href')!='#'){$.data(a,'href.tabs',a.href);$.data(a,'load.tabs',a.href);var id=self._tabId(a);a.href='#'+id;var $panel=$('#'+id);if(!$panel.length){$panel=$(o.panelTemplate).attr('id',id).addClass(o.panelClass).insertAfter(self.$panels[i-1]||self.element);$panel.data('destroy.tabs',true);}
|
||||
self.$panels=self.$panels.add($panel);}
|
||||
else
|
||||
o.disabled.push(i+1);});if(init){this.element.addClass(o.navClass);this.$panels.each(function(){var $this=$(this);$this.addClass(o.panelClass);});if(o.selected===undefined){if(location.hash){this.$tabs.each(function(i,a){if(a.hash==location.hash){o.selected=i;if($.browser.msie||$.browser.opera){var $toShow=$(location.hash),toShowId=$toShow.attr('id');$toShow.attr('id','');setTimeout(function(){$toShow.attr('id',toShowId);},500);}
|
||||
scrollTo(0,0);return false;}});}
|
||||
else if(o.cookie){var index=parseInt($.cookie('ui-tabs-'+$.data(self.element[0])),10);if(index&&self.$tabs[index])
|
||||
o.selected=index;}
|
||||
else if(self.$lis.filter('.'+o.selectedClass).length)
|
||||
o.selected=self.$lis.index(self.$lis.filter('.'+o.selectedClass)[0]);}
|
||||
o.selected=o.selected===null||o.selected!==undefined?o.selected:0;o.disabled=$.unique(o.disabled.concat($.map(this.$lis.filter('.'+o.disabledClass),function(n,i){return self.$lis.index(n);}))).sort();if($.inArray(o.selected,o.disabled)!=-1)
|
||||
o.disabled.splice($.inArray(o.selected,o.disabled),1);this.$panels.addClass(o.hideClass);this.$lis.removeClass(o.selectedClass);if(o.selected!==null){this.$panels.eq(o.selected).show().removeClass(o.hideClass);this.$lis.eq(o.selected).addClass(o.selectedClass);var onShow=function(){self._trigger('show',null,self.ui(self.$tabs[o.selected],self.$panels[o.selected]));};if($.data(this.$tabs[o.selected],'load.tabs'))
|
||||
this.load(o.selected,onShow);else
|
||||
onShow();}
|
||||
$(window).bind('unload',function(){self.$tabs.unbind('.tabs');self.$lis=self.$tabs=self.$panels=null;});}
|
||||
else
|
||||
o.selected=this.$lis.index(this.$lis.filter('.'+o.selectedClass)[0]);if(o.cookie)
|
||||
$.cookie('ui-tabs-'+$.data(self.element[0]),o.selected,o.cookie);for(var i=0,li;li=this.$lis[i];i++)
|
||||
$(li)[$.inArray(i,o.disabled)!=-1&&!$(li).hasClass(o.selectedClass)?'addClass':'removeClass'](o.disabledClass);if(o.cache===false)
|
||||
this.$tabs.removeData('cache.tabs');var hideFx,showFx,baseFx={'min-width':0,duration:1},baseDuration='normal';if(o.fx&&o.fx.constructor==Array)
|
||||
hideFx=o.fx[0]||baseFx,showFx=o.fx[1]||baseFx;else
|
||||
hideFx=showFx=o.fx||baseFx;var resetCSS={display:'',overflow:'',height:''};if(!$.browser.msie)
|
||||
resetCSS.opacity='';function hideTab(clicked,$hide,$show){$hide.animate(hideFx,hideFx.duration||baseDuration,function(){$hide.addClass(o.hideClass).css(resetCSS);if($.browser.msie&&hideFx.opacity)
|
||||
$hide[0].style.filter='';if($show)
|
||||
showTab(clicked,$show,$hide);});}
|
||||
function showTab(clicked,$show,$hide){if(showFx===baseFx)
|
||||
$show.css('display','block');$show.animate(showFx,showFx.duration||baseDuration,function(){$show.removeClass(o.hideClass).css(resetCSS);if($.browser.msie&&showFx.opacity)
|
||||
$show[0].style.filter='';self._trigger('show',null,self.ui(clicked,$show[0]));});}
|
||||
function switchTab(clicked,$li,$hide,$show){$li.addClass(o.selectedClass).siblings().removeClass(o.selectedClass);hideTab(clicked,$hide,$show);}
|
||||
this.$tabs.unbind('.tabs').bind(o.event,function(){var $li=$(this).parents('li:eq(0)'),$hide=self.$panels.filter(':visible'),$show=$(this.hash);if(($li.hasClass(o.selectedClass)&&!o.unselect)||$li.hasClass(o.disabledClass)||$(this).hasClass(o.loadingClass)||self._trigger('select',null,self.ui(this,$show[0]))===false){this.blur();return false;}
|
||||
self.options.selected=self.$tabs.index(this);if(o.unselect){if($li.hasClass(o.selectedClass)){self.options.selected=null;$li.removeClass(o.selectedClass);self.$panels.stop();hideTab(this,$hide);this.blur();return false;}else if(!$hide.length){self.$panels.stop();var a=this;self.load(self.$tabs.index(this),function(){$li.addClass(o.selectedClass).addClass(o.unselectClass);showTab(a,$show);});this.blur();return false;}}
|
||||
if(o.cookie)
|
||||
$.cookie('ui-tabs-'+$.data(self.element[0]),self.options.selected,o.cookie);self.$panels.stop();if($show.length){var a=this;self.load(self.$tabs.index(this),$hide.length?function(){switchTab(a,$li,$hide,$show);}:function(){$li.addClass(o.selectedClass);showTab(a,$show);});}else
|
||||
throw'jQuery UI Tabs: Mismatching fragment identifier.';if($.browser.msie)
|
||||
this.blur();return false;});if(!(/^click/).test(o.event))
|
||||
this.$tabs.bind('click.tabs',function(){return false;});},add:function(url,label,index){if(index==undefined)
|
||||
index=this.$tabs.length;var o=this.options;var $li=$(o.tabTemplate.replace(/#\{href\}/g,url).replace(/#\{label\}/g,label));$li.data('destroy.tabs',true);var id=url.indexOf('#')==0?url.replace('#',''):this._tabId($('a:first-child',$li)[0]);var $panel=$('#'+id);if(!$panel.length){$panel=$(o.panelTemplate).attr('id',id).addClass(o.hideClass).data('destroy.tabs',true);}
|
||||
$panel.addClass(o.panelClass);if(index>=this.$lis.length){$li.appendTo(this.element);$panel.appendTo(this.element[0].parentNode);}else{$li.insertBefore(this.$lis[index]);$panel.insertBefore(this.$panels[index]);}
|
||||
o.disabled=$.map(o.disabled,function(n,i){return n>=index?++n:n});this._tabify();if(this.$tabs.length==1){$li.addClass(o.selectedClass);$panel.removeClass(o.hideClass);var href=$.data(this.$tabs[0],'load.tabs');if(href)
|
||||
this.load(index,href);}
|
||||
this._trigger('add',null,this.ui(this.$tabs[index],this.$panels[index]));},remove:function(index){var o=this.options,$li=this.$lis.eq(index).remove(),$panel=this.$panels.eq(index).remove();if($li.hasClass(o.selectedClass)&&this.$tabs.length>1)
|
||||
this.select(index+(index+1<this.$tabs.length?1:-1));o.disabled=$.map($.grep(o.disabled,function(n,i){return n!=index;}),function(n,i){return n>=index?--n:n});this._tabify();this._trigger('remove',null,this.ui($li.find('a')[0],$panel[0]));},enable:function(index){var o=this.options;if($.inArray(index,o.disabled)==-1)
|
||||
return;var $li=this.$lis.eq(index).removeClass(o.disabledClass);if($.browser.safari){$li.css('display','inline-block');setTimeout(function(){$li.css('display','block');},0);}
|
||||
o.disabled=$.grep(o.disabled,function(n,i){return n!=index;});this._trigger('enable',null,this.ui(this.$tabs[index],this.$panels[index]));},disable:function(index){var self=this,o=this.options;if(index!=o.selected){this.$lis.eq(index).addClass(o.disabledClass);o.disabled.push(index);o.disabled.sort();this._trigger('disable',null,this.ui(this.$tabs[index],this.$panels[index]));}},select:function(index){if(typeof index=='string')
|
||||
index=this.$tabs.index(this.$tabs.filter('[href$='+index+']')[0]);this.$tabs.eq(index).trigger(this.options.event);},load:function(index,callback){var self=this,o=this.options,$a=this.$tabs.eq(index),a=$a[0],bypassCache=callback==undefined||callback===false,url=$a.data('load.tabs');callback=callback||function(){};if(!url||!bypassCache&&$.data(a,'cache.tabs')){callback();return;}
|
||||
var inner=function(parent){var $parent=$(parent),$inner=$parent.find('*:last');return $inner.length&&$inner.is(':not(img)')&&$inner||$parent;};var cleanup=function(){self.$tabs.filter('.'+o.loadingClass).removeClass(o.loadingClass).each(function(){if(o.spinner)
|
||||
inner(this).parent().html(inner(this).data('label.tabs'));});self.xhr=null;};if(o.spinner){var label=inner(a).html();inner(a).wrapInner('<em></em>').find('em').data('label.tabs',label).html(o.spinner);}
|
||||
var ajaxOptions=$.extend({},o.ajaxOptions,{url:url,success:function(r,s){$(a.hash).html(r);cleanup();if(o.cache)
|
||||
$.data(a,'cache.tabs',true);self._trigger('load',null,self.ui(self.$tabs[index],self.$panels[index]));o.ajaxOptions.success&&o.ajaxOptions.success(r,s);callback();}});if(this.xhr){this.xhr.abort();cleanup();}
|
||||
$a.addClass(o.loadingClass);setTimeout(function(){self.xhr=$.ajax(ajaxOptions);},0);},url:function(index,url){this.$tabs.eq(index).removeData('cache.tabs').data('load.tabs',url);},destroy:function(){var o=this.options;this.element.unbind('.tabs').removeClass(o.navClass).removeData('tabs');this.$tabs.each(function(){var href=$.data(this,'href.tabs');if(href)
|
||||
this.href=href;var $this=$(this).unbind('.tabs');$.each(['href','load','cache'],function(i,prefix){$this.removeData(prefix+'.tabs');});});this.$lis.add(this.$panels).each(function(){if($.data(this,'destroy.tabs'))
|
||||
$(this).remove();else
|
||||
$(this).removeClass([o.selectedClass,o.unselectClass,o.disabledClass,o.panelClass,o.hideClass].join(' '));});}});$.ui.tabs.defaults={unselect:false,event:'click',disabled:[],cookie:null,spinner:'Loading…',cache:false,idPrefix:'ui-tabs-',ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:'<div></div>',navClass:'ui-tabs-nav',selectedClass:'ui-tabs-selected',unselectClass:'ui-tabs-unselect',disabledClass:'ui-tabs-disabled',panelClass:'ui-tabs-panel',hideClass:'ui-tabs-hide',loadingClass:'ui-tabs-loading'};$.ui.tabs.getter="length";$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(ms,continuing){continuing=continuing||false;var self=this,t=this.options.selected;function start(){self.rotation=setInterval(function(){t=++t<self.$tabs.length?t:0;self.select(t);},ms);}
|
||||
function stop(e){if(!e||e.clientX){clearInterval(self.rotation);}}
|
||||
if(ms){start();if(!continuing)
|
||||
this.$tabs.bind(this.options.event,stop);else
|
||||
this.$tabs.bind(this.options.event,function(){stop();t=self.options.selected;start();});}
|
||||
else{stop();this.$tabs.unbind(this.options.event,stop);}}});})(jQuery);
|
||||
1633
include/limesurvey/scripts/jquery/jquery-ui.js
vendored
10
include/limesurvey/scripts/jquery/jquery.bgiframe.min.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
|
||||
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
||||
*
|
||||
* $LastChangedDate: 2007-06-19 20:25:28 -0500 (Tue, 19 Jun 2007) $
|
||||
* $Rev: 2111 $
|
||||
*
|
||||
* Version 2.1
|
||||
*/
|
||||
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};if(!$.browser.version)$.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1];})(jQuery);
|
||||
418
include/limesurvey/scripts/jquery/jquery.blockUI.js
Normal file
@@ -0,0 +1,418 @@
|
||||
/*
|
||||
* jQuery blockUI plugin
|
||||
* Version 2.23 (21-JUN-2009)
|
||||
* @requires jQuery v1.2.3 or later
|
||||
*
|
||||
* Examples at: http://malsup.com/jquery/block/
|
||||
* Copyright (c) 2007-2008 M. Alsup
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
|
||||
*/
|
||||
|
||||
;(function($) {
|
||||
|
||||
if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) {
|
||||
alert('blockUI requires jQuery v1.2.3 or later! You are using v' + $.fn.jquery);
|
||||
return;
|
||||
}
|
||||
|
||||
$.fn._fadeIn = $.fn.fadeIn;
|
||||
|
||||
// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
|
||||
// retarded userAgent strings on Vista)
|
||||
var mode = document.documentMode || 0;
|
||||
var setExpr = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8);
|
||||
var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent) && !mode;
|
||||
|
||||
// global $ methods for blocking/unblocking the entire page
|
||||
$.blockUI = function(opts) { install(window, opts); };
|
||||
$.unblockUI = function(opts) { remove(window, opts); };
|
||||
|
||||
// convenience method for quick growl-like notifications (http://www.google.com/search?q=growl)
|
||||
$.growlUI = function(title, message, timeout, onClose) {
|
||||
var $m = $('<div class="growlUI"></div>');
|
||||
if (title) $m.append('<h1>'+title+'</h1>');
|
||||
if (message) $m.append('<h2>'+message+'</h2>');
|
||||
if (timeout == undefined) timeout = 3000;
|
||||
$.blockUI({
|
||||
message: $m, fadeIn: 700, fadeOut: 1000, centerY: false,
|
||||
timeout: timeout, showOverlay: false,
|
||||
onUnblock: onClose,
|
||||
css: $.blockUI.defaults.growlCSS
|
||||
});
|
||||
};
|
||||
|
||||
// plugin method for blocking element content
|
||||
$.fn.block = function(opts) {
|
||||
return this.unblock({ fadeOut: 0 }).each(function() {
|
||||
if ($.css(this,'position') == 'static')
|
||||
this.style.position = 'relative';
|
||||
if ($.browser.msie)
|
||||
this.style.zoom = 1; // force 'hasLayout'
|
||||
install(this, opts);
|
||||
});
|
||||
};
|
||||
|
||||
// plugin method for unblocking element content
|
||||
$.fn.unblock = function(opts) {
|
||||
return this.each(function() {
|
||||
remove(this, opts);
|
||||
});
|
||||
};
|
||||
|
||||
$.blockUI.version = 2.23; // 2nd generation blocking at no extra cost!
|
||||
|
||||
// override these in your code to change the default behavior and style
|
||||
$.blockUI.defaults = {
|
||||
// message displayed when blocking (use null for no message)
|
||||
message: '<h1>Please wait...</h1>',
|
||||
|
||||
// styles for the message when blocking; if you wish to disable
|
||||
// these and use an external stylesheet then do this in your code:
|
||||
// $.blockUI.defaults.css = {};
|
||||
css: {
|
||||
padding: 0,
|
||||
margin: 0,
|
||||
width: '30%',
|
||||
top: '40%',
|
||||
left: '35%',
|
||||
textAlign: 'center',
|
||||
color: '#000',
|
||||
border: '3px solid #aaa',
|
||||
backgroundColor:'#fff',
|
||||
cursor: 'wait'
|
||||
},
|
||||
|
||||
// styles for the overlay
|
||||
overlayCSS: {
|
||||
backgroundColor: '#000',
|
||||
opacity: 0.6,
|
||||
cursor: 'wait'
|
||||
},
|
||||
|
||||
// styles applied when using $.growlUI
|
||||
growlCSS: {
|
||||
width: '350px',
|
||||
top: '10px',
|
||||
left: '',
|
||||
right: '10px',
|
||||
border: 'none',
|
||||
padding: '5px',
|
||||
opacity: 0.6,
|
||||
cursor: null,
|
||||
color: '#fff',
|
||||
backgroundColor: '#000',
|
||||
'-webkit-border-radius': '10px',
|
||||
'-moz-border-radius': '10px'
|
||||
},
|
||||
|
||||
// IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w
|
||||
// (hat tip to Jorge H. N. de Vasconcelos)
|
||||
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
|
||||
|
||||
// force usage of iframe in non-IE browsers (handy for blocking applets)
|
||||
forceIframe: false,
|
||||
|
||||
// z-index for the blocking overlay
|
||||
baseZ: 1000,
|
||||
|
||||
// set these to true to have the message automatically centered
|
||||
centerX: true, // <-- only effects element blocking (page block controlled via css above)
|
||||
centerY: true,
|
||||
|
||||
// allow body element to be stetched in ie6; this makes blocking look better
|
||||
// on "short" pages. disable if you wish to prevent changes to the body height
|
||||
allowBodyStretch: true,
|
||||
|
||||
// enable if you want key and mouse events to be disabled for content that is blocked
|
||||
bindEvents: true,
|
||||
|
||||
// be default blockUI will supress tab navigation from leaving blocking content
|
||||
// (if bindEvents is true)
|
||||
constrainTabKey: true,
|
||||
|
||||
// fadeIn time in millis; set to 0 to disable fadeIn on block
|
||||
fadeIn: 200,
|
||||
|
||||
// fadeOut time in millis; set to 0 to disable fadeOut on unblock
|
||||
fadeOut: 400,
|
||||
|
||||
// time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock
|
||||
timeout: 0,
|
||||
|
||||
// disable if you don't want to show the overlay
|
||||
showOverlay: true,
|
||||
|
||||
// if true, focus will be placed in the first available input field when
|
||||
// page blocking
|
||||
focusInput: true,
|
||||
|
||||
// suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
|
||||
applyPlatformOpacityRules: true,
|
||||
|
||||
// callback method invoked when unblocking has completed; the callback is
|
||||
// passed the element that has been unblocked (which is the window object for page
|
||||
// blocks) and the options that were passed to the unblock call:
|
||||
// onUnblock(element, options)
|
||||
onUnblock: null,
|
||||
|
||||
// don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493
|
||||
quirksmodeOffsetHack: 4
|
||||
};
|
||||
|
||||
// private data and functions follow...
|
||||
|
||||
var pageBlock = null;
|
||||
var pageBlockEls = [];
|
||||
|
||||
function install(el, opts) {
|
||||
var full = (el == window);
|
||||
var msg = opts && opts.message !== undefined ? opts.message : undefined;
|
||||
opts = $.extend({}, $.blockUI.defaults, opts || {});
|
||||
opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
|
||||
var css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
|
||||
msg = msg === undefined ? opts.message : msg;
|
||||
|
||||
// remove the current block (if there is one)
|
||||
if (full && pageBlock)
|
||||
remove(window, {fadeOut:0});
|
||||
|
||||
// if an existing element is being used as the blocking content then we capture
|
||||
// its current place in the DOM (and current display style) so we can restore
|
||||
// it when we unblock
|
||||
if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
|
||||
var node = msg.jquery ? msg[0] : msg;
|
||||
var data = {};
|
||||
$(el).data('blockUI.history', data);
|
||||
data.el = node;
|
||||
data.parent = node.parentNode;
|
||||
data.display = node.style.display;
|
||||
data.position = node.style.position;
|
||||
if (data.parent)
|
||||
data.parent.removeChild(node);
|
||||
}
|
||||
|
||||
var z = opts.baseZ;
|
||||
|
||||
// blockUI uses 3 layers for blocking, for simplicity they are all used on every platform;
|
||||
// layer1 is the iframe layer which is used to supress bleed through of underlying content
|
||||
// layer2 is the overlay layer which has opacity and a wait cursor (by default)
|
||||
// layer3 is the message content that is displayed while blocking
|
||||
|
||||
var lyr1 = ($.browser.msie || opts.forceIframe)
|
||||
? $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>')
|
||||
: $('<div class="blockUI" style="display:none"></div>');
|
||||
var lyr2 = $('<div class="blockUI blockOverlay" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
|
||||
var lyr3 = full ? $('<div class="blockUI blockMsg blockPage" style="z-index:'+z+';display:none;position:fixed"></div>')
|
||||
: $('<div class="blockUI blockMsg blockElement" style="z-index:'+z+';display:none;position:absolute"></div>');
|
||||
|
||||
// if we have a message, style it
|
||||
if (msg)
|
||||
lyr3.css(css);
|
||||
|
||||
// style the overlay
|
||||
if (!opts.applyPlatformOpacityRules || !($.browser.mozilla && /Linux/.test(navigator.platform)))
|
||||
lyr2.css(opts.overlayCSS);
|
||||
lyr2.css('position', full ? 'fixed' : 'absolute');
|
||||
|
||||
// make iframe layer transparent in IE
|
||||
if ($.browser.msie || opts.forceIframe)
|
||||
lyr1.css('opacity',0.0);
|
||||
|
||||
$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
|
||||
|
||||
// ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
|
||||
var expr = setExpr && (!$.boxModel || $('object,embed', full ? null : el).length > 0);
|
||||
if (ie6 || expr) {
|
||||
// give body 100% height
|
||||
if (full && opts.allowBodyStretch && $.boxModel)
|
||||
$('html,body').css('height','100%');
|
||||
|
||||
// fix ie6 issue when blocked element has a border width
|
||||
if ((ie6 || !$.boxModel) && !full) {
|
||||
var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth');
|
||||
var fixT = t ? '(0 - '+t+')' : 0;
|
||||
var fixL = l ? '(0 - '+l+')' : 0;
|
||||
}
|
||||
|
||||
// simulate fixed position
|
||||
$.each([lyr1,lyr2,lyr3], function(i,o) {
|
||||
var s = o[0].style;
|
||||
s.position = 'absolute';
|
||||
if (i < 2) {
|
||||
full ? s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"')
|
||||
: s.setExpression('height','this.parentNode.offsetHeight + "px"');
|
||||
full ? s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"')
|
||||
: s.setExpression('width','this.parentNode.offsetWidth + "px"');
|
||||
if (fixL) s.setExpression('left', fixL);
|
||||
if (fixT) s.setExpression('top', fixT);
|
||||
}
|
||||
else if (opts.centerY) {
|
||||
if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
|
||||
s.marginTop = 0;
|
||||
}
|
||||
else if (!opts.centerY && full) {
|
||||
var top = (opts.css && opts.css.top) ? parseInt(opts.css.top) : 0;
|
||||
var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';
|
||||
s.setExpression('top',expression);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// show the message
|
||||
if (msg) {
|
||||
lyr3.append(msg);
|
||||
if (msg.jquery || msg.nodeType)
|
||||
$(msg).show();
|
||||
}
|
||||
|
||||
if (($.browser.msie || opts.forceIframe) && opts.showOverlay)
|
||||
lyr1.show(); // opacity is zero
|
||||
if (opts.fadeIn) {
|
||||
if (opts.showOverlay)
|
||||
lyr2._fadeIn(opts.fadeIn);
|
||||
if (msg)
|
||||
lyr3.fadeIn(opts.fadeIn);
|
||||
}
|
||||
else {
|
||||
if (opts.showOverlay)
|
||||
lyr2.show();
|
||||
if (msg)
|
||||
lyr3.show();
|
||||
}
|
||||
|
||||
// bind key and mouse events
|
||||
bind(1, el, opts);
|
||||
|
||||
if (full) {
|
||||
pageBlock = lyr3[0];
|
||||
pageBlockEls = $(':input:enabled:visible',pageBlock);
|
||||
if (opts.focusInput)
|
||||
setTimeout(focus, 20);
|
||||
}
|
||||
else
|
||||
center(lyr3[0], opts.centerX, opts.centerY);
|
||||
|
||||
if (opts.timeout) {
|
||||
// auto-unblock
|
||||
var to = setTimeout(function() {
|
||||
full ? $.unblockUI(opts) : $(el).unblock(opts);
|
||||
}, opts.timeout);
|
||||
$(el).data('blockUI.timeout', to);
|
||||
}
|
||||
};
|
||||
|
||||
// remove the block
|
||||
function remove(el, opts) {
|
||||
var full = el == window;
|
||||
var $el = $(el);
|
||||
var data = $el.data('blockUI.history');
|
||||
var to = $el.data('blockUI.timeout');
|
||||
if (to) {
|
||||
clearTimeout(to);
|
||||
$el.removeData('blockUI.timeout');
|
||||
}
|
||||
opts = $.extend({}, $.blockUI.defaults, opts || {});
|
||||
bind(0, el, opts); // unbind events
|
||||
var els = full ? $('body').children().filter('.blockUI') : $('.blockUI', el);
|
||||
|
||||
if (full)
|
||||
pageBlock = pageBlockEls = null;
|
||||
|
||||
if (opts.fadeOut) {
|
||||
els.fadeOut(opts.fadeOut);
|
||||
setTimeout(function() { reset(els,data,opts,el); }, opts.fadeOut);
|
||||
}
|
||||
else
|
||||
reset(els, data, opts, el);
|
||||
};
|
||||
|
||||
// move blocking element back into the DOM where it started
|
||||
function reset(els,data,opts,el) {
|
||||
els.each(function(i,o) {
|
||||
// remove via DOM calls so we don't lose event handlers
|
||||
if (this.parentNode)
|
||||
this.parentNode.removeChild(this);
|
||||
});
|
||||
|
||||
if (data && data.el) {
|
||||
data.el.style.display = data.display;
|
||||
data.el.style.position = data.position;
|
||||
if (data.parent)
|
||||
data.parent.appendChild(data.el);
|
||||
$(data.el).removeData('blockUI.history');
|
||||
}
|
||||
|
||||
if (typeof opts.onUnblock == 'function')
|
||||
opts.onUnblock(el,opts);
|
||||
};
|
||||
|
||||
// bind/unbind the handler
|
||||
function bind(b, el, opts) {
|
||||
var full = el == window, $el = $(el);
|
||||
|
||||
// don't bother unbinding if there is nothing to unbind
|
||||
if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
|
||||
return;
|
||||
if (!full)
|
||||
$el.data('blockUI.isBlocked', b);
|
||||
|
||||
// don't bind events when overlay is not in use or if bindEvents is false
|
||||
if (!opts.bindEvents || (b && !opts.showOverlay))
|
||||
return;
|
||||
|
||||
// bind anchors and inputs for mouse and key events
|
||||
var events = 'mousedown mouseup keydown keypress';
|
||||
b ? $(document).bind(events, opts, handler) : $(document).unbind(events, handler);
|
||||
|
||||
// former impl...
|
||||
// var $e = $('a,:input');
|
||||
// b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
|
||||
};
|
||||
|
||||
// event handler to suppress keyboard/mouse events when blocking
|
||||
function handler(e) {
|
||||
// allow tab navigation (conditionally)
|
||||
if (e.keyCode && e.keyCode == 9) {
|
||||
if (pageBlock && e.data.constrainTabKey) {
|
||||
var els = pageBlockEls;
|
||||
var fwd = !e.shiftKey && e.target == els[els.length-1];
|
||||
var back = e.shiftKey && e.target == els[0];
|
||||
if (fwd || back) {
|
||||
setTimeout(function(){focus(back)},10);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// allow events within the message content
|
||||
if ($(e.target).parents('div.blockMsg').length > 0)
|
||||
return true;
|
||||
|
||||
// allow events for content that is not being blocked
|
||||
return $(e.target).parents().children().filter('div.blockUI').length == 0;
|
||||
};
|
||||
|
||||
function focus(back) {
|
||||
if (!pageBlockEls)
|
||||
return;
|
||||
var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0];
|
||||
if (e)
|
||||
e.focus();
|
||||
};
|
||||
|
||||
function center(el, x, y) {
|
||||
var p = el.parentNode, s = el.style;
|
||||
var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth');
|
||||
var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth');
|
||||
if (x) s.left = l > 0 ? (l+'px') : '0';
|
||||
if (y) s.top = t > 0 ? (t+'px') : '0';
|
||||
};
|
||||
|
||||
function sz(el, p) {
|
||||
return parseInt($.css(el,p))||0;
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
96
include/limesurvey/scripts/jquery/jquery.coookie.js
Normal file
@@ -0,0 +1,96 @@
|
||||
/**
|
||||
* Cookie plugin
|
||||
*
|
||||
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a cookie with the given name and value and other optional parameters.
|
||||
*
|
||||
* @example $.cookie('the_cookie', 'the_value');
|
||||
* @desc Set the value of a cookie.
|
||||
* @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
|
||||
* @desc Create a cookie with all available options.
|
||||
* @example $.cookie('the_cookie', 'the_value');
|
||||
* @desc Create a session cookie.
|
||||
* @example $.cookie('the_cookie', null);
|
||||
* @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
|
||||
* used when the cookie was set.
|
||||
*
|
||||
* @param String name The name of the cookie.
|
||||
* @param String value The value of the cookie.
|
||||
* @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
|
||||
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
|
||||
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
|
||||
* If set to null or omitted, the cookie will be a session cookie and will not be retained
|
||||
* when the the browser exits.
|
||||
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
|
||||
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
|
||||
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
|
||||
* require a secure protocol (like HTTPS).
|
||||
* @type undefined
|
||||
*
|
||||
* @name $.cookie
|
||||
* @cat Plugins/Cookie
|
||||
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get the value of a cookie with the given name.
|
||||
*
|
||||
* @example $.cookie('the_cookie');
|
||||
* @desc Get the value of a cookie.
|
||||
*
|
||||
* @param String name The name of the cookie.
|
||||
* @return The value of the cookie.
|
||||
* @type String
|
||||
*
|
||||
* @name $.cookie
|
||||
* @cat Plugins/Cookie
|
||||
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
||||
*/
|
||||
jQuery.cookie = function(name, value, options) {
|
||||
if (typeof value != 'undefined') { // name and value given, set cookie
|
||||
options = options || {};
|
||||
if (value === null) {
|
||||
value = '';
|
||||
options.expires = -1;
|
||||
}
|
||||
var expires = '';
|
||||
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
|
||||
var date;
|
||||
if (typeof options.expires == 'number') {
|
||||
date = new Date();
|
||||
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
|
||||
} else {
|
||||
date = options.expires;
|
||||
}
|
||||
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
|
||||
}
|
||||
// CAUTION: Needed to parenthesize options.path and options.domain
|
||||
// in the following expressions, otherwise they evaluate to undefined
|
||||
// in the packed version for some reason...
|
||||
var path = options.path ? '; path=' + (options.path) : '';
|
||||
var domain = options.domain ? '; domain=' + (options.domain) : '';
|
||||
var secure = options.secure ? '; secure' : '';
|
||||
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
|
||||
} else { // only name given, get cookie
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
};
|
||||
938
include/limesurvey/scripts/jquery/jquery.dd.js
Normal file
@@ -0,0 +1,938 @@
|
||||
// MSDropDown - jquery.dd.js
|
||||
// author: Marghoob Suleman - Search me on google
|
||||
// Date: 12th Aug, 2009
|
||||
// Version: 2.35 {date: 28 Nov, 2010}
|
||||
// Revision: 30
|
||||
// web: www.giftlelo.com | www.marghoobsuleman.com
|
||||
/*
|
||||
// msDropDown is free jQuery Plugin: you can redistribute it and/or modify
|
||||
// it under the terms of the either the MIT License or the Gnu General Public License (GPL) Version 2
|
||||
*/
|
||||
(function($) {
|
||||
var msOldDiv = "";
|
||||
var dd = function(element, options)
|
||||
{
|
||||
var sElement = element;
|
||||
var $this = this; //parent this
|
||||
var options = $.extend({
|
||||
height:120,
|
||||
visibleRows:7,
|
||||
rowHeight:23,
|
||||
showIcon:true,
|
||||
zIndex:9999,
|
||||
mainCSS:'dd',
|
||||
useSprite:false,
|
||||
animStyle:'slideDown',
|
||||
onInit:'',
|
||||
style:''
|
||||
}, options);
|
||||
this.ddProp = new Object();//storing propeties;
|
||||
var oldSelectedValue = "";
|
||||
var actionSettings ={};
|
||||
actionSettings.insideWindow = true;
|
||||
actionSettings.keyboardAction = false;
|
||||
actionSettings.currentKey = null;
|
||||
var ddList = false;
|
||||
var config = {postElementHolder:'_msddHolder', postID:'_msdd', postTitleID:'_title',postTitleTextID:'_titletext',postChildID:'_child',postAID:'_msa',postOPTAID:'_msopta',postInputID:'_msinput', postArrowID:'_arrow', postInputhidden:'_inp'};
|
||||
var styles = {dd:options.mainCSS, ddTitle:'ddTitle', arrow:'arrow', ddChild:'ddChild', ddTitleText:'ddTitleText', disabled:.30, ddOutOfVision:'ddOutOfVision', borderTop:'borderTop', noBorderTop:'noBorderTop'};
|
||||
var attributes = {actions:"focus,blur,change,click,dblclick,mousedown,mouseup,mouseover,mousemove,mouseout,keypress,keydown,keyup", prop:"size,multiple,disabled,tabindex"};
|
||||
this.onActions = new Object();
|
||||
var elementid = $(sElement).attr("id");
|
||||
var inlineCSS = $(sElement).attr("style");
|
||||
options.style += (inlineCSS==undefined) ? "" : inlineCSS;
|
||||
var allOptions = $(sElement).children();
|
||||
ddList = ($(sElement).attr("size")>1 || $(sElement).attr("multiple")==true) ? true : false;
|
||||
if(ddList) {options.visibleRows = $(sElement).attr("size");};
|
||||
var a_array = {};//stores id, html & value etc
|
||||
|
||||
var getPostID = function (id) {
|
||||
return elementid+config[id];
|
||||
};
|
||||
var getOptionsProperties = function (option) {
|
||||
var currentOption = option;
|
||||
var styles = $(currentOption).attr("style");
|
||||
return styles;
|
||||
};
|
||||
var matchIndex = function (index) {
|
||||
var selectedIndex = $("#"+elementid+" option:selected");
|
||||
if(selectedIndex.length>1) {
|
||||
for(var i=0;i<selectedIndex.length;i++) {
|
||||
if(index == selectedIndex[i].index) {
|
||||
return true;
|
||||
};
|
||||
};
|
||||
} else if(selectedIndex.length==1) {
|
||||
if(selectedIndex[0].index==index) {
|
||||
return true;
|
||||
};
|
||||
};
|
||||
return false;
|
||||
};
|
||||
var createA = function(currentOptOption, current, currentopt, tp) {
|
||||
var aTag = "";
|
||||
//var aidfix = getPostID("postAID");
|
||||
var aidoptfix = (tp=="opt") ? getPostID("postOPTAID") : getPostID("postAID");
|
||||
var aid = (tp=="opt") ? aidoptfix+"_"+(current)+"_"+(currentopt) : aidoptfix+"_"+(current);
|
||||
var arrow = "";
|
||||
var clsName = "";
|
||||
if(options.useSprite!=false) {
|
||||
clsName = ' '+options.useSprite+' '+currentOptOption.className;
|
||||
} else {
|
||||
arrow = $(currentOptOption).attr("title");
|
||||
arrow = (arrow.length==0) ? "" : '<img src="'+arrow+'" align="absmiddle" /> ';
|
||||
};
|
||||
//console.debug("clsName "+clsName);
|
||||
var sText = $(currentOptOption).text();
|
||||
var sValue = $(currentOptOption).val();
|
||||
var sEnabledClass = ($(currentOptOption).attr("disabled")==true) ? "disabled" : "enabled";
|
||||
a_array[aid] = {html:arrow + sText, value:sValue, text:sText, index:currentOptOption.index, id:aid};
|
||||
var innerStyle = getOptionsProperties(currentOptOption);
|
||||
if(matchIndex(currentOptOption.index)==true) {
|
||||
aTag += '<a href="javascript:void(0);" class="selected '+sEnabledClass+clsName+'"';
|
||||
} else {
|
||||
aTag += '<a href="javascript:void(0);" class="'+sEnabledClass+clsName+'"';
|
||||
};
|
||||
if(innerStyle!==false && innerStyle!==undefined) {
|
||||
aTag += " style='"+innerStyle+"'";
|
||||
};
|
||||
aTag += ' id="'+aid+'">';
|
||||
aTag += arrow + '<span class="'+styles.ddTitleText+'">' +sText+'</span></a>';
|
||||
return aTag;
|
||||
};
|
||||
var createATags = function () {
|
||||
var childnodes = allOptions;
|
||||
if(childnodes.length==0) return "";
|
||||
var aTag = "";
|
||||
var aidfix = getPostID("postAID");
|
||||
var aidoptfix = getPostID("postOPTAID");
|
||||
childnodes.each(function(current){
|
||||
var currentOption = childnodes[current];
|
||||
//OPTGROUP
|
||||
if(currentOption.nodeName == "OPTGROUP") {
|
||||
aTag += "<div class='opta'>";
|
||||
aTag += "<span style='font-weight:bold;font-style:italic; clear:both;'>"+$(currentOption).attr("label")+"</span>";
|
||||
var optChild = $(currentOption).children();
|
||||
optChild.each(function(currentopt){
|
||||
var currentOptOption = optChild[currentopt];
|
||||
aTag += createA(currentOptOption, current, currentopt, "opt");
|
||||
});
|
||||
aTag += "</div>";
|
||||
|
||||
} else {
|
||||
aTag += createA(currentOption, current, "", "");
|
||||
};
|
||||
});
|
||||
return aTag;
|
||||
};
|
||||
var createChildDiv = function () {
|
||||
var id = getPostID("postID");
|
||||
var childid = getPostID("postChildID");
|
||||
var sStyle = options.style;
|
||||
sDiv = "";
|
||||
sDiv += '<div id="'+childid+'" class="'+styles.ddChild+'"';
|
||||
if(!ddList) {
|
||||
sDiv += (sStyle!="") ? ' style="'+sStyle+'"' : '';
|
||||
} else {
|
||||
sDiv += (sStyle!="") ? ' style="border-top:1px solid #c3c3c3;display:block;position:relative;'+sStyle+'"' : '';
|
||||
};
|
||||
sDiv += '>';
|
||||
return sDiv;
|
||||
};
|
||||
|
||||
var createTitleDiv = function () {
|
||||
var titleid = getPostID("postTitleID");
|
||||
var arrowid = getPostID("postArrowID");
|
||||
var titletextid = getPostID("postTitleTextID");
|
||||
var inputhidden = getPostID("postInputhidden");
|
||||
var sText = "";
|
||||
var arrow = "";
|
||||
if(document.getElementById(elementid).options.length>0) {
|
||||
sText = $("#"+elementid+" option:selected").text();
|
||||
arrow = $("#"+elementid+" option:selected").attr("title");
|
||||
};
|
||||
//console.debug("sObj "+sObj.length);
|
||||
arrow = (arrow.length==0 || arrow==undefined || options.showIcon==false || options.useSprite!=false) ? "" : '<img src="'+arrow+'" align="absmiddle" /> ';
|
||||
var sDiv = '<div id="'+titleid+'" class="'+styles.ddTitle+'"';
|
||||
sDiv += '>';
|
||||
sDiv += '<span id="'+arrowid+'" class="'+styles.arrow+'"></span><span class="'+styles.ddTitleText+'" id="'+titletextid+'">'+arrow + '<span class="'+styles.ddTitleText+'">'+sText+'</span></span></div>';
|
||||
return sDiv;
|
||||
};
|
||||
var applyEventsOnA = function() {
|
||||
var childid = getPostID("postChildID");
|
||||
$("#"+childid+ " a.enabled").unbind("click"); //remove old one
|
||||
$("#"+childid+ " a.enabled").bind("click", function(event) {
|
||||
event.preventDefault();
|
||||
manageSelection(this);
|
||||
if(!ddList) {
|
||||
$("#"+childid).unbind("mouseover");
|
||||
setInsideWindow(false);
|
||||
var sText = (options.showIcon==false) ? $(this).text() : $(this).html();
|
||||
//alert("sText "+sText);
|
||||
setTitleText(sText);
|
||||
//$this.data("dd").close();
|
||||
$this.close();
|
||||
};
|
||||
setValue();
|
||||
//actionSettings.oldIndex = a_array[$($this).attr("id")].index;
|
||||
});
|
||||
};
|
||||
var createDropDown = function () {
|
||||
var changeInsertionPoint = false;
|
||||
var id = getPostID("postID");
|
||||
var titleid = getPostID("postTitleID");
|
||||
var titletextid = getPostID("postTitleTextID");
|
||||
var childid = getPostID("postChildID");
|
||||
var arrowid = getPostID("postArrowID");
|
||||
var iWidth = $("#"+elementid).width();
|
||||
iWidth = iWidth+2;//it always give -2 width; i dont know why
|
||||
var sStyle = options.style;
|
||||
if($("#"+id).length>0) {
|
||||
$("#"+id).remove();
|
||||
changeInsertionPoint = true;
|
||||
};
|
||||
var sDiv = '<div id="'+id+'" class="'+styles.dd+'"';
|
||||
sDiv += (sStyle!="") ? ' style="'+sStyle+'"' : '';
|
||||
sDiv += '>';
|
||||
//create title bar
|
||||
sDiv += createTitleDiv();
|
||||
//create child
|
||||
sDiv += createChildDiv();
|
||||
sDiv += createATags();
|
||||
sDiv += "</div>";
|
||||
sDiv += "</div>";
|
||||
if(changeInsertionPoint==true) {
|
||||
var sid =getPostID("postElementHolder");
|
||||
$("#"+sid).after(sDiv);
|
||||
} else {
|
||||
$("#"+elementid).after(sDiv);
|
||||
};
|
||||
if(ddList) {
|
||||
var titleid = getPostID("postTitleID");
|
||||
$("#"+titleid).hide();
|
||||
};
|
||||
|
||||
$("#"+id).css("width", iWidth+"px");
|
||||
$("#"+childid).css("width", (iWidth-2)+"px");
|
||||
if(allOptions.length>options.visibleRows) {
|
||||
var margin = parseInt($("#"+childid+" a:first").css("padding-bottom")) + parseInt($("#"+childid+" a:first").css("padding-top"));
|
||||
var iHeight = ((options.rowHeight)*options.visibleRows) - margin;
|
||||
$("#"+childid).css("height", iHeight+"px");
|
||||
} else if(ddList) {
|
||||
var iHeight = $("#"+elementid).height();
|
||||
$("#"+childid).css("height", iHeight+"px");
|
||||
};
|
||||
//set out of vision
|
||||
if(changeInsertionPoint==false) {
|
||||
setOutOfVision();
|
||||
addRefreshMethods(elementid);
|
||||
};
|
||||
if($("#"+elementid).attr("disabled")==true) {
|
||||
$("#"+id).css("opacity", styles.disabled);
|
||||
};
|
||||
applyEvents();
|
||||
//add events
|
||||
//arrow hightlight
|
||||
$("#"+titleid).bind("mouseover", function(event) {
|
||||
hightlightArrow(1);
|
||||
});
|
||||
$("#"+titleid).bind("mouseout", function(event) {
|
||||
hightlightArrow(0);
|
||||
});
|
||||
//open close events
|
||||
applyEventsOnA();
|
||||
$("#"+childid+ " a.disabled").css("opacity", styles.disabled);
|
||||
//alert("ddList "+ddList)
|
||||
if(ddList) {
|
||||
$("#"+childid).bind("mouseover", function(event) {if(!actionSettings.keyboardAction) {
|
||||
actionSettings.keyboardAction = true;
|
||||
$(document).bind("keydown", function(event) {
|
||||
var keyCode = event.keyCode;
|
||||
actionSettings.currentKey = keyCode;
|
||||
if(keyCode==39 || keyCode==40) {
|
||||
//move to next
|
||||
event.preventDefault(); event.stopPropagation();
|
||||
next();
|
||||
setValue();
|
||||
};
|
||||
if(keyCode==37 || keyCode==38) {
|
||||
event.preventDefault(); event.stopPropagation();
|
||||
//move to previous
|
||||
previous();
|
||||
setValue();
|
||||
};
|
||||
});
|
||||
|
||||
}});
|
||||
};
|
||||
$("#"+childid).bind("mouseout", function(event) {setInsideWindow(false);$(document).unbind("keydown");actionSettings.keyboardAction = false;actionSettings.currentKey=null;});
|
||||
$("#"+titleid).bind("click", function(event) {
|
||||
setInsideWindow(false);
|
||||
if($("#"+childid+":visible").length==1) {
|
||||
$("#"+childid).unbind("mouseover");
|
||||
} else {
|
||||
$("#"+childid).bind("mouseover", function(event) {setInsideWindow(true);});
|
||||
//alert("open "+elementid + $this);
|
||||
//$this.data("dd").openMe();
|
||||
$this.open();
|
||||
};
|
||||
});
|
||||
$("#"+titleid).bind("mouseout", function(evt) {
|
||||
setInsideWindow(false);
|
||||
});
|
||||
if(options.showIcon && options.useSprite!=false) {
|
||||
setTitleImageSprite();
|
||||
};
|
||||
};
|
||||
var getByIndex = function (index) {
|
||||
for(var i in a_array) {
|
||||
if(a_array[i].index==index) {
|
||||
return a_array[i];
|
||||
};
|
||||
};
|
||||
return -1;
|
||||
};
|
||||
var manageSelection = function (obj) {
|
||||
var childid = getPostID("postChildID");
|
||||
if($("#"+childid+ " a.selected").length==1) { //check if there is any selected
|
||||
oldSelectedValue = $("#"+childid+ " a.selected").text(); //i should have value here. but sometime value is missing
|
||||
//alert("oldSelectedValue "+oldSelectedValue);
|
||||
};
|
||||
if(!ddList) {
|
||||
$("#"+childid+ " a.selected").removeClass("selected");
|
||||
};
|
||||
var selectedA = $("#"+childid + " a.selected").attr("id");
|
||||
if(selectedA!=undefined) {
|
||||
var oldIndex = (actionSettings.oldIndex==undefined || actionSettings.oldIndex==null) ? a_array[selectedA].index : actionSettings.oldIndex;
|
||||
};
|
||||
if(obj && !ddList) {
|
||||
$(obj).addClass("selected");
|
||||
};
|
||||
if(ddList) {
|
||||
var keyCode = actionSettings.currentKey;
|
||||
if($("#"+elementid).attr("multiple")==true) {
|
||||
if(keyCode == 17) {
|
||||
//control
|
||||
actionSettings.oldIndex = a_array[$(obj).attr("id")].index;
|
||||
$(obj).toggleClass("selected");
|
||||
//multiple
|
||||
} else if(keyCode==16) {
|
||||
$("#"+childid+ " a.selected").removeClass("selected");
|
||||
$(obj).addClass("selected");
|
||||
//shift
|
||||
var currentSelected = $(obj).attr("id");
|
||||
var currentIndex = a_array[currentSelected].index;
|
||||
for(var i=Math.min(oldIndex, currentIndex);i<=Math.max(oldIndex, currentIndex);i++) {
|
||||
$("#"+getByIndex(i).id).addClass("selected");
|
||||
};
|
||||
} else {
|
||||
$("#"+childid+ " a.selected").removeClass("selected");
|
||||
$(obj).addClass("selected");
|
||||
actionSettings.oldIndex = a_array[$(obj).attr("id")].index;
|
||||
};
|
||||
} else {
|
||||
$("#"+childid+ " a.selected").removeClass("selected");
|
||||
$(obj).addClass("selected");
|
||||
actionSettings.oldIndex = a_array[$(obj).attr("id")].index;
|
||||
};
|
||||
//isSingle
|
||||
};
|
||||
};
|
||||
var addRefreshMethods = function (id) {
|
||||
//deprecated
|
||||
var objid = id;
|
||||
document.getElementById(objid).refresh = function(e) {
|
||||
$("#"+objid).msDropDown(options);
|
||||
};
|
||||
};
|
||||
var setInsideWindow = function (val) {
|
||||
actionSettings.insideWindow = val;
|
||||
};
|
||||
var getInsideWindow = function () {
|
||||
return actionSettings.insideWindow;
|
||||
};
|
||||
var applyEvents = function () {
|
||||
var mainid = getPostID("postID");
|
||||
var actions_array = attributes.actions.split(",");
|
||||
for(var iCount=0;iCount<actions_array.length;iCount++) {
|
||||
var action = actions_array[iCount];
|
||||
//var actionFound = $("#"+elementid).attr(action);
|
||||
var actionFound = has_handler(action);//$("#"+elementid).attr(action);
|
||||
//console.debug(elementid +" action " + action , "actionFound "+actionFound);
|
||||
if(actionFound==true) {
|
||||
switch(action) {
|
||||
case "focus":
|
||||
$("#"+mainid).bind("mouseenter", function(event) {
|
||||
document.getElementById(elementid).focus();
|
||||
//$("#"+elementid).focus();
|
||||
});
|
||||
break;
|
||||
case "click":
|
||||
$("#"+mainid).bind("click", function(event) {
|
||||
//document.getElementById(elementid).onclick();
|
||||
$("#"+elementid).trigger("click");
|
||||
});
|
||||
break;
|
||||
case "dblclick":
|
||||
$("#"+mainid).bind("dblclick", function(event) {
|
||||
//document.getElementById(elementid).ondblclick();
|
||||
$("#"+elementid).trigger("dblclick");
|
||||
});
|
||||
break;
|
||||
case "mousedown":
|
||||
$("#"+mainid).bind("mousedown", function(event) {
|
||||
//document.getElementById(elementid).onmousedown();
|
||||
$("#"+elementid).trigger("mousedown");
|
||||
});
|
||||
break;
|
||||
case "mouseup":
|
||||
//has in close mthod
|
||||
$("#"+mainid).bind("mouseup", function(event) {
|
||||
//document.getElementById(elementid).onmouseup();
|
||||
$("#"+elementid).trigger("mouseup");
|
||||
//setValue();
|
||||
});
|
||||
break;
|
||||
case "mouseover":
|
||||
$("#"+mainid).bind("mouseover", function(event) {
|
||||
//document.getElementById(elementid).onmouseover();
|
||||
$("#"+elementid).trigger("mouseover");
|
||||
});
|
||||
break;
|
||||
case "mousemove":
|
||||
$("#"+mainid).bind("mousemove", function(event) {
|
||||
//document.getElementById(elementid).onmousemove();
|
||||
$("#"+elementid).trigger("mousemove");
|
||||
});
|
||||
break;
|
||||
case "mouseout":
|
||||
$("#"+mainid).bind("mouseout", function(event) {
|
||||
//document.getElementById(elementid).onmouseout();
|
||||
$("#"+elementid).trigger("mouseout");
|
||||
});
|
||||
break;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
var setOutOfVision = function () {
|
||||
var sId = getPostID("postElementHolder");
|
||||
$("#"+elementid).after("<div class='"+styles.ddOutOfVision+"' style='height:0px;overflow:hidden;position:absolute;' id='"+sId+"'></div>");
|
||||
$("#"+elementid).appendTo($("#"+sId));
|
||||
};
|
||||
var setTitleText = function (sText) {
|
||||
var titletextid = getPostID("postTitleTextID");
|
||||
$("#"+titletextid).html(sText);
|
||||
};
|
||||
var next = function () {
|
||||
var titletextid = getPostID("postTitleTextID");
|
||||
var childid = getPostID("postChildID");
|
||||
var allAs = $("#"+childid + " a.enabled");
|
||||
for(var current=0;current<allAs.length;current++) {
|
||||
var currentA = allAs[current];
|
||||
var id = $(currentA).attr("id");
|
||||
if($(currentA).hasClass("selected") && current<allAs.length-1) {
|
||||
$("#"+childid + " a.selected").removeClass("selected");
|
||||
$(allAs[current+1]).addClass("selected");
|
||||
//manageSelection(allAs[current+1]);
|
||||
var selectedA = $("#"+childid + " a.selected").attr("id");
|
||||
if(!ddList) {
|
||||
var sText = (options.showIcon==false) ? a_array[selectedA].text : a_array[selectedA].html;
|
||||
setTitleText(sText);
|
||||
};
|
||||
if(parseInt(($("#"+selectedA).position().top+$("#"+selectedA).height()))>=parseInt($("#"+childid).height())) {
|
||||
$("#"+childid).scrollTop(($("#"+childid).scrollTop())+$("#"+selectedA).height()+$("#"+selectedA).height());
|
||||
};
|
||||
break;
|
||||
};
|
||||
};
|
||||
};
|
||||
var previous = function () {
|
||||
var titletextid = getPostID("postTitleTextID");
|
||||
var childid = getPostID("postChildID");
|
||||
var allAs = $("#"+childid + " a.enabled");
|
||||
for(var current=0;current<allAs.length;current++) {
|
||||
var currentA = allAs[current];
|
||||
var id = $(currentA).attr("id");
|
||||
if($(currentA).hasClass("selected") && current!=0) {
|
||||
$("#"+childid + " a.selected").removeClass("selected");
|
||||
$(allAs[current-1]).addClass("selected");
|
||||
//manageSelection(allAs[current-1]);
|
||||
var selectedA = $("#"+childid + " a.selected").attr("id");
|
||||
if(!ddList) {
|
||||
var sText = (options.showIcon==false) ? a_array[selectedA].text : a_array[selectedA].html;
|
||||
setTitleText(sText);
|
||||
};
|
||||
if(parseInt(($("#"+selectedA).position().top+$("#"+selectedA).height())) <=0) {
|
||||
$("#"+childid).scrollTop(($("#"+childid).scrollTop()-$("#"+childid).height())-$("#"+selectedA).height());
|
||||
};
|
||||
break;
|
||||
};
|
||||
};
|
||||
};
|
||||
var setTitleImageSprite = function() {
|
||||
if(options.useSprite!=false) {
|
||||
var titletextid = getPostID("postTitleTextID");
|
||||
var sClassName = document.getElementById(elementid).options[document.getElementById(elementid).selectedIndex].className;
|
||||
if(sClassName.length>0) {
|
||||
var childid = getPostID("postChildID");
|
||||
var id = $("#"+childid + " a."+sClassName).attr("id");
|
||||
var backgroundImg = $("#"+id).css("background-image");
|
||||
var backgroundPosition = $("#"+id).css("background-position");
|
||||
var paddingLeft = $("#"+id).css("padding-left");
|
||||
if(backgroundImg!=undefined) {
|
||||
$("#"+titletextid).find("."+styles.ddTitleText).attr('style', "background:"+backgroundImg);
|
||||
};
|
||||
if(backgroundPosition!=undefined) {
|
||||
$("#"+titletextid).find("."+styles.ddTitleText).css('background-position', backgroundPosition);
|
||||
};
|
||||
if(paddingLeft!=undefined) {
|
||||
$("#"+titletextid).find("."+styles.ddTitleText).css('padding-left', paddingLeft);
|
||||
};
|
||||
$("#"+titletextid).find("."+styles.ddTitleText).css('background-repeat', 'no-repeat');
|
||||
$("#"+titletextid).find("."+styles.ddTitleText).css('padding-bottom', '2px');
|
||||
};
|
||||
};
|
||||
};
|
||||
var setValue = function () {
|
||||
//alert("setValue "+elementid);
|
||||
var childid = getPostID("postChildID");
|
||||
var allSelected = $("#"+childid + " a.selected");
|
||||
if(allSelected.length==1) {
|
||||
var sText = $("#"+childid + " a.selected").text();
|
||||
var selectedA = $("#"+childid + " a.selected").attr("id");
|
||||
if(selectedA!=undefined) {
|
||||
var sValue = a_array[selectedA].value;
|
||||
document.getElementById(elementid).selectedIndex = a_array[selectedA].index;
|
||||
};
|
||||
//set image on title if using sprite
|
||||
if(options.showIcon && options.useSprite!=false)
|
||||
setTitleImageSprite();
|
||||
} else if(allSelected.length>1) {
|
||||
var alls = $("#"+elementid +" > option:selected").removeAttr("selected");
|
||||
for(var i=0;i<allSelected.length;i++) {
|
||||
var selectedA = $(allSelected[i]).attr("id");
|
||||
var index = a_array[selectedA].index;
|
||||
document.getElementById(elementid).options[index].selected = "selected";
|
||||
};
|
||||
};
|
||||
//alert(document.getElementById(elementid).selectedIndex);
|
||||
var sIndex = document.getElementById(elementid).selectedIndex;
|
||||
$this.ddProp["selectedIndex"]= sIndex;
|
||||
//alert("selectedIndex "+ $this.ddProp["selectedIndex"] + " sIndex "+sIndex);
|
||||
};
|
||||
var has_handler = function (name) {
|
||||
// True if a handler has been added in the html.
|
||||
if ($("#"+elementid).attr("on" + name) != undefined) {
|
||||
return true;
|
||||
};
|
||||
// True if a handler has been added using jQuery.
|
||||
var evs = $("#"+elementid).data("events");
|
||||
if (evs && evs[name]) {
|
||||
return true;
|
||||
};
|
||||
return false;
|
||||
};
|
||||
var checkMethodAndApply = function () {
|
||||
var childid = getPostID("postChildID");
|
||||
if(has_handler('change')==true) {
|
||||
//alert(1);
|
||||
var currentSelectedValue = a_array[$("#"+childid +" a.selected").attr("id")].text;
|
||||
//alert("oldSelectedValue "+oldSelectedValue + " currentSelectedValue "+currentSelectedValue);
|
||||
if($.trim(oldSelectedValue) !== $.trim(currentSelectedValue)){
|
||||
$("#"+elementid).trigger("change");
|
||||
};
|
||||
};
|
||||
if(has_handler('mouseup')==true) {
|
||||
$("#"+elementid).trigger("mouseup");
|
||||
};
|
||||
if(has_handler('blur')==true) {
|
||||
$(document).bind("mouseup", function(evt) {
|
||||
$("#"+elementid).focus();
|
||||
$("#"+elementid)[0].blur();
|
||||
setValue();
|
||||
$(document).unbind("mouseup");
|
||||
});
|
||||
};
|
||||
};
|
||||
var hightlightArrow = function(ison) {
|
||||
var arrowid = getPostID("postArrowID");
|
||||
if(ison==1)
|
||||
$("#"+arrowid).css({backgroundPosition:'0 100%'});
|
||||
else
|
||||
$("#"+arrowid).css({backgroundPosition:'0 0'});
|
||||
};
|
||||
var setOriginalProperties = function() {
|
||||
//properties = {};
|
||||
//alert($this.data("dd"));
|
||||
for(var i in document.getElementById(elementid)) {
|
||||
if(typeof(document.getElementById(elementid)[i])!='function' && document.getElementById(elementid)[i]!==undefined && document.getElementById(elementid)[i]!==null) {
|
||||
$this.set(i, document.getElementById(elementid)[i], true);//true = setting local properties
|
||||
};
|
||||
};
|
||||
};
|
||||
var setValueByIndex = function(prop, val) {
|
||||
if(getByIndex(val) != -1) {
|
||||
document.getElementById(elementid)[prop] = val;
|
||||
var childid = getPostID("postChildID");
|
||||
$("#"+childid+ " a.selected").removeClass("selected");
|
||||
$("#"+getByIndex(val).id).addClass("selected");
|
||||
var sText = getByIndex(document.getElementById(elementid).selectedIndex).html;
|
||||
setTitleText(sText);
|
||||
};
|
||||
};
|
||||
var addRemoveFromIndex = function(i, action) {
|
||||
if(action=='d') {
|
||||
for(var key in a_array) {
|
||||
if(a_array[key].index == i) {
|
||||
delete a_array[key];
|
||||
break;
|
||||
};
|
||||
};
|
||||
};
|
||||
//update index
|
||||
var count = 0;
|
||||
for(var key in a_array) {
|
||||
a_array[key].index = count;
|
||||
count++;
|
||||
};
|
||||
};
|
||||
var shouldOpenOpposite = function() {
|
||||
var childid = getPostID("postChildID");
|
||||
var main = getPostID("postID");
|
||||
var pos = $("#"+main).position();
|
||||
var mH = $("#"+main).height();
|
||||
var wH = $(window).height();
|
||||
var st = $(window).scrollTop();
|
||||
var cH = $("#"+childid).height();
|
||||
var css = {zIndex:options.zIndex, top:(pos.top+mH)+"px", display:"none"};
|
||||
var ani = options.animStyle;
|
||||
var opp = false;
|
||||
var borderTop = styles.noBorderTop;
|
||||
$("#"+childid).removeClass(styles.noBorderTop);
|
||||
$("#"+childid).removeClass(styles.borderTop);
|
||||
if( (wH+st) < Math.floor(cH+mH+pos.top) ) {
|
||||
var tp = pos.top-cH;
|
||||
if((pos.top-cH)<0) {
|
||||
tp = 10;
|
||||
};
|
||||
css = {zIndex:options.zIndex, top:tp+"px", display:"none"};
|
||||
ani = "show";
|
||||
opp = true;
|
||||
borderTop = styles.borderTop;
|
||||
};
|
||||
return {opp:opp, ani:ani, css:css, border:borderTop};
|
||||
};
|
||||
/************* public methods *********************/
|
||||
this.open = function() {
|
||||
if(($this.get("disabled", true) == true) || ($this.get("options", true).length==0)) return;
|
||||
var childid = getPostID("postChildID");
|
||||
if(msOldDiv!="" && childid!=msOldDiv) {
|
||||
$("#"+msOldDiv).slideUp("fast");
|
||||
$("#"+msOldDiv).css({zIndex:'0'});
|
||||
};
|
||||
if($("#"+childid).css("display")=="none") {
|
||||
//oldSelectedValue = a_array[$("#"+childid +" a.selected").attr("id")].text;
|
||||
//keyboard action
|
||||
$(document).bind("keydown", function(event) {
|
||||
var keyCode = event.keyCode;
|
||||
if(keyCode==39 || keyCode==40) {
|
||||
//move to next
|
||||
event.preventDefault(); event.stopPropagation();
|
||||
next();
|
||||
};
|
||||
if(keyCode==37 || keyCode==38) {
|
||||
event.preventDefault(); event.stopPropagation();
|
||||
//move to previous
|
||||
previous();
|
||||
};
|
||||
if(keyCode==27 || keyCode==13) {
|
||||
//$this.data("dd").close();
|
||||
$this.close();
|
||||
setValue();
|
||||
};
|
||||
if($("#"+elementid).attr("onkeydown")!=undefined) {
|
||||
document.getElementById(elementid).onkeydown();
|
||||
};
|
||||
});
|
||||
|
||||
$(document).bind("keyup", function(event) {
|
||||
if($("#"+elementid).attr("onkeyup")!=undefined) {
|
||||
//$("#"+elementid).keyup();
|
||||
document.getElementById(elementid).onkeyup();
|
||||
};
|
||||
});
|
||||
//end keyboard action
|
||||
|
||||
//close onmouseup
|
||||
$(document).bind("mouseup", function(evt){
|
||||
if(getInsideWindow()==false) {
|
||||
//alert("evt.target: "+evt.target);
|
||||
//$this.data("dd").close();
|
||||
$this.close();
|
||||
};
|
||||
});
|
||||
|
||||
//check open
|
||||
var wf = shouldOpenOpposite();
|
||||
$("#"+childid).css(wf.css);
|
||||
if(wf.opp==true) {
|
||||
$("#"+childid).css({display:'block'});
|
||||
$("#"+childid).addClass(wf.border);
|
||||
if($this.onActions["onOpen"]!=null) {
|
||||
eval($this.onActions["onOpen"])($this);
|
||||
};
|
||||
} else {
|
||||
$("#"+childid)[wf.ani]("fast", function() {
|
||||
$("#"+childid).addClass(wf.border);
|
||||
if($this.onActions["onOpen"]!=null) {
|
||||
eval($this.onActions["onOpen"])($this);
|
||||
};
|
||||
});
|
||||
};
|
||||
if(childid != msOldDiv) {
|
||||
msOldDiv = childid;
|
||||
};
|
||||
};
|
||||
};
|
||||
this.close = function() {
|
||||
var childid = getPostID("postChildID");
|
||||
$(document).unbind("keydown");
|
||||
$(document).unbind("keyup");
|
||||
$(document).unbind("mouseup");
|
||||
var wf = shouldOpenOpposite();
|
||||
if(wf.opp==true) {
|
||||
$("#"+childid).css("display", "none");
|
||||
};
|
||||
$("#"+childid).slideUp("fast", function(event) {
|
||||
checkMethodAndApply();
|
||||
$("#"+childid).css({zIndex:'0'});
|
||||
if($this.onActions["onClose"]!=null) {
|
||||
eval($this.onActions["onClose"])($this);
|
||||
};
|
||||
});
|
||||
|
||||
};
|
||||
this.selectedIndex = function(i) {
|
||||
$this.set("selectedIndex", i);
|
||||
};
|
||||
//update properties
|
||||
this.set = function(prop, val, isLocal) {
|
||||
//alert("- set " + prop + " : "+val);
|
||||
if(prop==undefined || val==undefined) throw {message:"set to what?"};
|
||||
$this.ddProp[prop] = val;
|
||||
if(isLocal!=true) {
|
||||
switch(prop) {
|
||||
case "selectedIndex":
|
||||
setValueByIndex(prop, val);
|
||||
break;
|
||||
case "disabled":
|
||||
$this.disabled(val, true);
|
||||
break;
|
||||
case "multiple":
|
||||
document.getElementById(elementid)[prop] = val;
|
||||
ddList = ($(sElement).attr("size")>0 || $(sElement).attr("multiple")==true) ? true : false;
|
||||
if(ddList) {
|
||||
//do something
|
||||
var iHeight = $("#"+elementid).height();
|
||||
var childid = getPostID("postChildID");
|
||||
$("#"+childid).css("height", iHeight+"px");
|
||||
//hide titlebar
|
||||
var titleid = getPostID("postTitleID");
|
||||
$("#"+titleid).hide();
|
||||
var childid = getPostID("postChildID");
|
||||
$("#"+childid).css({display:'block',position:'relative'});
|
||||
applyEventsOnA();
|
||||
};
|
||||
break;
|
||||
case "size":
|
||||
document.getElementById(elementid)[prop] = val;
|
||||
if(val==0) {
|
||||
document.getElementById(elementid).multiple = false;
|
||||
};
|
||||
ddList = ($(sElement).attr("size")>0 || $(sElement).attr("multiple")==true) ? true : false;
|
||||
if(val==0) {
|
||||
//show titlebar
|
||||
var titleid = getPostID("postTitleID");
|
||||
$("#"+titleid).show();
|
||||
var childid = getPostID("postChildID");
|
||||
$("#"+childid).css({display:'none',position:'absolute'});
|
||||
var sText = "";
|
||||
if(document.getElementById(elementid).selectedIndex>=0) {
|
||||
var aObj = getByIndex(document.getElementById(elementid).selectedIndex);
|
||||
sText = aObj.html;
|
||||
manageSelection($("#"+aObj.id));
|
||||
};
|
||||
setTitleText(sText);
|
||||
} else {
|
||||
//hide titlebar
|
||||
var titleid = getPostID("postTitleID");
|
||||
$("#"+titleid).hide();
|
||||
var childid = getPostID("postChildID");
|
||||
$("#"+childid).css({display:'block',position:'relative'});
|
||||
};
|
||||
break;
|
||||
default:
|
||||
try{
|
||||
//check if this is not a readonly properties
|
||||
document.getElementById(elementid)[prop] = val;
|
||||
} catch(e) {
|
||||
//silent
|
||||
};
|
||||
break;
|
||||
};
|
||||
};
|
||||
//alert("get " + prop + " : "+$this.ddProp[prop]);
|
||||
//$this.set("selectedIndex", 0);
|
||||
};
|
||||
this.get = function(prop, forceRefresh) {
|
||||
if(prop==undefined && forceRefresh==undefined) {
|
||||
//alert("c1 : " +$this.ddProp);
|
||||
return $this.ddProp;
|
||||
};
|
||||
if(prop!=undefined && forceRefresh==undefined) {
|
||||
//alert("c2 : " +$this.ddProp[prop]);
|
||||
return ($this.ddProp[prop]!=undefined) ? $this.ddProp[prop] : null;
|
||||
};
|
||||
if(prop!=undefined && forceRefresh!=undefined) {
|
||||
//alert("c3 : " +document.getElementById(elementid)[prop]);
|
||||
return document.getElementById(elementid)[prop];
|
||||
};
|
||||
};
|
||||
this.visible = function(val) {
|
||||
var id = getPostID("postID");
|
||||
if(val==true) {
|
||||
$("#"+id).show();
|
||||
} else if(val==false) {
|
||||
$("#"+id).hide();
|
||||
} else {
|
||||
return $("#"+id).css("display");
|
||||
};
|
||||
};
|
||||
this.add = function(opt, index) {
|
||||
var objOpt = opt;
|
||||
var sText = objOpt.text;
|
||||
var sValue = (objOpt.value==undefined || objOpt.value==null) ? sText : objOpt.value;
|
||||
var img = (objOpt.title==undefined || objOpt.title==null) ? '' : objOpt.title;
|
||||
var i = (index==undefined || index==null) ? document.getElementById(elementid).options.length : index;
|
||||
document.getElementById(elementid).options[i] = new Option(sText, sValue);
|
||||
if(img!='') document.getElementById(elementid).options[i].title = img;
|
||||
//check if exist
|
||||
var ifA = getByIndex(i);
|
||||
if(ifA != -1) {
|
||||
//replace
|
||||
var aTag = createA(document.getElementById(elementid).options[i], i, "", "");
|
||||
$("#"+ifA.id).html(aTag);
|
||||
//a_array[key]
|
||||
} else {
|
||||
var aTag = createA(document.getElementById(elementid).options[i], i, "", "");
|
||||
//add
|
||||
var childid = getPostID("postChildID");
|
||||
$("#"+childid).append(aTag);
|
||||
applyEventsOnA();
|
||||
};
|
||||
};
|
||||
this.remove = function(i) {
|
||||
document.getElementById(elementid).remove(i);
|
||||
if((getByIndex(i))!= -1) { $("#"+getByIndex(i).id).remove();addRemoveFromIndex(i, 'd');};
|
||||
//alert("a" +a);
|
||||
if(document.getElementById(elementid).length==0) {
|
||||
setTitleText("");
|
||||
} else {
|
||||
var sText = getByIndex(document.getElementById(elementid).selectedIndex).html;
|
||||
setTitleText(sText);
|
||||
};
|
||||
$this.set("selectedIndex", document.getElementById(elementid).selectedIndex);
|
||||
};
|
||||
this.disabled = function(dis, isLocal) {
|
||||
document.getElementById(elementid).disabled = dis;
|
||||
//alert(document.getElementById(elementid).disabled);
|
||||
var id = getPostID("postID");
|
||||
if(dis==true) {
|
||||
$("#"+id).css("opacity", styles.disabled);
|
||||
$this.close();
|
||||
} else if(dis==false) {
|
||||
$("#"+id).css("opacity", 1);
|
||||
};
|
||||
if(isLocal!=true) {
|
||||
$this.set("disabled", dis);
|
||||
};
|
||||
};
|
||||
//return form element
|
||||
this.form = function() {
|
||||
return (document.getElementById(elementid).form == undefined) ? null : document.getElementById(elementid).form;
|
||||
};
|
||||
this.item = function() {
|
||||
//index, subindex - use arguments.length
|
||||
if(arguments.length==1) {
|
||||
return document.getElementById(elementid).item(arguments[0]);
|
||||
} else if(arguments.length==2) {
|
||||
return document.getElementById(elementid).item(arguments[0], arguments[1]);
|
||||
} else {
|
||||
throw {message:"An index is required!"};
|
||||
};
|
||||
};
|
||||
this.namedItem = function(nm) {
|
||||
return document.getElementById(elementid).namedItem(nm);
|
||||
};
|
||||
this.multiple = function(is) {
|
||||
if(is==undefined) {
|
||||
return $this.get("multiple");
|
||||
} else {
|
||||
$this.set("multiple", is);
|
||||
};
|
||||
|
||||
};
|
||||
this.size = function(sz) {
|
||||
if(sz==undefined) {
|
||||
return $this.get("size");
|
||||
} else {
|
||||
$this.set("size", sz);
|
||||
};
|
||||
};
|
||||
this.addMyEvent = function(nm, fn) {
|
||||
$this.onActions[nm] = fn;
|
||||
};
|
||||
this.fireEvent = function(nm) {
|
||||
eval($this.onActions[nm])($this);
|
||||
};
|
||||
//end
|
||||
var updateCommonVars = function() {
|
||||
$this.set("version", $.msDropDown.version);
|
||||
$this.set("author", $.msDropDown.author);
|
||||
};
|
||||
var init = function() {
|
||||
//create wrapper
|
||||
createDropDown();
|
||||
//update propties
|
||||
//alert("init");
|
||||
setOriginalProperties();
|
||||
updateCommonVars();
|
||||
if(options.onInit!='') {
|
||||
eval(options.onInit)($this);
|
||||
};
|
||||
|
||||
};
|
||||
init();
|
||||
};
|
||||
//static
|
||||
$.msDropDown = {
|
||||
version: 2.35,
|
||||
author: "Marghoob Suleman",
|
||||
create: function(id, opt) {
|
||||
return $(id).msDropDown(opt).data("dd");
|
||||
}
|
||||
};
|
||||
$.fn.extend({
|
||||
msDropDown: function(options)
|
||||
{
|
||||
return this.each(function()
|
||||
{
|
||||
//if ($(this).data('dd')) return; // need to comment when using refresh method - will remove in next version
|
||||
var mydropdown = new dd(this, options);
|
||||
$(this).data('dd', mydropdown);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
165
include/limesurvey/scripts/jquery/jquery.js
vendored
31
include/limesurvey/scripts/jquery/jquery.json.min.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
(function($){$.toJSON=function(o)
|
||||
{if(typeof(JSON)=='object'&&JSON.stringify)
|
||||
return JSON.stringify(o);var type=typeof(o);if(o===null)
|
||||
return"null";if(type=="undefined")
|
||||
return undefined;if(type=="number"||type=="boolean")
|
||||
return o+"";if(type=="string")
|
||||
return $.quoteString(o);if(type=='object')
|
||||
{if(typeof o.toJSON=="function")
|
||||
return $.toJSON(o.toJSON());if(o.constructor===Date)
|
||||
{var month=o.getUTCMonth()+1;if(month<10)month='0'+month;var day=o.getUTCDate();if(day<10)day='0'+day;var year=o.getUTCFullYear();var hours=o.getUTCHours();if(hours<10)hours='0'+hours;var minutes=o.getUTCMinutes();if(minutes<10)minutes='0'+minutes;var seconds=o.getUTCSeconds();if(seconds<10)seconds='0'+seconds;var milli=o.getUTCMilliseconds();if(milli<100)milli='0'+milli;if(milli<10)milli='0'+milli;return'"'+year+'-'+month+'-'+day+'T'+
|
||||
hours+':'+minutes+':'+seconds+'.'+milli+'Z"';}
|
||||
if(o.constructor===Array)
|
||||
{var ret=[];for(var i=0;i<o.length;i++)
|
||||
ret.push($.toJSON(o[i])||"null");return"["+ret.join(",")+"]";}
|
||||
var pairs=[];for(var k in o){var name;var type=typeof k;if(type=="number")
|
||||
name='"'+k+'"';else if(type=="string")
|
||||
name=$.quoteString(k);else
|
||||
continue;if(typeof o[k]=="function")
|
||||
continue;var val=$.toJSON(o[k]);pairs.push(name+":"+val);}
|
||||
return"{"+pairs.join(", ")+"}";}};$.evalJSON=function(src)
|
||||
{if(typeof(JSON)=='object'&&JSON.parse)
|
||||
return JSON.parse(src);return eval("("+src+")");};$.secureEvalJSON=function(src)
|
||||
{if(typeof(JSON)=='object'&&JSON.parse)
|
||||
return JSON.parse(src);var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,'@');filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']');filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,'');if(/^[\],:{}\s]*$/.test(filtered))
|
||||
return eval("("+src+")");else
|
||||
throw new SyntaxError("Error parsing JSON, source is not valid.");};$.quoteString=function(string)
|
||||
{if(string.match(_escapeable))
|
||||
{return'"'+string.replace(_escapeable,function(a)
|
||||
{var c=_meta[a];if(typeof c==='string')return c;c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"';}
|
||||
return'"'+string+'"';};var _escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var _meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};})(jQuery);
|
||||
7
include/limesurvey/scripts/jquery/jquery.keypad.min.js
vendored
Normal file
20
include/limesurvey/scripts/jquery/jquery.multiselect.min.js
vendored
Normal file
140
include/limesurvey/scripts/jquery/jquery.notify.js
Normal file
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* jQuery Notify UI Widget 1.4
|
||||
* Copyright (c) 2010 Eric Hynds
|
||||
*
|
||||
* http://www.erichynds.com/jquery/a-jquery-ui-growl-ubuntu-notification-widget/
|
||||
*
|
||||
* Depends:
|
||||
* - jQuery 1.4
|
||||
* - jQuery UI 1.8 widget factory
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
|
||||
$.widget("ech.notify", {
|
||||
options: {
|
||||
speed: 500,
|
||||
expires: 5000,
|
||||
stack: 'below',
|
||||
custom: false
|
||||
},
|
||||
_init: function(){
|
||||
var self = this;
|
||||
this.templates = {};
|
||||
this.keys = [];
|
||||
|
||||
// build and save templates
|
||||
this.element.addClass("ui-notify").children().addClass("ui-notify-message ui-notify-message-style").each(function(i){
|
||||
var key = this.id || i;
|
||||
self.keys.push(key);
|
||||
self.templates[key] = $(this).removeAttr("id").wrap("<div></div>").parent().html(); // because $(this).andSelf().html() no workie
|
||||
}).end().empty().show();
|
||||
},
|
||||
create: function(template, msg, opts){
|
||||
if(typeof template === "object"){
|
||||
opts = msg;
|
||||
msg = template;
|
||||
template = null;
|
||||
}
|
||||
|
||||
var tpl = this.templates[ template || this.keys[0]];
|
||||
|
||||
// remove default styling class if rolling w/ custom classes
|
||||
if(opts && opts.custom){
|
||||
tpl = $(tpl).removeClass("ui-notify-message-style").wrap("<div></div>").parent().html();
|
||||
}
|
||||
|
||||
// return a new notification instance
|
||||
return new $.ech.notify.instance(this)._create(msg, $.extend({}, this.options, opts), tpl);
|
||||
}
|
||||
});
|
||||
|
||||
// instance constructor
|
||||
$.extend($.ech.notify, {
|
||||
instance: function(widget){
|
||||
this.parent = widget;
|
||||
this.isOpen = false;
|
||||
}
|
||||
});
|
||||
|
||||
// instance methods
|
||||
$.extend($.ech.notify.instance.prototype, {
|
||||
_create: function(params, options, template){
|
||||
this.options = options;
|
||||
|
||||
var self = this,
|
||||
|
||||
// build html template
|
||||
html = template.replace(/#(?:\{|%7B)(.*?)(?:\}|%7D)/g, function($1, $2){
|
||||
return ($2 in params) ? params[$2] : '';
|
||||
}),
|
||||
|
||||
// the actual message
|
||||
m = (this.element = $(html)),
|
||||
|
||||
// close link
|
||||
closelink = m.find(".ui-notify-close");
|
||||
|
||||
// clickable?
|
||||
if(typeof this.options.click === "function"){
|
||||
m.addClass("ui-notify-click").bind("click", function(e){
|
||||
self._trigger("click", e, self);
|
||||
});
|
||||
}
|
||||
|
||||
// show close link?
|
||||
if(closelink.length){
|
||||
closelink.bind("click", function(){
|
||||
self.close();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
this.open();
|
||||
|
||||
// auto expire?
|
||||
if(typeof options.expires === "number"){
|
||||
window.setTimeout(function(){
|
||||
self.close();
|
||||
}, options.expires);
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
close: function(){
|
||||
var self = this, speed = this.options.speed;
|
||||
|
||||
this.element.fadeTo(speed, 0).slideUp(speed, function(){
|
||||
self._trigger("close");
|
||||
self.isOpen = false;
|
||||
});
|
||||
|
||||
return this;
|
||||
},
|
||||
open: function(){
|
||||
if(this.isOpen || this._trigger("beforeopen") === false){
|
||||
return this;
|
||||
}
|
||||
|
||||
var self = this;
|
||||
|
||||
this.element[this.options.stack === 'above' ? 'prependTo' : 'appendTo'](this.parent.element).css({ display:"none", opacity:"" }).slideDown(this.options.speed, function(){
|
||||
self._trigger("open");
|
||||
self.isOpen = true;
|
||||
});
|
||||
|
||||
return this;
|
||||
},
|
||||
widget: function(){
|
||||
return this.element;
|
||||
},
|
||||
_trigger: function(type, e, instance){
|
||||
return this.parent._trigger.call( this, type, e, instance );
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
2149
include/limesurvey/scripts/jquery/jquery.qtip.js
Normal file
14
include/limesurvey/scripts/jquery/jquery.selectboxes.min.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2006-2008 Sam Collett (http://www.texotela.co.uk)
|
||||
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
||||
*
|
||||
* Version 2.2.4
|
||||
* Demo: http://www.texotela.co.uk/code/jquery/select/
|
||||
*
|
||||
* $LastChangedDate: 2008-06-17 17:27:25 +0100 (Tue, 17 Jun 2008) $
|
||||
* $Rev: 5727 $
|
||||
*
|
||||
*/
|
||||
;(function(h){h.fn.addOption=function(){var j=function(a,f,c,g){var d=document.createElement("option");d.value=f,d.text=c;var b=a.options;var e=b.length;if(!a.cache){a.cache={};for(var i=0;i<e;i++){a.cache[b[i].value]=i}}if(typeof a.cache[f]=="undefined")a.cache[f]=e;a.options[a.cache[f]]=d;if(g){d.selected=true}};var k=arguments;if(k.length==0)return this;var l=true;var m=false;var n,o,p;if(typeof(k[0])=="object"){m=true;n=k[0]}if(k.length>=2){if(typeof(k[1])=="boolean")l=k[1];else if(typeof(k[2])=="boolean")l=k[2];if(!m){o=k[0];p=k[1]}}this.each(function(){if(this.nodeName.toLowerCase()!="select")return;if(m){for(var a in n){j(this,a,n[a],l)}}else{j(this,o,p,l)}});return this};h.fn.ajaxAddOption=function(c,g,d,b,e){if(typeof(c)!="string")return this;if(typeof(g)!="object")g={};if(typeof(d)!="boolean")d=true;this.each(function(){var f=this;h.getJSON(c,g,function(a){h(f).addOption(a,d);if(typeof b=="function"){if(typeof e=="object"){b.apply(f,e)}else{b.call(f)}}})});return this};h.fn.removeOption=function(){var d=arguments;if(d.length==0)return this;var b=typeof(d[0]);var e,i;if(b=="string"||b=="object"||b=="function"){e=d[0];if(e.constructor==Array){var j=e.length;for(var k=0;k<j;k++){this.removeOption(e[k],d[1])}return this}}else if(b=="number")i=d[0];else return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return;if(this.cache)this.cache=null;var a=false;var f=this.options;if(!!e){var c=f.length;for(var g=c-1;g>=0;g--){if(e.constructor==RegExp){if(f[g].value.match(e)){a=true}}else if(f[g].value==e){a=true}if(a&&d[1]===true)a=f[g].selected;if(a){f[g]=null}a=false}}else{if(d[1]===true){a=f[i].selected}else{a=true}if(a){this.remove(i)}}});return this};h.fn.sortOptions=function(e){var i=h(this).selectedValues();var j=typeof(e)=="undefined"?true:!!e;this.each(function(){if(this.nodeName.toLowerCase()!="select")return;var c=this.options;var g=c.length;var d=[];for(var b=0;b<g;b++){d[b]={v:c[b].value,t:c[b].text}}d.sort(function(a,f){o1t=a.t.toLowerCase(),o2t=f.t.toLowerCase();if(o1t==o2t)return 0;if(j){return o1t<o2t?-1:1}else{return o1t>o2t?-1:1}});for(var b=0;b<g;b++){c[b].text=d[b].t;c[b].value=d[b].v}}).selectOptions(i,true);return this};h.fn.selectOptions=function(g,d){var b=g;var e=typeof(g);if(e=="object"&&b.constructor==Array){var i=this;h.each(b,function(){i.selectOptions(this,d)})};var j=d||false;if(e!="string"&&e!="function"&&e!="object")return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(b.constructor==RegExp){if(a[c].value.match(b)){a[c].selected=true}else if(j){a[c].selected=false}}else{if(a[c].value==b){a[c].selected=true}else if(j){a[c].selected=false}}}});return this};h.fn.copyOptions=function(g,d){var b=d||"selected";if(h(g).size()==0)return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(b=="all"||(b=="selected"&&a[c].selected)){h(g).addOption(a[c].value,a[c].text)}}});return this};h.fn.containsOption=function(g,d){var b=false;var e=g;var i=typeof(e);var j=typeof(d);if(i!="string"&&i!="function"&&i!="object")return j=="function"?this:b;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;if(b&&j!="function")return false;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(e.constructor==RegExp){if(a[c].value.match(e)){b=true;if(j=="function")d.call(a[c],c)}}else{if(a[c].value==e){b=true;if(j=="function")d.call(a[c],c)}}}});return j=="function"?this:b};h.fn.selectedValues=function(){var a=[];this.selectedOptions().each(function(){a[a.length]=this.value});return a};h.fn.selectedTexts=function(){var a=[];this.selectedOptions().each(function(){a[a.length]=this.text});return a};h.fn.selectedOptions=function(){return this.find("option:selected")}})(jQuery);
|
||||
2
include/limesurvey/scripts/jquery/jquery.tablesorter.min.js
vendored
Normal file
177
include/limesurvey/scripts/jquery/lime-calendar.js
vendored
@@ -1,85 +1,94 @@
|
||||
// This file will auto convert slider divs to sliders
|
||||
$(document).ready(function(){
|
||||
// call the init slider routine for each element of the .multinum-slider class
|
||||
$(".popupdate").each(function(i,e) {
|
||||
var basename = e.id.substr(6);
|
||||
format=$('#dateformat'+basename).val();
|
||||
language=$('#datelanguage'+basename).val();
|
||||
yearrange=$('#dateyearrange'+basename).val();
|
||||
$(e).datepicker({ dateFormat: format,
|
||||
showOn: 'both',
|
||||
changeYear: true,
|
||||
changeMonth: true,
|
||||
yearRange: yearrange,
|
||||
duration: 'fast'
|
||||
}, $.datepicker.regional[language]);
|
||||
});
|
||||
$('.year').change(dateUpdater);
|
||||
$('.month').change(dateUpdater);
|
||||
$('.day').change(dateUpdater)
|
||||
});
|
||||
|
||||
|
||||
function dateUpdater() {
|
||||
|
||||
if(this.id.substr(0,3)=='yea')
|
||||
{
|
||||
thisid=this.id.substr(4);
|
||||
}
|
||||
if(this.id.substr(0,3)=='mon')
|
||||
{
|
||||
thisid=this.id.substr(5);
|
||||
}
|
||||
if(this.id.substr(0,3)=='day')
|
||||
{
|
||||
thisid=this.id.substr(3);
|
||||
}
|
||||
|
||||
if (($('#year'+thisid).val()=='') || ($('#month'+thisid).val()=='') || ($('#day'+thisid).val()=='')){
|
||||
$('#qattribute_answer'+thisid).val('Please complete all parts of the date!');
|
||||
$('#answer'+thisid).val('');
|
||||
}
|
||||
else
|
||||
{
|
||||
ValidDate(this,$('#year'+thisid).val()+'-'+$('#month'+thisid).val()+'-'+$('#day'+thisid).val());
|
||||
parseddate=$.datepicker.parseDate( 'dd-mm-yy', $('#day'+thisid).val()+'-'+$('#month'+thisid).val()+'-'+$('#year'+thisid).val());
|
||||
$('#answer'+thisid).val($.datepicker.formatDate( $('#dateformat'+thisid).val(), parseddate));
|
||||
$('#answer'+thisid).change();
|
||||
$('#qattribute_answer'+thisid).val('');
|
||||
}
|
||||
}
|
||||
|
||||
function ValidDate(oObject, value) {// Regular expression used to check if date is in correct format
|
||||
var str_regexp = /[1-9][0-9]{3}-(0[1-9]|1[0-2])-([0-2][0-9]|3[0-1])/;
|
||||
var pattern = new RegExp(str_regexp);
|
||||
if ((value.match(pattern)!=null))
|
||||
{
|
||||
var date_array = value.split('-');
|
||||
var day = date_array[2];
|
||||
var month = date_array[1];
|
||||
var year = date_array[0];
|
||||
str_regexp = /1|3|5|7|8|10|12/;
|
||||
pattern = new RegExp(str_regexp);
|
||||
if ( day <= 31 && (month.match(pattern)!=null))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
str_regexp = /4|6|9|11/;
|
||||
pattern = new RegExp(str_regexp);
|
||||
if ( day <= 30 && (month.match(pattern)!=null))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (day == 29 && month == 2 && (year % 4 == 0))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (day <= 28 && month == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
window.alert('Date is not valid!');
|
||||
oObject.focus();
|
||||
return false;
|
||||
$(document).ready(function(){
|
||||
$(".popupdate").each(function(i,e) {
|
||||
var basename = e.id.substr(6);
|
||||
format=$('#dateformat'+basename).val();
|
||||
language=$('#datelanguage'+basename).val();
|
||||
yearrange=$('#dateyearrange'+basename).val();
|
||||
range=yearrange.split(':');
|
||||
$(e).datepicker({ dateFormat: format,
|
||||
showOn: 'both',
|
||||
changeYear: true,
|
||||
changeMonth: true,
|
||||
yearRange: yearrange,
|
||||
defaultDate: +0,
|
||||
minDate:new Date(range[0],0,1),
|
||||
maxDate: new Date(range[1],11,31),
|
||||
duration: 'fast'
|
||||
}, $.datepicker.regional[language]);
|
||||
});
|
||||
$('.month').change(dateUpdater);
|
||||
$('.day').change(dateUpdater)
|
||||
$('.year').change(dateUpdater);
|
||||
$('.year').change();
|
||||
});
|
||||
|
||||
|
||||
function dateUpdater() {
|
||||
|
||||
if(this.id.substr(0,3)=='yea')
|
||||
{
|
||||
thisid=this.id.substr(4);
|
||||
}
|
||||
if(this.id.substr(0,3)=='mon')
|
||||
{
|
||||
thisid=this.id.substr(5);
|
||||
}
|
||||
if(this.id.substr(0,3)=='day')
|
||||
{
|
||||
thisid=this.id.substr(3);
|
||||
}
|
||||
|
||||
|
||||
if (($('#year'+thisid).val()=='') && ($('#month'+thisid).val()=='') && ($('#day'+thisid).val()=='')){
|
||||
$('#qattribute_answer'+thisid).val('');
|
||||
$('#answer'+thisid).val('');
|
||||
}
|
||||
else if (($('#year'+thisid).val()=='') || ($('#month'+thisid).val()=='') || ($('#day'+thisid).val()=='')){
|
||||
$('#qattribute_answer'+thisid).val('Please complete all parts of the date!');
|
||||
$('#answer'+thisid).val('');
|
||||
}
|
||||
else
|
||||
{
|
||||
ValidDate(this,$('#year'+thisid).val()+'-'+$('#month'+thisid).val()+'-'+$('#day'+thisid).val());
|
||||
parseddate=$.datepicker.parseDate( 'dd-mm-yy', $('#day'+thisid).val()+'-'+$('#month'+thisid).val()+'-'+$('#year'+thisid).val());
|
||||
$('#answer'+thisid).val($.datepicker.formatDate( $('#dateformat'+thisid).val(), parseddate));
|
||||
$('#answer'+thisid).change();
|
||||
$('#qattribute_answer'+thisid).val('');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function ValidDate(oObject, value) {// Regular expression used to check if date is in correct format
|
||||
var str_regexp = /[1-9][0-9]{3}-(0[1-9]|1[0-2])-([0-2][0-9]|3[0-1])/;
|
||||
var pattern = new RegExp(str_regexp);
|
||||
if ((value.match(pattern)!=null))
|
||||
{
|
||||
var date_array = value.split('-');
|
||||
var day = date_array[2];
|
||||
var month = date_array[1];
|
||||
var year = date_array[0];
|
||||
str_regexp = /1|3|5|7|8|10|12/;
|
||||
pattern = new RegExp(str_regexp);
|
||||
if ( day <= 31 && (month.match(pattern)!=null))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
str_regexp = /4|6|9|11/;
|
||||
pattern = new RegExp(str_regexp);
|
||||
if ( day <= 30 && (month.match(pattern)!=null))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (day == 29 && month == 2 && (year % 4 == 0))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (day <= 28 && month == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
window.alert('Date is not valid!');
|
||||
oObject.focus();
|
||||
return false;
|
||||
}
|
||||
@@ -92,6 +92,11 @@ $(document).ready(function(){
|
||||
}
|
||||
});
|
||||
|
||||
$('#conditiontarget').bind('tabsselect', function(event, ui) {
|
||||
$('#editTargetTab').val('#' + ui.panel.id);
|
||||
|
||||
});
|
||||
|
||||
$('#conditionsource').tabs({
|
||||
fx: {
|
||||
opacity: 'toggle',
|
||||
@@ -99,6 +104,11 @@ $(document).ready(function(){
|
||||
}
|
||||
});
|
||||
|
||||
$('#conditionsource').bind('tabsselect', function(event, ui) {
|
||||
$('#editSourceTab').val('#' + ui.panel.id);
|
||||
|
||||
});
|
||||
|
||||
// disable RegExp tab onload (new condition)
|
||||
$('#conditiontarget').tabs('disable', 4);
|
||||
// disable TokenAttribute tab onload if survey is anonymous
|
||||
|
||||
140
include/limesurvey/scripts/jquery/lime-slider.js
vendored
@@ -1,58 +1,82 @@
|
||||
// This file will auto convert slider divs to sliders
|
||||
$(document).ready(function(){
|
||||
// call the init slider routine for each element of the .multinum-slider class
|
||||
$(".multinum-slider").each(function(i,e) {
|
||||
var basename = e.id.substr(10);
|
||||
|
||||
//$("#slider-"+basename).addClass('ui-slider-2');
|
||||
//$("#slider-handle-"+basename).addClass('ui-slider-handle2');
|
||||
var slider_divisor = $('#slider-param-divisor-' + basename).attr('value');
|
||||
var slider_min = $('#slider-param-min-' + basename).attr('value');
|
||||
var slider_max = $('#slider-param-max-' + basename).attr('value');
|
||||
var slider_stepping = $('#slider-param-stepping-' + basename).attr('value');
|
||||
var slider_startvalue = $('#slider-param-startvalue-' + basename).attr('value');
|
||||
var slider_onchange = $('#slider-onchange-js-' + basename).attr('value');
|
||||
var slider_prefix = $('#slider-prefix-' + basename).attr('value');
|
||||
var slider_suffix = $('#slider-suffix-' + basename).attr('value');
|
||||
var sliderparams = Array();
|
||||
|
||||
sliderparams['min'] = slider_min*1; // to force numerical we multiply with 1
|
||||
sliderparams['max'] = slider_max*1; // to force numerical we multiply with 1
|
||||
// not using the stepping param because it is not smooth
|
||||
// using Math.round workaround instead
|
||||
//sliderparams['stepping'] = slider_stepping;
|
||||
//sliderparams['animate'] = true;
|
||||
if (slider_startvalue != 'NULL')
|
||||
{
|
||||
sliderparams['value']= slider_startvalue*1;
|
||||
}
|
||||
sliderparams['slide'] = function(e, ui) {
|
||||
//var thevalue = ui.value / slider_divisor;
|
||||
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
|
||||
$('#slider-callout-'+basename).css('left', $(ui.handle).css('left')).text(slider_prefix + thevalue + slider_suffix);
|
||||
};
|
||||
sliderparams['stop'] = function(e, ui) {
|
||||
//var thevalue = ui.value / slider_divisor;
|
||||
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
|
||||
$('#slider-callout-'+basename).css('left', $(ui.handle).css('left')).text(slider_prefix + thevalue + slider_suffix);
|
||||
};
|
||||
|
||||
sliderparams['change'] = function(e, ui) {
|
||||
//var thevalue = ui.value / slider_divisor;
|
||||
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
|
||||
$('#answer'+basename).val(thevalue);
|
||||
checkconditions( thevalue,'#answer'+basename,'text');
|
||||
eval(slider_onchange);
|
||||
};
|
||||
|
||||
|
||||
$('#slider-'+basename).slider(sliderparams);
|
||||
|
||||
|
||||
if (slider_startvalue != 'NULL')
|
||||
{
|
||||
var thevalue = slider_startvalue / slider_divisor;
|
||||
$('#slider-callout-'+basename).css('left', $('#slider-handle-'+basename).css('left')).text(slider_prefix + thevalue + slider_suffix);
|
||||
}
|
||||
})
|
||||
});
|
||||
/*
|
||||
* LimeSurvey
|
||||
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
|
||||
* All rights reserved.
|
||||
* License: GNU/GPL License v2 or later, see LICENSE.php
|
||||
* LimeSurvey is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYRIGHT.php for copyright notices and details.
|
||||
*
|
||||
* $Id: lime-slider.js 9648 2011-01-07 13:06:39Z c_schmitz $
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// This file will auto convert slider divs to sliders
|
||||
$(document).ready(function(){
|
||||
// call the init slider routine for each element of the .multinum-slider class
|
||||
$(".multinum-slider").each(function(i,e) {
|
||||
var basename = e.id.substr(10);
|
||||
|
||||
$(this).prev('label').addClass('slider-label'); //3796 TP - add a class to the labels in slider questions to facilitate styling
|
||||
|
||||
//$("#slider-"+basename).addClass('ui-slider-2');
|
||||
//$("#slider-handle-"+basename).addClass('ui-slider-handle2');
|
||||
var slider_divisor = $('#slider-param-divisor-' + basename).attr('value');
|
||||
var slider_min = $('#slider-param-min-' + basename).attr('value');
|
||||
var slider_max = $('#slider-param-max-' + basename).attr('value');
|
||||
var slider_stepping = $('#slider-param-stepping-' + basename).attr('value');
|
||||
var slider_startvalue = $('#slider-param-startvalue-' + basename).attr('value');
|
||||
var slider_onchange = $('#slider-onchange-js-' + basename).attr('value');
|
||||
var slider_prefix = $('#slider-prefix-' + basename).attr('value');
|
||||
var slider_suffix = $('#slider-suffix-' + basename).attr('value');
|
||||
var sliderparams = Array();
|
||||
|
||||
sliderparams['min'] = slider_min*1; // to force numerical we multiply with 1
|
||||
sliderparams['max'] = slider_max*1; // to force numerical we multiply with 1
|
||||
// not using the stepping param because it is not smooth
|
||||
// using Math.round workaround instead
|
||||
//sliderparams['stepping'] = slider_stepping;
|
||||
//sliderparams['animate'] = true;
|
||||
if (slider_startvalue != 'NULL')
|
||||
{
|
||||
sliderparams['value']= slider_startvalue*1;
|
||||
}
|
||||
sliderparams['slide'] = function(e, ui) {
|
||||
//var thevalue = ui.value / slider_divisor;
|
||||
if ($('#slider-modifiedstate-'+basename).val() ==0) $('#slider-modifiedstate-'+basename).val('1');
|
||||
|
||||
function updateCallout() {
|
||||
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
|
||||
$('#slider-callout-'+basename).css('left', $(ui.handle).css('left')).text(slider_prefix + thevalue + slider_suffix);
|
||||
}
|
||||
// Delay updating the callout because it was picking up the last postion of the slider
|
||||
setTimeout(updateCallout, 10);
|
||||
};
|
||||
sliderparams['stop'] = function(e, ui) {
|
||||
//var thevalue = ui.value / slider_divisor;
|
||||
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
|
||||
$('#slider-callout-'+basename).css('left', $(ui.handle).css('left')).text(slider_prefix + thevalue + slider_suffix);
|
||||
};
|
||||
|
||||
sliderparams['change'] = function(e, ui) {
|
||||
//var thevalue = ui.value / slider_divisor;
|
||||
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
|
||||
$('#answer'+basename).val(thevalue);
|
||||
checkconditions( thevalue,'#answer'+basename,'text');
|
||||
eval(slider_onchange);
|
||||
};
|
||||
|
||||
|
||||
$('#slider-'+basename).slider(sliderparams);
|
||||
|
||||
|
||||
if (slider_startvalue != 'NULL' && $('#slider-modifiedstate-'+basename).val() !=0)
|
||||
{
|
||||
var thevalue = slider_startvalue / slider_divisor;
|
||||
$('#slider-callout-'+basename).css('left', $('.ui-slider-handle:first').css('left')).text(slider_prefix + thevalue + slider_suffix);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
23
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-af.js
vendored
Normal file
@@ -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']);
|
||||
});
|
||||
@@ -1,20 +1,24 @@
|
||||
/* Arabic Translation for jQuery UI date picker plugin. */
|
||||
/* Khaled Al Horani -- koko.dw@gmail.com */
|
||||
/* خالد الحوراني -- koko.dw@gmail.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: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'],
|
||||
dateFormat: 'dd/mm/yy', firstDay: 0,
|
||||
isRTL: true};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ar']);
|
||||
/* Arabic Translation for jQuery UI date picker plugin. */
|
||||
/* Khaled Al Horani -- koko.dw@gmail.com */
|
||||
/* خالد الحوراني -- koko.dw@gmail.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: 0,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ar']);
|
||||
});
|
||||
23
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-az.js
vendored
Normal file
@@ -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']);
|
||||
});
|
||||
@@ -1,20 +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: ['Не','По','Вт','Ср','Че','Пе','Съ'],
|
||||
dateFormat: 'dd.mm.yy', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['bg']);
|
||||
});
|
||||
/* 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
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-bs.js
vendored
Normal file
@@ -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']);
|
||||
});
|
||||
@@ -1,19 +1,23 @@
|
||||
/* Inicialitzaci<EFBFBD> en catal<EFBFBD> per a l'extenci<EFBFBD> 'calendar' per jQuery. */
|
||||
/* Writers: (joan.leon@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ca'] = {
|
||||
closeText: 'Tancar',
|
||||
prevText: '<Ant',
|
||||
nextText: 'Seg>',
|
||||
currentText: 'Avui',
|
||||
monthNames: ['Gener','Febrer','Març','Abril','Maig','Juny',
|
||||
'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'],
|
||||
monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun',
|
||||
'Jul','Ago','Set','Oct','Nov','Des'],
|
||||
dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'],
|
||||
dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'],
|
||||
dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'],
|
||||
dateFormat: 'mm/dd/yy', firstDay: 0,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ca']);
|
||||
/* Inicialització en català per a l'extenció 'calendar' per jQuery. */
|
||||
/* Writers: (joan.leon@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ca'] = {
|
||||
closeText: 'Tancar',
|
||||
prevText: '<Ant',
|
||||
nextText: 'Seg>',
|
||||
currentText: 'Avui',
|
||||
monthNames: ['Gener','Febrer','Març','Abril','Maig','Juny',
|
||||
'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'],
|
||||
monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun',
|
||||
'Jul','Ago','Set','Oct','Nov','Des'],
|
||||
dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'],
|
||||
dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'],
|
||||
dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ca']);
|
||||
});
|
||||
@@ -1,19 +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'],
|
||||
dateFormat: 'dd.mm.yy', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['cs']);
|
||||
});
|
||||
/* 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']);
|
||||
});
|
||||
24
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-cy.js
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/* Welsh/UK initialisation for the jQuery UI date picker plugin. */
|
||||
/* Alan Davies */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['cy'] = {
|
||||
closeText: 'Iawn',
|
||||
prevText: 'Cynt',
|
||||
nextText: 'Nesaf',
|
||||
currentText: 'Heddiw',
|
||||
monthNames: ['Ionawr','Chwefror','Mawrth','Ebrill','Mai','Mehefin',
|
||||
'Gorffennaf','Awst','Medi','Hydref','Tachwedd','Rhagfyr'],
|
||||
monthNamesShort: ['Ion', 'Chwe', 'Maw', 'Ebr', 'Mai', 'Meh',
|
||||
'Gor', 'Aws', 'Med', 'Hyd', 'Tach', 'Rhag'],
|
||||
dayNames: ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher',
|
||||
'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'],
|
||||
dayNamesShort: ['Sul', 'Llun', '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']);
|
||||
});
|
||||
@@ -1,19 +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ø'],
|
||||
dateFormat: 'dd-mm-yy', firstDay: 0,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['da']);
|
||||
});
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +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'],
|
||||
dateFormat: 'dd.mm.yy', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['de']);
|
||||
});
|
||||
/* 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: 'Wo',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['de']);
|
||||
});
|
||||
@@ -1,19 +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'],
|
||||
dateFormat: 'dd.mm.yy', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['de']);
|
||||
});
|
||||
/* 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: 'Wo',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['de']);
|
||||
});
|
||||
@@ -1,19 +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: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'],
|
||||
dateFormat: 'dd/mm/yy', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['el']);
|
||||
/* 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
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-en.js
vendored
Normal file
@@ -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']);
|
||||
});
|
||||
@@ -1,19 +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'],
|
||||
dateFormat: 'dd/mm/yy', firstDay: 0,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['eo']);
|
||||
});
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +1,23 @@
|
||||
/* Inicializaci<EFBFBD>n en espa<EFBFBD>ol para la extensi<EFBFBD>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á'],
|
||||
dateFormat: 'dd/mm/yy', firstDay: 0,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['es']);
|
||||
/* 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
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-es.js
vendored
Normal file
@@ -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
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-et.js
vendored
Normal file
@@ -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: 'Sm',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['et']);
|
||||
});
|
||||
23
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-eu.js
vendored
Normal file
@@ -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: ['Iga','Ast','Ast','Ast','Ost','Ost','Lar'],
|
||||
dayNamesMin: ['Ig','As','As','As','Os','Os','La'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'yy/mm/dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['eu']);
|
||||
});
|
||||
@@ -1,19 +1,23 @@
|
||||
/* 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: ['ي','د','س','چ','پ','ج', 'ش'],
|
||||
dateFormat: 'yy/mm/dd', firstDay: 6,
|
||||
isRTL: true};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fa']);
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +1,23 @@
|
||||
/* Finnish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Harri Kilpi<70> (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','Su'],
|
||||
dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'],
|
||||
dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'],
|
||||
dateFormat: 'dd.mm.yy', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fi']);
|
||||
});
|
||||
/* Finnish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Harri Kilpi<70> (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','Su'],
|
||||
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
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-fo.js
vendored
Normal file
@@ -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: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fo']);
|
||||
});
|
||||
23
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-fr-CH.js
vendored
Normal file
@@ -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']);
|
||||
});
|
||||
@@ -1,19 +1,23 @@
|
||||
/* French initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Keith Wood (kbwood@virginbroadband.com.au) and Stéphane Nahmani (sholby@sholby.net). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fr'] = {
|
||||
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'],
|
||||
dateFormat: 'dd/mm/yy', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fr']);
|
||||
/* French initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Keith Wood (kbwood{at}iinet.com.au) and Stéphane Nahmani (sholby@sholby.net). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fr'] = {
|
||||
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']);
|
||||
});
|
||||
23
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-gl.js
vendored
Normal file
@@ -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']);
|
||||
});
|
||||
@@ -1,19 +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: ['1','2','3','4','5','6',
|
||||
'7','8','9','10','11','12'],
|
||||
dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'],
|
||||
dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
dateFormat: 'dd/mm/yy', firstDay: 0,
|
||||
isRTL: true};
|
||||
$.datepicker.setDefaults($.datepicker.regional['he']);
|
||||
});
|
||||
/* 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: ['1','2','3','4','5','6',
|
||||
'7','8','9','10','11','12'],
|
||||
dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'],
|
||||
dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['he']);
|
||||
});
|
||||
@@ -1,19 +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','Lipani',
|
||||
'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'],
|
||||
monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip',
|
||||
'Srp','Kol','Ruj','Lis','Stu','Pro'],
|
||||
dayNames: ['Nedjalja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
dateFormat: 'dd.mm.yy.', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hr']);
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +1,23 @@
|
||||
/* Hungarian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Istvan Karaszi (jquerycalendar@spam.raszi.hu). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['hu'] = {
|
||||
closeText: 'bezárás',
|
||||
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ámap', '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'],
|
||||
dateFormat: 'yy-mm-dd', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hu']);
|
||||
});
|
||||
/* 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ás',
|
||||
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é',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hu']);
|
||||
});
|
||||
@@ -1,19 +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: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'],
|
||||
dateFormat: 'dd.mm.yy', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hy']);
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +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'],
|
||||
dateFormat: 'dd/mm/yy', firstDay: 0,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['id']);
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +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'],
|
||||
dateFormat: 'dd/mm/yy', firstDay: 0,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['is']);
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +1,23 @@
|
||||
/* Italian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Apaella (apaella@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','Gio','Ve','Sa'],
|
||||
dateFormat: 'dd/mm/yy', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['it']);
|
||||
});
|
||||
/* 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
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-it.js
vendored
Normal file
@@ -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']);
|
||||
});
|
||||
@@ -1,20 +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: ['日','月','火','水','木','金','土'],
|
||||
dateFormat: 'yy/mm/dd', firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ja']);
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +1,23 @@
|
||||
/* Korean initialisation for the jQuery calendar extension. */
|
||||
/* Written by DaeKwon Kang (ncrash.dk@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ko'] = {
|
||||
closeText: '닫기',
|
||||
prevText: '이전달',
|
||||
nextText: '다음달',
|
||||
currentText: '오늘',
|
||||
monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)',
|
||||
'7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'],
|
||||
monthNamesShort: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)',
|
||||
'7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'],
|
||||
dayNames: ['일','월','화','수','목','금','토'],
|
||||
dayNamesShort: ['일','월','화','수','목','금','토'],
|
||||
dayNamesMin: ['일','월','화','수','목','금','토'],
|
||||
dateFormat: 'yy-mm-dd', firstDay: 0,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ko']);
|
||||
/* Korean initialisation for the jQuery calendar extension. */
|
||||
/* Written by DaeKwon Kang (ncrash.dk@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ko'] = {
|
||||
closeText: '닫기',
|
||||
prevText: '이전달',
|
||||
nextText: '다음달',
|
||||
currentText: '오늘',
|
||||
monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)',
|
||||
'7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'],
|
||||
monthNamesShort: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)',
|
||||
'7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'],
|
||||
dayNames: ['일','월','화','수','목','금','토'],
|
||||
dayNamesShort: ['일','월','화','수','목','금','토'],
|
||||
dayNamesMin: ['일','월','화','수','목','금','토'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: '년'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ko']);
|
||||
});
|
||||
23
include/limesurvey/scripts/jquery/locale/jquery.ui.datepicker-kz.js
vendored
Normal file
@@ -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['kz'] = {
|
||||
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['kz']);
|
||||
});
|
||||
@@ -1,19 +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'],
|
||||
dateFormat: 'yy-mm-dd', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['lt']);
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +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'],
|
||||
dateFormat: 'dd-mm-yy', firstDay: 1,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['lv']);
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +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'],
|
||||
dateFormat: 'dd/mm/yy', firstDay: 0,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ms']);
|
||||
/* 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']);
|
||||
});
|
||||
@@ -1,19 +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ø'],
|
||||
dateFormat: 'yy-mm-dd', firstDay: 0,
|
||||
isRTL: false};
|
||||
$.datepicker.setDefaults($.datepicker.regional['no']);
|
||||
});
|
||||
/* 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: 'yy-mm-dd',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['no']);
|
||||
});
|
||||