moksha/public/javascript/ui/moksha.ui.popup.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
New commits: commit adc0d3d849e5115e407f2b355745147a0792f1d0 Author: John (J5) Palmieri johnp@redhat.com Date: Tue Mar 30 15:35:57 2010 -0400
fixes for the popup to work with the new jQuery ui widget class
* s/_init/_create * s/defaults/options
diff --git a/moksha/public/javascript/ui/moksha.ui.popup.js b/moksha/public/javascript/ui/moksha.ui.popup.js index 07b68b2..117b74e 100644 --- a/moksha/public/javascript/ui/moksha.ui.popup.js +++ b/moksha/public/javascript/ui/moksha.ui.popup.js @@ -28,8 +28,17 @@ */ (function ($) { $.widget("ui.moksha_popup", { - - _init: function() { + options: { + popupClass: 'ui-moksha-popup', + popupItemsClass: 'ui-moksha-popup-items', + selectedClass: 'ui-moksha-selected', + panelClass: 'ui-moksha-popup-panel', + hoverTimeout: 500, + triggerEvent: 'hover', + fx: null, // e.g. { height: 'toggle', opacity: 'toggle', duration: 200 } + }, + + _create: function() { // create popup this._createpopup(); }, @@ -130,16 +139,7 @@ $.widget("ui.moksha_popup", { });
$.extend($.ui.moksha_popup, { - version: '@VERSION', - defaults: { - popupClass: 'ui-moksha-popup', - popupItemsClass: 'ui-moksha-popup-items', - selectedClass: 'ui-moksha-selected', - panelClass: 'ui-moksha-popup-panel', - hoverTimeout: 500, - triggerEvent: 'hover', - fx: null, // e.g. { height: 'toggle', opacity: 'toggle', duration: 200 } - } + version: '@VERSION' });