Copied to clipboard

Flag this post as spam?

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


  • Bogdan 250 posts 427 karma points
    Apr 13, 2011 @ 11:05
    Bogdan
    0

    missing ; before statement javascript error

    Hi,

    I have a 1:1 multilanguage website, and created some properties on a doc type like so:

    propertyName - for main language

    propertyName_xx-XX - for another language

    Clicking the content node triggers the error missing ; before statement and no tab works. The js line is:

    Source File: http://localhost:1001/umbraco/editContent.aspx?id=1048
    Line: 849, Column: 54

    Source Code: var mc_body_pagePickerprop_topLinks_nl-LI = new Umbraco.Controls.TreePicker('body_pagePickerprop_topLinks_nl-LI','Choose Content','body_pagePickerprop_topLinks_nl-LI_ContentIdValue','body_pagePickerprop_topLinks_nl-LI_title','/umbraco/dialogs/treepicker.aspx?rnd=83ceca2008484045b1a481bc5a5ca3f3&id=-1&treeType=content&contextMenu=true&isDialog=false&app=content',300,400,true,'/umbraco');

    topLinks is a Related links property. There's another property that causes the problem, and that one is a Media picker. On the doc type there are two more properties like that, but those don't cause any problems, one is a Textstring (inherited from the parent doc type) and a Multi node tree picker from uComponents. These two don't appear in that javascript block. I don't know what that js does, but I know that the - sign cannot be part of var names.

    umbraco version is 4.7.0 (Assembly version: 1.0.4119.19932)

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Apr 13, 2011 @ 12:41
    Dirk De Grave
    0

    Hi,

    Better report this bug on Codeplex as it's not exactly a our forum bug?

     

    TIA,

    /Dirk

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies