Adding template and js to show warnings.
This commit is contained in:
parent
f85c9fa8f8
commit
272283e75d
3 changed files with 5 additions and 1 deletions
Binary file not shown.
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue