]> source.dussan.org Git - gitblit.git/commitdiff
Fix cropped ticket status indicator 97/197/1
authorJames Moger <james.moger@gitblit.com>
Tue, 30 Sep 2014 14:05:27 +0000 (10:05 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 30 Sep 2014 14:05:27 +0000 (10:05 -0400)
src/main/java/com/gitblit/wicket/pages/TicketPage.java

index 0bad8beb03f9e651b9dab40a6905d2985188bc4c..b690e4c05c142c4e0ebe116f7d377f1d53167577 100644 (file)
@@ -37,7 +37,6 @@ import org.apache.wicket.MarkupContainer;
 import org.apache.wicket.PageParameters;\r
 import org.apache.wicket.RestartResponseException;\r
 import org.apache.wicket.ajax.AjaxRequestTarget;\r
-import org.apache.wicket.behavior.IBehavior;\r
 import org.apache.wicket.behavior.SimpleAttributeModifier;\r
 import org.apache.wicket.markup.html.basic.Label;\r
 import org.apache.wicket.markup.html.image.ContextImage;\r
@@ -687,15 +686,6 @@ public class TicketPage extends RepositoryPage {
                                                Label status = new Label("statusChange", entry.getStatus().toString());\r
                                                String css = TicketsUI.getLozengeClass(entry.getStatus(), false);\r
                                                WicketUtils.setCssClass(status, css);\r
-                                               for (IBehavior b : status.getBehaviors()) {\r
-                                                       if (b instanceof SimpleAttributeModifier) {\r
-                                                               SimpleAttributeModifier sam = (SimpleAttributeModifier) b;\r
-                                                               if ("class".equals(sam.getAttribute())) {\r
-                                                                       status.add(new SimpleAttributeModifier("class", "status-change " + sam.getValue()));\r
-                                                                       break;\r
-                                                               }\r
-                                                       }\r
-                                               }\r
                                                frag.add(status);\r
                                                addUserAttributions(frag, entry, avatarWidth);\r
                                                addDateAttributions(frag, entry);\r