mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Project Spaces - first cut of summary template and some placeholder images
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7572 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
27
source/web/scripts/ajax/project_space.js
Normal file
27
source/web/scripts/ajax/project_space.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Prerequisites: mootools.v1.11.js
|
||||
*/
|
||||
var ProjectSpace =
|
||||
{
|
||||
init: function()
|
||||
{
|
||||
var summaries = $$("#projectSummary .projectSpaceSummary");
|
||||
|
||||
summaries.each(function(summary, i)
|
||||
{
|
||||
var summaryURL = summary.attributes["rel"].value;
|
||||
|
||||
if (summaryURL != "")
|
||||
{
|
||||
// ajax call to load space summary
|
||||
var myAjax = new Ajax(summaryURL, {
|
||||
method: "get",
|
||||
headers: {"If-Modified-Since": "Sat, 1 Jan 2000 00:00:00 GMT"},
|
||||
update: summary
|
||||
}).request();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
window.addEvent('domready', ProjectSpace.init);
|
Reference in New Issue
Block a user