Merged V2.1 to HEAD

6500: Office 2003 Add-ins: Fix for AWC-1505
   6501: Fix for AWC-1361
   6502: Fixes for locking issues regrading expired content
   6503: Fix for AR-1615
   6504: WCM-444, WCM-288, WCM-735, WCM-480
   6505: WCM-498 wasn't fully fixed
   6506: Fix for AWC-1462
   6507: Fix for WCM-741 (link validation report for staging sandbox can get stuck)
   6508: AR-1650: WS Unit tests fail
   6509: Fix for WCM-751 which also solves WCM-570 - also fixed issue to allow deletion of any "broken" webprojects created due to either of those bugs.
   6510: Fix for WCM-546 (workflow history panel should be expanded by default)
   6511: Fix AWC-1128
   6512: Fixes to several to a couple of bugs found under concurrent load.
   6513: Build fix for test using an invalid noderef (now stripped out as it does not exist)
   6514: Add support for the QueryFile transact request to the IPC$ named pipe handler. Fix for AR-1687.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6740 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-09-10 23:30:53 +00:00
parent cc218b118e
commit 6e5ac9d831
15 changed files with 170 additions and 83 deletions

View File

@@ -504,6 +504,8 @@ var MySpaces = {
var panel = $E(".spaceCreateSpacePanel", $(actionEl).getParent());
panel.setStyle("opacity", 0);
panel.setStyle("display", "inline");
panel.getElementById("space-name").removeClass("spaceFormItemError");
Alfresco.Dom.smartAlignElement(panel, panel.getParent());
// make into a dragable panel
new Drag.Move(panel);
@@ -539,34 +541,43 @@ var MySpaces = {
if (spaceName.length != 0)
{
// ajax call to create space
YAHOO.util.Connect.asyncRequest(
"POST",
getContextPath() + '/ajax/invoke/MySpacesBean.createSpace',
{
success: function(response)
if (spaceName.test(/(.*[\"\*\\\>\<\?\/\:\|]+.*)|(.*[\.]?.*[\.]+$)|(.*[ ]+$)/i))
{
var spaceName = panel.getElementById("space-name");
spaceName.addClass("spaceFormItemError");
spaceName.focus();
}
else
{
// ajax call to create space
YAHOO.util.Connect.asyncRequest(
"POST",
getContextPath() + '/ajax/invoke/MySpacesBean.createSpace',
{
if (response.responseText.indexOf("OK:") == 0)
success: function(response)
{
MySpaces.refreshList();
}
else
if (response.responseText.indexOf("OK:") == 0)
{
MySpaces.refreshList();
}
else
{
alert("Error during creation of new space: " + response.responseText);
}
MySpaces.closePopupPanel();
},
failure: function(response)
{
alert("Error during creation of new space: " + response.responseText);
MySpaces.closePopupPanel();
}
MySpaces.closePopupPanel();
},
failure: function(response)
{
alert("Error during creation of new space: " + response.responseText);
MySpaces.closePopupPanel();
}
},
"path=" + path.replace("_%_", "'") +
"&name=" + encodeURIComponent(spaceName) +
"&title=" + encodeURIComponent(spaceTitle) +
"&description=" + encodeURIComponent(spaceDesc)
);
},
"path=" + path.replace("_%_", "'") +
"&name=" + encodeURIComponent(spaceName) +
"&title=" + encodeURIComponent(spaceTitle) +
"&description=" + encodeURIComponent(spaceDesc)
);
}
}
},