Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bruce Clark 56 posts 80 karma points
    Oct 27, 2010 @ 21:50
    Bruce Clark
    0

    Changing document type dropdown doesn't swap icon. JS Error!

    When I create a new page from the top level node (Home in this case) I get a list of my document types, I can click through them and see the thumbnail icon and description of each one. Then create a page.

    However, doing this exact same thing from a 2nd level node doesn't give the same result. Instead of swapping in a new thumbnail and description I get a JS error, this is what I get via firebug:

    typeInfo is not defined
    [Break on this error] Failed to load source for: http://bruc...1U5-PBanROe3-YkfiJrJNrHkkw1&t=6df0ad7a

    Although it seems like a small problem it's really frustrating, the client can't tell what the document they're about to create except via the name. And changing the name doesn't change the description so then the 2 items say conflicting things.

    Any help on this would be greatly appreciated. Not sure why in any way it would work from the top Home node and not lower nodes. Also, it doesn't matter what the sub-node is that you're trying to create a document from, this bug happens on all of them. IE: It's not issolated to one document type.

    Thanks for the help.

    Bruce

  • Bruce Clark 56 posts 80 karma points
    Nov 01, 2010 @ 17:52
    Bruce Clark
    0

    Any insight or help on this? I'm still looking for a solution.

     

    Cheers

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Nov 01, 2010 @ 22:11
    Tom Fulton
    0

    Hi Bruce,

    I suspect it's something to do with the description of one of your Doctypes that is allowed under that second level.  I tested here on a fresh install and it works fine.

    But I can reproduce a similar issue by adding an apostrophe in a description of one of my doctypes.

    If you look in the script tab in Firebug for the typeInfo array you'll probably see the issue - doesn't look like it escapes apostrophes / quotes, or maybe theres another similar issue on your case

    var typeInfo = new Array(2);
    typeInfo[0] = '<img src="/umbraco/images/thumbnails/developer.png"><p><strong>test-er</strong><br/>i'm a tester</p>'
    typeInfo[1] = '<img src="/umbraco/images/thumbnails/doc.png"><p><strong>Textpage</strong><br/><em>No description available...</em></p>'

    Probably worth reporting on codeplex

    -Tom

  • Bruce Clark 56 posts 80 karma points
    Nov 01, 2010 @ 22:18
    Bruce Clark
    0

    This is exactly what the problem was. I had both ( ) and ' ' in my descriptions. I'll submit a codeplex bug report to reference it.

    Thank you so much!

    -Bruce

  • Bruce Clark 56 posts 80 karma points
    Nov 01, 2010 @ 22:30
Please Sign in or register to post replies

Write your reply to:

Draft