aboutsummaryrefslogtreecommitdiffstats
path: root/template-common/lib/ui/ui.core.js
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-09-25 15:10:39 +0000
committerpatdenice <patdenice@piwigo.org>2008-09-25 15:10:39 +0000
commitfd0b26af453fedf4528eaf4114914a6e5b7bc685 (patch)
treedf6baa48ee5512e6b96f7a4f1184db8ab91e131e /template-common/lib/ui/ui.core.js
parenta3dc10babc0609f2a097bca76da1de8b2d92ace6 (diff)
- Add all jQuery UI files (for future use) in stable version (1.5.2).
- Use jQuery cluetip plugin for new plugins page. - Remove old CSS tooltip rules. git-svn-id: http://piwigo.org/svn/trunk@2587 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template-common/lib/ui/ui.core.js')
-rw-r--r--template-common/lib/ui/ui.core.js33
1 files changed, 6 insertions, 27 deletions
diff --git a/template-common/lib/ui/ui.core.js b/template-common/lib/ui/ui.core.js
index 5cb669800..3d2e63873 100644
--- a/template-common/lib/ui/ui.core.js
+++ b/template-common/lib/ui/ui.core.js
@@ -1,5 +1,5 @@
/*
- * jQuery UI 1.6b
+ * jQuery UI 1.5.2
*
* Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
@@ -9,11 +9,6 @@
*/
;(function($) {
-// This adds a selector to check if data exists.
-jQuery.extend(jQuery.expr[':'], {
- data: "jQuery.data(a, m[3])"
-});
-
$.ui = {
plugin: {
add: function(module, option, set) {
@@ -52,23 +47,15 @@ $.ui = {
return $.ui.cssCache[name];
},
disableSelection: function(el) {
- $(el).attr('unselectable', 'on').css('MozUserSelect', 'none').bind('selectstart', function() { return false; });
+ $(el).attr('unselectable', 'on').css('MozUserSelect', 'none');
},
enableSelection: function(el) {
- $(el).attr('unselectable', 'off').css('MozUserSelect', '').unbind('selectstart');
+ $(el).attr('unselectable', 'off').css('MozUserSelect', '');
},
hasScroll: function(e, a) {
- var scroll = (a && a == 'left') ? 'scrollLeft' : 'scrollTop',
- has = false;
-
- if (e[scroll] > 0) { return true; }
-
- // TODO: determine which cases actually cause this to happen
- // if the element doesn't have the scroll set, see if it's possible to
- // set the scroll
- e[scroll] = 1;
- has = (e[scroll] > 0);
- e[scroll] = 0;
+ var scroll = /top/.test(a||"top") ? 'scrollTop' : 'scrollLeft', has = false;
+ if (e[scroll] > 0) return true; e[scroll] = 1;
+ has = e[scroll] > 0 ? true : false; e[scroll] = 0;
return has;
}
};
@@ -121,7 +108,6 @@ $.widget = function(name, prototype) {
var self = this;
this.widgetName = name;
- this.widgetEventPrefix = $[namespace][name].eventPrefix || name;
this.widgetBaseClass = namespace + '-' + name;
this.options = $.extend({}, $.widget.defaults, $[namespace][name].defaults, options);
@@ -165,13 +151,6 @@ $.widget.prototype = {
},
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]);
}
};