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 2015/10/06 23:56:54 UTC

isis git commit: ISIS-1007: disabling the link confirmation behaviour, for martin-g to look at.

Repository: isis
Updated Branches:
  refs/heads/master dbcd09655 -> 2162891e8


ISIS-1007: disabling the link confirmation behaviour, for martin-g to look at.


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

Branch: refs/heads/master
Commit: 2162891e85275e7e95fac4d0975c691f5a904942
Parents: dbcd096
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Tue Oct 6 22:56:29 2015 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Tue Oct 6 22:56:29 2015 +0100

----------------------------------------------------------------------
 .../actionmenu/entityactions/AdditionalLinksPanel.java  | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/2162891e/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 1aa625b..871ff6c 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
@@ -125,7 +125,7 @@ public class AdditionalLinksPanel extends PanelAbstract<ListOfLinksModel> {
                 link.add(new CssClassAppender(linkAndLabel.getActionIdentifier()));
 
                 SemanticsOf semantics = linkAndLabel.getSemantics();
-                if (    semantics.isAreYouSure() ) {
+                if (    semantics.isAreYouSure() && false /* ISIS-1007, for martin-g */ ) {
                     ConfirmationConfig confirmationConfig = new ConfirmationConfig();
                     // TODO ISIS-1007 Use i18n for the title and the labels
                     confirmationConfig.withTitle("Are you sure?");
@@ -133,7 +133,17 @@ public class AdditionalLinksPanel extends PanelAbstract<ListOfLinksModel> {
                     confirmationConfig.withBtnCancelLabel("Cancel");
                     confirmationConfig.withBtnOkClass("btn btn-danger");
                     confirmationConfig.withBtnCancelClass("btn btn-default");
+
+                    // link.add(new PopoverBehavior(Model.of(""), Model.of("")));
                     link.add(new ConfirmationBehavior(confirmationConfig));
+//                        @Override
+//                        public void renderHead(final Component component, final IHeaderResponse response) {
+//                            response.render(
+//                                    JavaScriptHeaderItem.forReference(
+//                                            Bootstrap.getSettings().getJsResourceReference()));
+//                            super.renderHead(component, response);
+//                        }
+
                 }