A minor bug related to sub site

Nov 23, 2011 at 12:43 AM
Edited Nov 23, 2011 at 1:43 AM

In file "SP2010WordAutomation.UI.js", instead of:

    var options = {        url: '/_layouts/SP2010WordAutomation.UI/ConvertDocument.aspx?items=' + selectedItems + '&source=' + SP.ListOperation.Selection.getSelectedList(),        title: 'Convert Documents',        allowMaximize: false,        showClose: true,        width: 600,        height: 480,        dialogReturnValueCallback: SP2010WordAutomation.UI.ConvertCallback    };

It's better to use:

    var layoutsUrl = SP.Utilities.Utility.getLayoutsPageUrl('SP2010WordAutomation.UI/ConvertDocument.aspx');    layoutsUrl += '?items=' + selectedItems + '&source=' + SP.ListOperation.Selection.getSelectedList();    var options = {        url: layoutsUrl,        title: 'Convert Documents',        allowMaximize: false,        showClose: true,        width: 600,        height: 480,        dialogReturnValueCallback: SP2010WordAutomation.UI.ConvertCallback    };

 

Or else, we can only choose the document libraries in the root site as output library.