@@ -314,10 +314,11 function showModal(id, width) { | |||
|
314 | 314 | el.addClassName('modal'); |
|
315 | 315 | el.show(); |
|
316 | 316 | |
|
317 |
|
|
|
318 | if (submit) { | |
|
319 | submit.focus(); | |
|
320 | } | |
|
317 | if (el.down("input[type=text]")) { | |
|
318 | el.down("input[type=text]").focus(); | |
|
319 | } else if (el.down("input[type=submit]")) { | |
|
320 | el.down("input[type=submit]").focus(); | |
|
321 | } | |
|
321 | 322 | } |
|
322 | 323 | |
|
323 | 324 | function hideModal(el) { |
General Comments 0
You need to be logged in to leave comments.
Login now