diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope index ba3c245..c2355b3 100644 --- a/.settings/.jsdtscope +++ b/.settings/.jsdtscope @@ -1,15 +1,12 @@ - - - - - - - - - + + + + + + + + + diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container index 3bd5d0a..49c8cd4 100644 --- a/.settings/org.eclipse.wst.jsdt.ui.superType.container +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -1 +1 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file +org.eclipse.wst.jsdt.launching.JRE_CONTAINER \ No newline at end of file diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..11006e2 --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Global \ No newline at end of file diff --git a/src/main/java/org/gcube/portlets/user/shareupdates/client/view/ShareUpdateForm.ui.xml b/src/main/java/org/gcube/portlets/user/shareupdates/client/view/ShareUpdateForm.ui.xml index d4fabed..2b3b3fa 100644 --- a/src/main/java/org/gcube/portlets/user/shareupdates/client/view/ShareUpdateForm.ui.xml +++ b/src/main/java/org/gcube/portlets/user/shareupdates/client/view/ShareUpdateForm.ui.xml @@ -3,7 +3,7 @@ xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:m="urn:import:org.gcube.portlets.user.shareupdates.client.view" xmlns:j="urn:import:org.gcube.portlets.widgets.fileupload.client.view"> - +
diff --git a/src/main/java/org/gcube/portlets/user/shareupdates/client/view/SuperPosedTextArea.java b/src/main/java/org/gcube/portlets/user/shareupdates/client/view/SuperPosedTextArea.java index fdadef5..d75d2c8 100644 --- a/src/main/java/org/gcube/portlets/user/shareupdates/client/view/SuperPosedTextArea.java +++ b/src/main/java/org/gcube/portlets/user/shareupdates/client/view/SuperPosedTextArea.java @@ -34,7 +34,7 @@ public class SuperPosedTextArea extends TextArea { PickUsersDialog pickUserDlg; public final static int ARROW_UP = 38; public final static int ARROW_DOWN = 40; - + private ArrayList mentionedUsers = new ArrayList(); /** @@ -58,7 +58,7 @@ public class SuperPosedTextArea extends TextArea { } }); DOM.setElementAttribute(getElement(), "id", "postTextArea"); - bind(); + bind(); } /** @@ -132,7 +132,7 @@ public class SuperPosedTextArea extends TextArea { // re-inject the processed text into the div DOM.getElementById("highlighter").setInnerHTML(text); } - + /** * events binder */ @@ -143,19 +143,19 @@ public class SuperPosedTextArea extends TextArea { String toAdd = event.getSelectedUser().getFullName(); mentionedUsers.add(toAdd); - + String[] toSplit = getText().split("@"); //get the preceeding part - + setText(toSplit[0]+toAdd); Element highDiv = DOM.getElementById("highlighter"); - + String[] htmlToSplit = highDiv.getInnerHTML().split("@"); //get the preceeding part String highLightedUser = ""+toAdd+""; highDiv.setInnerHTML(htmlToSplit[0]+highLightedUser); } }); } - + public ArrayList getMentionedUsers() { ArrayList toReturn = new ArrayList(); for (String mentionedUser : mentionedUsers) { diff --git a/src/main/webapp/ShareUpdates.css b/src/main/webapp/ShareUpdates.css index 5ab2b29..25de03f 100644 --- a/src/main/webapp/ShareUpdates.css +++ b/src/main/webapp/ShareUpdates.css @@ -226,7 +226,7 @@ a.link:hover { text-decoration: underline; } -.shareContainer { +.tab-main-container { width: 600px; background-clip: border-box; background-image: none; diff --git a/src/main/webapp/ShareUpdates.html b/src/main/webapp/ShareUpdates.html index 0a30930..50096dc 100644 --- a/src/main/webapp/ShareUpdates.html +++ b/src/main/webapp/ShareUpdates.html @@ -16,8 +16,8 @@ - + + - - - + + +