mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Usability updates for Office Web Scripts
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6250 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -226,6 +226,23 @@ var OfficeMyTasks =
|
||||
}
|
||||
});
|
||||
myAjax.request();
|
||||
},
|
||||
|
||||
refreshPage: function()
|
||||
{
|
||||
// Remove any trailing hash
|
||||
var href = window.location.href.replace("#", "")
|
||||
// Remove any previous "st", "w", "wd" or "t" parameters
|
||||
href = OfficeAddin.removeParameters(href, "st|w|wd|t");
|
||||
// Re-select a selected task after reload
|
||||
var taskSel = $E('#taskList .taskItemSelected');
|
||||
if (taskSel != null)
|
||||
{
|
||||
var taskId = taskSel.id;
|
||||
href += (href.indexOf("?") == -1) ? "?" : "&";
|
||||
href += "t=" + encodeURI(taskId);
|
||||
}
|
||||
window.location.href = href;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user