@@ -72,11 +95,8 @@
- Additional Material:
-
- Select file to attach
+ Additional Material (max 3 files, allowed max size per file: 10 MB):
+
Select file to attach
diff --git a/src/main/webapp/js/main.js b/src/main/webapp/js/main.js
index a8ffae9..18f2bdf 100644
--- a/src/main/webapp/js/main.js
+++ b/src/main/webapp/js/main.js
@@ -19,7 +19,7 @@ function showWPPopup(url) {
}
-//handle the event from ws explorer
+//handle the event from ws explorer (not used anymore)
Liferay.on('getSelectedItem', function(event) {
var id = event.id;
var name = event.name;
@@ -29,6 +29,13 @@ Liferay.on('getSelectedItem', function(event) {
$("#attachedFiles").append(chip);
});
+function appendChip(name, id) {
+ var chip = $(''+
+ name + ' '+
+ '');
+ $("#attachedFiles").append(chip);
+}
+
function removeFromParent(el) {
$(el).parent().remove();
}