You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2017/05/15 07:36:05 UTC

[05/12] isis git commit: ISIS-1615: prevent bootstrap from changing the HTML link's 'title' attribute on client-side

ISIS-1615: prevent bootstrap from changing the HTML link's 'title' attribute on client-side 

see https://issues.apache.org/jira/browse/ISIS-1615

Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/9d2aea00
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/9d2aea00
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/9d2aea00

Branch: refs/heads/ISIS-1613
Commit: 9d2aea00ee9db082de56d0e8035c5a9cc1bd2880
Parents: de83e6e
Author: Andi Huber <ho...@gmx.at>
Authored: Sat May 13 19:52:42 2017 +0200
Committer: GitHub <no...@github.com>
Committed: Sat May 13 19:52:42 2017 +0200

----------------------------------------------------------------------
 .../components/actionmenu/entityactions/AdditionalLinksPanel.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/9d2aea00/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/actionmenu/entityactions/AdditionalLinksPanel.java
----------------------------------------------------------------------
diff --git a/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/actionmenu/entityactions/AdditionalLinksPanel.java b/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/actionmenu/entityactions/AdditionalLinksPanel.java
index be3e492..9fa1584 100644
--- a/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/actionmenu/entityactions/AdditionalLinksPanel.java
+++ b/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/actionmenu/entityactions/AdditionalLinksPanel.java
@@ -108,6 +108,8 @@ public class AdditionalLinksPanel extends PanelAbstract<ListOfLinksModel> {
                 final String itemTitle = first(linkAndLabel.getDisabledReasonIfAny(), linkAndLabel.getDescriptionIfAny());
                 if(itemTitle != null) {
                     item.add(new AttributeAppender("title", itemTitle));
+                    // ISIS-1615, prevent bootstrap from changing the HTML link's 'title' attribute on client-side 
+                    link.add(new AttributeAppender("data-selector", "true"));
                 }
 
                 final Label viewTitleLabel = new Label(ID_ADDITIONAL_LINK_TITLE, linkAndLabel.getLabel());