Index: conditionshandling.php =================================================================== --- conditionshandling.php (revision 9909) +++ conditionshandling.php (working copy) @@ -426,10 +426,6 @@ { $message .= $clang->gT("No condition selected to copy from","js").". "; } - if (!isset($copyconditionsto)) - { - $message .= $clang->gT("No question selected to copy condition to","js")."."; - } $conditionsoutput_action_error .= "\n"; } } @@ -1668,7 +1664,7 @@ ."\t});\n" ."}\n" ."\n"; - + } else { Index: scripts/conditions.js =================================================================== --- scripts/conditions.js (revision 9909) +++ scripts/conditions.js (working copy) @@ -1,3 +1,12 @@ +$('#copyconditions').submit(function() { + if (!$("#copytomultiselect option:selected").length) + { + alert("Please select atleast one question for copying condition"); + return false; + + } + }); + function jquery_goodchars(e, goods) { var key, keychar; @@ -23,7 +32,8 @@ $(document).ready(function(){ - $('#languagetabs').tabs(); + +$('#languagetabs').tabs(); $('#radiototal,#radiogroup').change( function() { @@ -51,6 +61,7 @@ } ) } + );