From 92211fb733030a36267ccc496d9ed508a4f2b7fa Mon Sep 17 00:00:00 2001 From: mka Date: Thu, 12 Dec 2013 14:48:20 +0000 Subject: [PATCH] Update uses list functionality --- .../Siman/WebContent/study/importDocument.jsp | 40 +++++++++++++------ Workspace/Siman/WebContent/study/usesList.jsp | 17 ++++++++ .../org/splat/simer/ImportDocumentAction.java | 17 +++++++- Workspace/Siman/src/struts.xml | 6 +++ 4 files changed, 66 insertions(+), 14 deletions(-) create mode 100644 Workspace/Siman/WebContent/study/usesList.jsp diff --git a/Workspace/Siman/WebContent/study/importDocument.jsp b/Workspace/Siman/WebContent/study/importDocument.jsp index 3a715bd..ee3f104 100644 --- a/Workspace/Siman/WebContent/study/importDocument.jsp +++ b/Workspace/Siman/WebContent/study/importDocument.jsp @@ -42,6 +42,19 @@ $(document).ready(function () { } }); }); + +$(document).ready(function () { + $("#bring #documentType").change(function () { + $.ajax({ + type: 'POST', + url:'update-uses.action?documentType=' + $('#documentType').val(), + success: function(data){ + $("#bring .dynamic").remove(); + $(data).insertBefore("#bring .inner"); + } + }); + } +)}).change();