fix keep-file -- it should be a render-element

svn: r10787
This commit is contained in:
Eli Barzilay 2008-07-16 10:32:57 +00:00
parent cd6acfdd28
commit 3111d2c147
2 changed files with 10 additions and 11 deletions

View File

@ -181,9 +181,10 @@
(make-paragraph
(list
(script-ref "plt-index.js"
#:noscript @list{Sorry, you must have JavaScript to use this page.})
#:noscript
@list{Sorry, you must have JavaScript to use this page.})
(script-ref "search.js")
(make-render-element (make-with-attributes #f '((id . "plt_search_container")))
null
(lambda (r s i)
(make-script user-dir? r s i))))))
(make-render-element
(make-with-attributes #f '((id . "plt_search_container")))
null
(lambda (r s i) (make-script user-dir? r s i))))))

View File

@ -6,9 +6,7 @@
(provide keep-file)
(define (keep-file file)
(make-delayed-element
(lambda (render part ri)
(send render install-file file)
null)
(lambda () 0)
(lambda () (make-element #f (list)))))
(make-render-element
(make-element #f (list))
null
(lambda (r s i) (send r install-file file))))