User tests: Successful: Unsuccessful:
It appears the hide
event is not fired when triggering an element to show the tooltip. However, the hideme
event is fired. This can easily be tested with the following code:
JHtml::_('bootstrap.tooltip', '.hasStickyTooltip', array(
'onShow' => 'function ( e ) {'
.'alert("onShow executed")'.
'}',
'onShown' => 'function ( e ) {'
.'alert("onShown executed")'.
'}',
'onHide' => 'function ( e ) {'
.'alert("onHide executed")'.
'}',
'onHideMe' => 'function ( e ) {'
.'alert("onHideMe executed")'.
'}',
'onHidden' => 'function ( e ) {'
.'alert("onHidden executed")'.
'}'
));
This proves the message onHide executed
never appears. To get hands on the event fired before the widget is getting hidden i added the corresponding listener onHideMe
to the configuration array. With this listener in place the message onHideMe executed
is shown and the corresponding event is handled by the plugin.
Labels |
Added:
?
|
Huh? Why does the build appear to failed when is was successful yesterday?
So I'd say that it's not possible
I'm afraid, i don't get what you mean.
Don't worry about Travis. It seems to be ok.
Category | ⇒ | Libraries |
I have tested this item successfully on a31c5b9
Before Patch:
onHidden executed
After Patch:
onHide executed
onHidden executed
I have tested this item successfully on a31c5b9
Works as expected!
I have tested this item successfully on a31c5b9
Yep works as @matrikular describes it.
Milestone |
Milestone |
Added: |
||
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-10-25 09:59:53 |
Closed_By | ⇒ | rdeutz |
Labels |
Removed:
?
|
Milestone |
Milestone |
Added: |
Milestone |
Added: |
Milestone |
There was a conflict between bootstrap hide event and mootools hide even. To keep backward compatibility with Mootools we were forced to rename the event.
I think we could just replace the existing hide to map it to the hideme bootstrap event?
So I'd say that it's not possible