From 0f8b7ca662b8cec859ee44656b7477c1cc155695 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Thu, 11 Sep 2014 13:04:50 -0300 Subject: [PATCH] mindmapShare css improvements --- .../src/main/webapp/jsp/mindmapShare.jsp | 41 +++++++++++++++---- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/wise-webapp/src/main/webapp/jsp/mindmapShare.jsp b/wise-webapp/src/main/webapp/jsp/mindmapShare.jsp index 97a1904c..974bd8e9 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapShare.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapShare.jsp @@ -3,7 +3,7 @@

:

@@ -48,8 +65,8 @@ -
-
+
+

:

@@ -89,6 +106,13 @@ $("#addMessageLink").click(function (event) { event.preventDefault(); }); +$("#collabEmails").keyup(function(event) { + var keyCode = event.keyCode; + if (keyCode == 13) { + $('#addBtn').trigger('click'); + } +}); + var messages = { owner:'', editor:'', @@ -106,10 +130,11 @@ function addCollaboration(email, role, changeType) { var rowStr; var tableElem = $("#collabsTable"); if (role != "owner") { + tableElem = $("#collabsTable tbody"); // Add row to the table ... var rowTemplate = '\ \ - {email}{typeIcon}\ + {email}{typeIcon}\ \
\ \ @@ -119,7 +144,7 @@ function addCollaboration(email, role, changeType) { \
\ \ - x\ + x\ '; rowStr = rowTemplate.replace(/{email}/g, email); @@ -146,8 +171,8 @@ function addCollaboration(email, role, changeType) { }); } else { rowStr = '\ - ' + email + ' ()\ - \ + ' + email + ' ()\ + \ \ '; tableElem.append(rowStr);