Copied to clipboard

Flag this post as spam?

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


  • bob baty-barr 1180 posts 1294 karma points MVP
    May 15, 2012 @ 21:29
    bob baty-barr
    0

    Feature Request: multiUrl Picker show title in UI

    In the multiUrl Picker, could someone who understands .net coding better than I do please make it so the title shows up in the UI in addtion to the link when a custom title is specified - just makes the component a bit more end user friendly.

    thanks :)

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 15, 2012 @ 21:34
    Lee Kelleher
    2

    Hi Bob,

    Could you create a ticket for this on our CodePlex please? http://ucomponents.codeplex.com/WorkItem/Create

    We can review it and try to schedule it in.

    Thanks, Lee.

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 15, 2012 @ 21:38
    bob baty-barr
    2

    done! also, if you want to point me to where in the source i can hack that - any pointers would be greatly appreciated ;)

    http://ucomponents.codeplex.com/workitem/14722

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 15, 2012 @ 21:41
    Tom Fulton
    2

    Not thoroughly tested, but this seems to do the trick :)

    In MultiUrlPickerScripts.js (see the 4 bold lines)

    $itemContainer.children().each(function () {
    var $li = $(this);
    var state = getItemState($li);
    var url = state.Url;
    var displayText = state.Title || url || "";
     
    $li.
    find(".url.button").
    text(displayText).
    attr("href", url);
    });

    -Tom

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 15, 2012 @ 21:43
    bob baty-barr
    0

    thanks Tom!

    well, i feel good that i was at least looking in the right spot :) 

    let me try it out and see if it works for me on this end :)

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 15, 2012 @ 21:58
    bob baty-barr
    0

    hey, it works just like i wanted! 

    i guess if i would change anything, i would make it so it did not hyperlink? but, this acheives what i was looking for!

    thanks again Tom!

  • bob baty-barr 1180 posts 1294 karma points MVP
    May 15, 2012 @ 22:01
    bob baty-barr
    0

    oh, wait, i see how this all works now... it is finding a class then it is setting the text and the link...

    hmmm, i guess that works for me ;)

Please Sign in or register to post replies

Write your reply to:

Draft