content_handler_save_in: new content-handler generator
commite6a7ce984b3c6a8e54ea7ee8d0da4a9a7a47778c
authorJohn Foerch <jjfoerch@earthlink.net>
Tue, 1 Jun 2010 18:55:54 +0000 (1 14:55 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Tue, 1 Jun 2010 18:55:54 +0000 (1 14:55 -0400)
tree8309ea30b9082d8aa37fc44daf0bdecfb631899c
parented3828db561bdb43826249f85eba8792a0097138
content_handler_save_in: new content-handler generator

This allows users to set up an automatic save to a particular directory,
for a particular mime-type.  For example:

content_handlers.set("application/pdf",
                     content_handler_save_in("/home/me/doc/"));

If the optional second arg is given, and true, then there will be no
confirmation prompt for the filename.
modules/content-handler.js