upgrade to jqueryui 1.10.1

This commit is contained in:
vitalets
2013-03-08 14:40:22 +04:00
parent e7594959bc
commit 9c40b5f633
30 changed files with 28785 additions and 48 deletions

Binary file not shown.

After

(image error) Size: 1.7 KiB

Binary file not shown.

After

(image error) Size: 212 B

Binary file not shown.

After

(image error) Size: 206 B

Binary file not shown.

After

(image error) Size: 336 B

Binary file not shown.

After

(image error) Size: 341 B

Binary file not shown.

After

(image error) Size: 332 B

Binary file not shown.

After

(image error) Size: 5.7 KiB

Binary file not shown.

After

(image error) Size: 333 B

Binary file not shown.

After

(image error) Size: 292 B

Binary file not shown.

After

(image error) Size: 4.4 KiB

Binary file not shown.

After

(image error) Size: 4.4 KiB

Binary file not shown.

After

(image error) Size: 4.4 KiB

Binary file not shown.

After

(image error) Size: 4.4 KiB

Binary file not shown.

After

(image error) Size: 4.4 KiB

Binary file not shown.

After

(image error) Size: 4.4 KiB

Binary file not shown.

After

(image error) Size: 4.4 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
/*
* Poshy Tip jQuery plugin v1.1
* Poshy Tip jQuery plugin v1.1+
* http://vadikom.com/tools/poshy-tip-jquery-plugin-for-stylish-tooltips/
* Copyright 2010-2011, Vasil Dinkov, http://vadikom.com/
*/
@ -9,7 +9,7 @@
var tips = [],
reBgImage = /^url\(["']?([^"'\)]*)["']?\);?$/i,
rePNG = /\.png$/i,
ie6 = $.browser.msie && $.browser.version == 6;
ie6 = !!window.createPopup && document.documentElement.currentStyle.minWidth == 'undefined';
// make sure the tips' position is updated on resize
function handleWindowResize() {
@ -108,8 +108,10 @@
this.reset();
this.update();
this.display();
if (this.opts.timeOnScreen)
setTimeout($.proxy(this.hide, this), this.opts.timeOnScreen);
if (this.opts.timeOnScreen) {
this.clearTimeouts();
this.hideTimeout = setTimeout($.proxy(this.hide, this), this.opts.timeOnScreen);
}
},
hide: function() {
if (this.disabled || !this.$tip.data('active'))
@ -183,7 +185,7 @@
this.$inner.css({margin: 0, border: 0, padding: 0});
bgImage = bgImagePNG = false;
} else {
this.$tip.prepend('<table border="0" cellpadding="0" cellspacing="0"><tr><td class="tip-top tip-bg-image" colspan="2"><span></span></td><td class="tip-right tip-bg-image" rowspan="2"><span></span></td></tr><tr><td class="tip-left tip-bg-image" rowspan="2"><span></span></td><td></td></tr><tr><td class="tip-bottom tip-bg-image" colspan="2"><span></span></td></tr></table>')
this.$tip.prepend('<table class="tip-table" border="0" cellpadding="0" cellspacing="0"><tr><td class="tip-top tip-bg-image" colspan="2"><span></span></td><td class="tip-right tip-bg-image" rowspan="2"><span></span></td></tr><tr><td class="tip-left tip-bg-image" rowspan="2"><span></span></td><td></td></tr><tr><td class="tip-bottom tip-bg-image" colspan="2"><span></span></td></tr></table>')
.css({border: 0, padding: 0, 'background-image': 'none', 'background-color': 'transparent'})
.find('.tip-bg-image').css('background-image', 'url("' + bgImage[1] +'")').end()
.find('td').eq(3).append(this.$inner);
@ -203,7 +205,7 @@
this.opts.fade = false;
}
var $table = this.$tip.find('table');
var $table = this.$tip.find('> table.tip-table');
if (ie6) {
// fix min/max-width in IE6
this.$tip[0].style.width = '';
@ -233,10 +235,10 @@
this.$arrow.css('visibility', 'inherit');
}
if (async) {
if (async && this.opts.refreshAniDuration) {
this.asyncAnimating = true;
var self = this;
this.$tip.css(currPos).animate({left: this.pos.l, top: this.pos.t}, 200, function() { self.asyncAnimating = false; });
this.$tip.css(currPos).animate({left: this.pos.l, top: this.pos.t}, this.opts.refreshAniDuration, function() { self.asyncAnimating = false; });
} else {
this.$tip.css({left: this.pos.l, top: this.pos.t});
}
@ -390,8 +392,11 @@
method = options;
Array.prototype.shift.call(args);
// unhook live events if 'destroy' is called
if (method == 'destroy')
this.die('mouseenter.poshytip').die('focus.poshytip');
if (method == 'destroy') {
this.die ?
this.die('mouseenter.poshytip').die('focus.poshytip') :
$(document).undelegate(this.selector, 'mouseenter.poshytip').undelegate(this.selector, 'focus.poshytip');
}
return this.each(function() {
var poshytip = $(this).data('poshytip');
if (poshytip && poshytip[method])
@ -405,7 +410,7 @@
if (!$('#poshytip-css-' + opts.className)[0])
$(['<style id="poshytip-css-',opts.className,'" type="text/css">',
'div.',opts.className,'{visibility:hidden;position:absolute;top:0;left:0;}',
'div.',opts.className,' table, div.',opts.className,' td{margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;}',
'div.',opts.className,' table.tip-table, div.',opts.className,' table.tip-table td{margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;}',
'div.',opts.className,' td.tip-bg-image span{display:block;font:1px/1px sans-serif;height:',opts.bgImageFrameSize,'px;width:',opts.bgImageFrameSize,'px;overflow:hidden;}',
'div.',opts.className,' td.tip-right{background-position:100% 0;}',
'div.',opts.className,' td.tip-bottom{background-position:100% 100%;}',
@ -416,21 +421,29 @@
// check if we need to hook live events
if (opts.liveEvents && opts.showOn != 'none') {
var deadOpts = $.extend({}, opts, { liveEvents: false });
var handler,
deadOpts = $.extend({}, opts, { liveEvents: false });
switch (opts.showOn) {
case 'hover':
this.live('mouseenter.poshytip', function() {
handler = function() {
var $this = $(this);
if (!$this.data('poshytip'))
$this.poshytip(deadOpts).poshytip('mouseenter');
});
};
// support 1.4.2+ & 1.9+
this.live ?
this.live('mouseenter.poshytip', handler) :
$(document).delegate(this.selector, 'mouseenter.poshytip', handler);
break;
case 'focus':
this.live('focus.poshytip', function() {
handler = function() {
var $this = $(this);
if (!$this.data('poshytip'))
$this.poshytip(deadOpts).poshytip('show');
});
};
this.live ?
this.live('focus.poshytip', handler) :
$(document).delegate(this.selector, 'focus.poshytip', handler);
break;
}
return this;
@ -464,7 +477,8 @@
slide: true, // use slide animation
slideOffset: 8, // slide animation offset
showAniDuration: 300, // show animation duration - set to 0 if you don't want show animation
hideAniDuration: 300 // hide animation duration - set to 0 if you don't want hide animation
hideAniDuration: 300, // hide animation duration - set to 0 if you don't want hide animation
refreshAniDuration: 200 // refresh animation duration - set to 0 if you don't want animation when updating the tooltip asynchronously
};
})(jQuery);

File diff suppressed because one or more lines are too long