Changeset 886

Show
Ignore:
Timestamp:
12/12/06 03:11:20 (2 years ago)
Author:
gboggs
Message:

Check for input existence before evaluating them. BugId: 45834

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/tmpl/cms/edit_template.tmpl

    r852 r886  
    8484 
    8585function validate (f, rebuild) { 
    86     if (!f.name.value) { 
     86    if (f.name && !f.name.value) { 
    8787        alert('<MT_TRANS phrase="You must set the Template Name." escape="singlequotes">'); 
    8888        return false; 
    8989    } 
    90     else if (!f.outfile.value) { 
     90    else if (f.outfile && !f.outfile.value) { 
    9191        alert('<MT_TRANS phrase="You must set the template Output File." escape="singlequotes">'); 
    9292        return false;