Adding template and js to show warnings.

This commit is contained in:
Kaleb Murphy 2009-03-31 04:39:48 +00:00
parent f85c9fa8f8
commit 272283e75d
3 changed files with 5 additions and 1 deletions

View file

@ -1278,7 +1278,6 @@ sub validateGotoExpression{
my $goodTargets = shift;
if($object->{gotoExpression} =~ /\w/ and $object->{gotoExpression} =~ /\s*?(\w*)/){
my $tar = $1;
$self->session->log->error("expre targ was $tar");
return 0 if(! exists $goodTargets->{$1});
}
return 1;

View file

@ -54,6 +54,11 @@ Survey.Data = (function(){
loadData: function(d){
focus = d.address;//What is the current highlighted item.
var warnings = "";
for(var w in d.warnings){
warnings = warnings + "<br>" + d.warnings[w];
}
document.getElementById('warnings').innerHTML = warnings;
var showEdit = 1;
if (lastId.toString() === d.address.toString()) {
showEdit = 0;