syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgrosso <...@git.apache.org>
Subject [GitHub] syncope pull request #21: SYNCOPE-871 Linked NumberWidgets to pages
Date Thu, 16 Jun 2016 13:25:59 GMT
Github user ilgrosso commented on a diff in the pull request:

    https://github.com/apache/syncope/pull/21#discussion_r67342972
  
    --- Diff: client/console/src/main/java/org/apache/syncope/client/console/widgets/NumberWidget.java
---
    @@ -37,6 +56,57 @@ public NumberWidget(final String id, final String bg, final int number,
final St
     
             WebMarkupContainer box = new WebMarkupContainer("box");
             box.add(new AttributeAppender("class", " " + bg));
    +        box.add(new AjaxEventBehavior("onmousedown") {
    +            @Override 
    +            protected void onEvent(final AjaxRequestTarget target) {
    +                List<AnyTypeTO> anyTypeTOs = new AnyTypeRestClient().list();
    +                PageParameters pageParameters = new PageParameters();
    +                if (id.equals("totalUsers")) {
    --- End diff --
    
    Convert this if / else if into switch.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message