Title

Getting MindTouch Deki Wiki working on Windows Server

This site is intended to read more like a series of instructions than a blog, so I would recommend using the Table of Contents on the right to navigate.

Monday, March 18, 2019

Bug Fix for Inserting Images

I noticed when using Firefox 65 that trying to insert an image would cause the Browse tab to show the loading spinner indefinitely.  I found the bug and fixed it.
  • Open skins\common\yui\mindtouch\link_navigator.js
  • Search for "Content-Type" so you find this section:

    var contentType = o.getResponseHeader['Content-Type'] ?
                      o.getResponseHeader['Content-Type'] :
                      o.getResponseHeader['Content-type']; 
     
  • Change it to this:

    var contentType = o.getResponseHeader['Content-Type'] ||
                      o.getResponseHeader['Content-type'] ||
                      o.getResponseHeader['content-type'];  
    
It's searching for the "Content-Type" or "Content-type" header, but Firefox 65 uses "content-type".  Now it checks all three.

4 comments:

  1. Hmm, this appears to work for Firefox but how do I fix it for Chrome?

    ReplyDelete
  2. This solved similar problem when moving pages, thank you!
    Now works both for FF and Chrome (latest versions as of today)

    ReplyDelete
  3. AWESOME!!! Thank you so much!!!

    I'm bookmarking your blog (in our dekiwiki, of course), and we'll post anything useful we can add to this effort!

    ReplyDelete
  4. This little site, saved my Bacon. Thanks

    ReplyDelete