Merged V2.1 to HEAD

6938: Fix for WCM-864 (bulk import of ZIP containing only directories and no files)
   6939: Fix for AWC-1602. Workaround for MSIE7 DOM access methods in Javascript.
   6942: Fixed bug in transaction demarcation around the patch service.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7349 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-11-12 14:40:12 +00:00
parent 3cf0420a73
commit f9a456f870
2 changed files with 9 additions and 5 deletions

View File

@@ -310,7 +310,10 @@ public class ImportWebsiteDialog
}
finally
{
ImporterActionExecuter.deleteDir(tempDir);
if (tempDir.exists())
{
ImporterActionExecuter.deleteDir(tempDir);
}
}
}
catch (IOException e)
@@ -330,6 +333,7 @@ public class ImportWebsiteDialog
ServiceRegistry services = Repository.getServiceRegistry(FacesContext.getCurrentInstance());
MimetypeService mimetypeService = services.getMimetypeService();
File topdir = new File(dir);
if (!topdir.exists()) return;
for (File file : topdir.listFiles())
{
try

View File

@@ -504,7 +504,7 @@ var MySpaces = {
var panel = $E(".spaceCreateSpacePanel", $(actionEl).getParent());
panel.setStyle("opacity", 0);
panel.setStyle("display", "inline");
panel.getElementById("space-name").removeClass("spaceFormItemError");
panel.getElementsBySelector('#space-name').removeClass("spaceFormItemError");
Alfresco.Dom.smartAlignElement(panel, panel.getParent());
// make into a dragable panel
@@ -543,9 +543,9 @@ var MySpaces = {
{
if (spaceName.test(/(.*[\"\*\\\>\<\?\/\:\|]+.*)|(.*[\.]?.*[\.]+$)|(.*[ ]+$)/i))
{
var spaceName = panel.getElementById("space-name");
spaceName.addClass("spaceFormItemError");
spaceName.focus();
// Different object access methods to workaround MSIE7 problem
panel.getElementsBySelector('#space-name').addClass("spaceFormItemError");
panel.getElementById("space-name").focus();
}
else
{