| @@ -112,10 +112,8 @@ | ||
| 112 | 112 | this.jButton.bind('click.cjtbe-disabled', (function() {return false;})); |
| 113 | 113 | this.jButton.addClass(this.toolbox.params.disabledClass); |
| 114 | 114 | this.enabled = false; |
| 115 | 115 | } |
| 116 | - // Chaining. | |
| 117 | - return this; | |
| 118 | 116 | } |
| 119 | 117 | |
| 120 | 118 | /** |
| 121 | 119 | * |
| @@ -243,9 +241,9 @@ | ||
| 243 | 241 | if (this.targetElement.css('display') == 'none') { |
| 244 | 242 | // Don't show the popup immediately when the mouse come over the button. |
| 245 | 243 | // As our move the mouse and didnt decide yest which popup to open. |
| 246 | 244 | // Stay for a while to make sure that this popup is desirable. |
| 247 | - this.popupTimer = setTimeout($.proxy(this.showPopup, this), 100); | |
| 245 | + this.popupTimer = setTimeout($.proxy(this.showPopup, this), 400); | |
| 248 | 246 | cbMouseOut = $.proxy(this._onmouseout, this); |
| 249 | 247 | // Hide Popup if mouse out from button or the popup form! |
| 250 | 248 | this.jButton.bind('mouseout.CJTButtonTouchMouseOut', cbMouseOut); |
| 251 | 249 | this.targetElement.bind('mouseout.CJTButtonTouchMouseOut', cbMouseOut); |
| @@ -292,11 +290,9 @@ | ||
| 292 | 290 | this.jButton |
| 293 | 291 | .mouseenter($.proxy(this._onmouseenter, this)) |
| 294 | 292 | .click(function() {return false;}); // Behave inactive. |
| 295 | 293 | // Prepare popup elements. |
| 296 | - this.targetElement = params._type.targetElementObject ? | |
| 297 | - params._type.targetElement : | |
| 298 | - this.toolbox.jToolbox.find(params._type.targetElement) | |
| 294 | + this.targetElement = this.toolbox.jToolbox.find(params._type.targetElement) | |
| 299 | 295 | // Be intelegant and don't close for just if the mouse got out |
| 300 | 296 | // Please give User a break!! |
| 301 | 297 | .mouseenter($.proxy(this._onmouseenter, this)); |
| 302 | 298 | } |
| @@ -306,9 +302,9 @@ | ||
| 306 | 302 | * |
| 307 | 303 | */ |
| 308 | 304 | this.close = function() { |
| 309 | 305 | this.jButton.unbind('mouseout.CJTButtonTouchMouseOut'); |
| 310 | - this.targetElement.unbind('mouseout.CJTButtonTouchMouseOut').hide(); | |
| 306 | + this.targetElement.unbind('mouseout.CJTButtonTouchMouseOut').hide('fast'); | |
| 311 | 307 | } |
| 312 | 308 | |
| 313 | 309 | /** |
| 314 | 310 | * |
| @@ -330,9 +326,9 @@ | ||
| 330 | 326 | if (this.params._type.setTargetPosition) { |
| 331 | 327 | this.targetElement.css ({left : (this.jButton.position().left + 'px')}) |
| 332 | 328 | } |
| 333 | 329 | // Show popup form. |
| 334 | - this.targetElement.show(); | |
| 330 | + this.targetElement.show('fast'); | |
| 335 | 331 | } |
| 336 | 332 | |
| 337 | 333 | } // End class. |
| 338 | 334 | // Extend ButtonBase Class. |
| @@ -524,10 +520,8 @@ | ||
| 524 | 520 | function(index, button) { |
| 525 | 521 | button.enable(enabled); |
| 526 | 522 | }, this) |
| 527 | 523 | ); |
| 528 | - // Chaining. | |
| 529 | - return this; | |
| 530 | 524 | }, |
| 531 | 525 | |
| 532 | 526 | /** |
| 533 | 527 | * Initialize Toolbox object. |
| @@ -549,22 +543,8 @@ | ||
| 549 | 543 | function(name, data) { |
| 550 | 544 | CJTToolBox.add(name, data); |
| 551 | 545 | } |
| 552 | 546 | ) |
| 553 | - }, | |
| 554 | - | |
| 555 | - /** | |
| 556 | - * | |
| 557 | - */ | |
| 558 | - remove : function(name) { | |
| 559 | - // Get button. | |
| 560 | - var button = this.buttons[name]; | |
| 561 | - // Remove button node. | |
| 562 | - button.jButton.remove(); | |
| 563 | - // Delete from buttons list. | |
| 564 | - delete this.buttons[name]; | |
| 565 | - // Chaining. | |
| 566 | - return this; | |
| 567 | 547 | } |
| 568 | 548 | |
| 569 | 549 | }; // End Toolbox class. |
| 570 | 550 | |