Bug 1118930: validateEnterBug() doesn't work when attachments are disabled
r=LpSolit a=glob git-svn-id: svn://10.0.0.236/trunk@265839 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5e6a8fcd0d
commit
20e5630d37
@ -1 +1 @@
|
||||
9315
|
||||
9316
|
||||
@ -1 +1 @@
|
||||
0a8f7a59f894738d86564874fbabeb1c81f3178d
|
||||
6419b7fcbf9c8efa2d7b55c7e40cfbdf08a5cd5c
|
||||
@ -42,7 +42,7 @@ function validateEnterBug(theform) {
|
||||
|
||||
// These are checked in the reverse order that they appear on the page,
|
||||
// so that the one closest to the top of the form will be focused.
|
||||
if (attach_data.value && YAHOO.lang.trim(attach_desc.value) == '') {
|
||||
if (attach_data && attach_data.value && YAHOO.lang.trim(attach_desc.value) == '') {
|
||||
_errorFor(attach_desc, 'attach_desc');
|
||||
focus_me = attach_desc;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user