You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Mat Mannion (JIRA)" <ji...@apache.org> on 2010/11/24 17:23:16 UTC
[jira] Created: (SHINDIG-1476) TabSet feature left/right scroll
elements don't stop propagation of the click event
TabSet feature left/right scroll elements don't stop propagation of the click event
-----------------------------------------------------------------------------------
Key: SHINDIG-1476
URL: https://issues.apache.org/jira/browse/SHINDIG-1476
Project: Shindig
Issue Type: Bug
Components: Javascript
Affects Versions: 2.0.2
Reporter: Mat Mannion
Priority: Minor
Fix For: 2.0.3, 3.0.0
The TabSet feature doesn't stop propagation of the click events on the left and right arrows when there are too many tabs to display in a line. This is, for the most part, ok - the browser sees that the link is javascript:void(0) and simply no-ops. However, in our Shindig implementation we set a default target attribute on the base tag (i.e. <base href="gadget.xml" target="_blank">) and in Firefox and IE clicking the scrollers causes a new window to be opened and switched to. This is, obviously, not ideal. Chrome is unaffected because it realises that javascript:void(0) is still a no-op in a new window.
We should .stopPropagation() and .preventDefault() on the event in the onclick (and the equivalent code for IE) in the tab JS feature, so that this problem can't arise. All we are doing is preventing the browser from executing the no-op void(0).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SHINDIG-1476) TabSet feature left/right scroll
elements don't stop propagation of the click event
Posted by "Mat Mannion (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mat Mannion updated SHINDIG-1476:
---------------------------------
Attachment: (was: shindig-1476.patch)
> TabSet feature left/right scroll elements don't stop propagation of the click event
> -----------------------------------------------------------------------------------
>
> Key: SHINDIG-1476
> URL: https://issues.apache.org/jira/browse/SHINDIG-1476
> Project: Shindig
> Issue Type: Bug
> Components: Javascript
> Affects Versions: 2.0.2
> Reporter: Mat Mannion
> Priority: Minor
> Fix For: 2.0.3, 3.0.0
>
> Attachments: shindig-1476.patch
>
>
> The TabSet feature doesn't stop propagation of the click events on the left and right arrows when there are too many tabs to display in a line. This is, for the most part, ok - the browser sees that the link is javascript:void(0) and simply no-ops. However, in our Shindig implementation we set a default target attribute on the base tag (i.e. <base href="gadget.xml" target="_blank">) and in Firefox and IE clicking the scrollers causes a new window to be opened and switched to. This is, obviously, not ideal. Chrome is unaffected because it realises that javascript:void(0) is still a no-op in a new window.
> We should .stopPropagation() and .preventDefault() on the event in the onclick (and the equivalent code for IE) in the tab JS feature, so that this problem can't arise. All we are doing is preventing the browser from executing the no-op void(0).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SHINDIG-1476) TabSet feature left/right scroll
elements don't stop propagation of the click event
Posted by "Paul Lindner (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Lindner resolved SHINDIG-1476.
-----------------------------------
Resolution: Fixed
fixed with small changes to whitespace at end-of-lines
> TabSet feature left/right scroll elements don't stop propagation of the click event
> -----------------------------------------------------------------------------------
>
> Key: SHINDIG-1476
> URL: https://issues.apache.org/jira/browse/SHINDIG-1476
> Project: Shindig
> Issue Type: Bug
> Components: Javascript
> Affects Versions: 2.0.2
> Reporter: Mat Mannion
> Priority: Minor
> Fix For: 2.0.3, 3.0.0
>
> Attachments: shindig-1476.patch
>
>
> The TabSet feature doesn't stop propagation of the click events on the left and right arrows when there are too many tabs to display in a line. This is, for the most part, ok - the browser sees that the link is javascript:void(0) and simply no-ops. However, in our Shindig implementation we set a default target attribute on the base tag (i.e. <base href="gadget.xml" target="_blank">) and in Firefox and IE clicking the scrollers causes a new window to be opened and switched to. This is, obviously, not ideal. Chrome is unaffected because it realises that javascript:void(0) is still a no-op in a new window.
> We should .stopPropagation() and .preventDefault() on the event in the onclick (and the equivalent code for IE) in the tab JS feature, so that this problem can't arise. All we are doing is preventing the browser from executing the no-op void(0).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SHINDIG-1476) TabSet feature left/right scroll
elements don't stop propagation of the click event
Posted by "Mat Mannion (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mat Mannion updated SHINDIG-1476:
---------------------------------
Attachment: shindig-1476.patch
Attached updated patch as per review
> TabSet feature left/right scroll elements don't stop propagation of the click event
> -----------------------------------------------------------------------------------
>
> Key: SHINDIG-1476
> URL: https://issues.apache.org/jira/browse/SHINDIG-1476
> Project: Shindig
> Issue Type: Bug
> Components: Javascript
> Affects Versions: 2.0.2
> Reporter: Mat Mannion
> Priority: Minor
> Fix For: 2.0.3, 3.0.0
>
> Attachments: shindig-1476.patch
>
>
> The TabSet feature doesn't stop propagation of the click events on the left and right arrows when there are too many tabs to display in a line. This is, for the most part, ok - the browser sees that the link is javascript:void(0) and simply no-ops. However, in our Shindig implementation we set a default target attribute on the base tag (i.e. <base href="gadget.xml" target="_blank">) and in Firefox and IE clicking the scrollers causes a new window to be opened and switched to. This is, obviously, not ideal. Chrome is unaffected because it realises that javascript:void(0) is still a no-op in a new window.
> We should .stopPropagation() and .preventDefault() on the event in the onclick (and the equivalent code for IE) in the tab JS feature, so that this problem can't arise. All we are doing is preventing the browser from executing the no-op void(0).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SHINDIG-1476) TabSet feature left/right scroll
elements don't stop propagation of the click event
Posted by "Mat Mannion (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935388#action_12935388 ]
Mat Mannion commented on SHINDIG-1476:
--------------------------------------
Reviewable here: http://codereview.appspot.com/3310041/
> TabSet feature left/right scroll elements don't stop propagation of the click event
> -----------------------------------------------------------------------------------
>
> Key: SHINDIG-1476
> URL: https://issues.apache.org/jira/browse/SHINDIG-1476
> Project: Shindig
> Issue Type: Bug
> Components: Javascript
> Affects Versions: 2.0.2
> Reporter: Mat Mannion
> Priority: Minor
> Fix For: 2.0.3, 3.0.0
>
> Attachments: shindig-1476.patch
>
>
> The TabSet feature doesn't stop propagation of the click events on the left and right arrows when there are too many tabs to display in a line. This is, for the most part, ok - the browser sees that the link is javascript:void(0) and simply no-ops. However, in our Shindig implementation we set a default target attribute on the base tag (i.e. <base href="gadget.xml" target="_blank">) and in Firefox and IE clicking the scrollers causes a new window to be opened and switched to. This is, obviously, not ideal. Chrome is unaffected because it realises that javascript:void(0) is still a no-op in a new window.
> We should .stopPropagation() and .preventDefault() on the event in the onclick (and the equivalent code for IE) in the tab JS feature, so that this problem can't arise. All we are doing is preventing the browser from executing the no-op void(0).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Closed] (SHINDIG-1476) TabSet feature left/right scroll
elements don't stop propagation of the click event
Posted by "Paul Lindner (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Lindner closed SHINDIG-1476.
---------------------------------
part of 2.5.0-beta1 release.
> TabSet feature left/right scroll elements don't stop propagation of the click event
> -----------------------------------------------------------------------------------
>
> Key: SHINDIG-1476
> URL: https://issues.apache.org/jira/browse/SHINDIG-1476
> Project: Shindig
> Issue Type: Bug
> Components: Javascript
> Affects Versions: 2.0.2
> Reporter: Mat Mannion
> Priority: Minor
> Fix For: 2.0.3, 2.5.0-beta1
>
> Attachments: shindig-1476.patch
>
>
> The TabSet feature doesn't stop propagation of the click events on the left and right arrows when there are too many tabs to display in a line. This is, for the most part, ok - the browser sees that the link is javascript:void(0) and simply no-ops. However, in our Shindig implementation we set a default target attribute on the base tag (i.e. <base href="gadget.xml" target="_blank">) and in Firefox and IE clicking the scrollers causes a new window to be opened and switched to. This is, obviously, not ideal. Chrome is unaffected because it realises that javascript:void(0) is still a no-op in a new window.
> We should .stopPropagation() and .preventDefault() on the event in the onclick (and the equivalent code for IE) in the tab JS feature, so that this problem can't arise. All we are doing is preventing the browser from executing the no-op void(0).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SHINDIG-1476) TabSet feature left/right scroll
elements don't stop propagation of the click event
Posted by "Mat Mannion (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mat Mannion updated SHINDIG-1476:
---------------------------------
Attachment: shindig-1476.patch
Patch prevents default execution of click event in onclick handler.
> TabSet feature left/right scroll elements don't stop propagation of the click event
> -----------------------------------------------------------------------------------
>
> Key: SHINDIG-1476
> URL: https://issues.apache.org/jira/browse/SHINDIG-1476
> Project: Shindig
> Issue Type: Bug
> Components: Javascript
> Affects Versions: 2.0.2
> Reporter: Mat Mannion
> Priority: Minor
> Fix For: 2.0.3, 3.0.0
>
> Attachments: shindig-1476.patch
>
>
> The TabSet feature doesn't stop propagation of the click events on the left and right arrows when there are too many tabs to display in a line. This is, for the most part, ok - the browser sees that the link is javascript:void(0) and simply no-ops. However, in our Shindig implementation we set a default target attribute on the base tag (i.e. <base href="gadget.xml" target="_blank">) and in Firefox and IE clicking the scrollers causes a new window to be opened and switched to. This is, obviously, not ideal. Chrome is unaffected because it realises that javascript:void(0) is still a no-op in a new window.
> We should .stopPropagation() and .preventDefault() on the event in the onclick (and the equivalent code for IE) in the tab JS feature, so that this problem can't arise. All we are doing is preventing the browser from executing the no-op void(0).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.