if (!this.configDialog)
{
this.configDialog = new Alfresco.module.SimpleDialog(this.id + "-configDialog").setOptions(
{
width: "30em",
templateUrl: Alfresco.constants.URL_SERVICECONTEXT + "modules/someco/get-latest-doc/config",
actionUrl: actionUrl,
onSuccess:
{
fn: function getLatestDoc_onConfig_callback(response)
{
var obj = response.json;
// Save values for new config dialog openings
this.options.title = (obj && obj.title) ? obj.title : this.options.title;
this.options.filterPath = (obj && obj.filterPath) ? obj.filterPath : this.options.filterPath;
// Update dashlet body with new values
Dom.get(this.configDialog.id + "-title").value = obj ? obj.title : "";
Dom.get(this.configDialog.id + "-filterPath").value = obj ? obj.filterPath : "";
Dom.get(this.configDialog.id + "-filterPathView").innerHTML = obj ? obj.filterPathView : "";
},
scope: this
},