~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/apps/browser/__init__.py

  • Committer: mattgiuca
  • Date: 2008-02-29 02:07:06 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:622
browser.js: Reinstated upload_callback (previously removed from listing.js).
    This is neccessary to prevent upload making a refresh as soon as the page
    loads, causing unnecessary server usage and currently causing an error as
    well.
__init__.py: Upload callback - changed from refresh() to a call to
    upload_callback() - which is a "smarter" wrapper around refresh().

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
      </span>
221
221
      <!-- This iframe is for making a call to upload the file without
222
222
           refreshing the page. (It will refresh the listing). -->
223
 
      <iframe onload="refresh()" style="display: none;"
 
223
      <iframe onload="upload_callback()" style="display: none;"
224
224
          name="upload_iframe" id="upload_iframe"></iframe>
225
225
    </form>
226
226
""" % cgi.escape(util.make_path(os.path.join("fileservice", req.path))))