tell user if he attempts to move files to empty study

This commit is contained in:
Sanj 2011-07-11 03:31:23 +05:30
parent d3c03e0529
commit 6c954e16a9

View File

@ -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