From 6c954e16a957e44ddb17d02c56ee27e59f03360f Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 11 Jul 2011 03:31:23 +0530 Subject: [PATCH] tell user if he attempts to move files to empty study --- edgware/static/js/files/browse.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/edgware/static/js/files/browse.js b/edgware/static/js/files/browse.js index f02cf6c..525a295 100644 --- a/edgware/static/js/files/browse.js +++ b/edgware/static/js/files/browse.js @@ -96,6 +96,10 @@ $(function() { return false; } var study_id = $('#moveSelectedSelect').val(); + if (study_id == '') { + alert("please select a study to move to."); + return false; + } var params = { 'ids': JSON.stringify(ids), 'study': study_id