Popupform title

Sep 20, 2011 at 7:25 PM

Hi,

Is it possible to set the title of a popupform from @Html.PopupActionLink(..)?

Cheers,

Jeroen.

Coordinator
Sep 20, 2011 at 8:18 PM

no you do it in the MakePopupForm

but I think you can change it with custom js in your view if you really need to

basically you do $('#popupid').dialog({ title: 'my new title' });

Sep 21, 2011 at 5:35 AM

Thanks. I ended up copying the standard function and adding one line which sets the title. 

 

    function callpviewlibraryTitle(id, title) {
        if(lpviewlibrary != null) return;
        lpviewlibrary = true;
        $.get('/Library/View', { id : id }, function(d){
            lpviewlibrary = null;
            $("#pviewlibrary").dialog("option", "title", title);
            $("#pviewlibrary").html(d).dialog('open');
        });
    } 

This would be handy in the Awesome library ;)

Cheers,

Jeroen.