fixed tree update when moving a node to trash with no children but trashed ones,...
[pithos] / src / gr / ebs / gss / client / UserAddDialog.java
index 3770e0e..3d35522 100644 (file)
@@ -105,6 +105,7 @@ public class UserAddDialog extends DialogBox {
                                        updateSuggestions();
                        }
                });
+               suggestBox.getElement().setId("addUser.textBox");
         userTable.setWidget(0, 1, suggestBox);
         panel.add(userTable);
                HorizontalPanel buttons = new HorizontalPanel();
@@ -115,6 +116,7 @@ public class UserAddDialog extends DialogBox {
                                hide();
                        }
                });
+               ok.getElement().setId("addUser.button.ok");
                buttons.add(ok);
                buttons.setCellHorizontalAlignment(ok, HasHorizontalAlignment.ALIGN_CENTER);
                // Create the 'Cancel' button, along with a listener that hides the
@@ -125,6 +127,7 @@ public class UserAddDialog extends DialogBox {
                                hide();
                        }
                });
+               cancel.getElement().setId("addUser.button.cancel");
                buttons.add(cancel);
                buttons.setCellHorizontalAlignment(cancel, HasHorizontalAlignment.ALIGN_CENTER);
                buttons.setSpacing(8);
@@ -214,7 +217,7 @@ public class UserAddDialog extends DialogBox {
                GWT.log("Searching for " + query, null);
 
                GetCommand<UserSearchResource> eg = new GetCommand<UserSearchResource>(UserSearchResource.class,
-                                       app.getApiPath() + "users/" + URL.encodeComponent(query), false) {
+                                       app.getApiPath() + "users/" + URL.encodeComponent(query), false, null) {
 
                        @Override
                        public void onComplete() {