mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Removed the folder name prefix check so that the client side drag and drop app will appear in all folders,
if enabled in the file-servers.xml config file. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2763 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2005 Alfresco, Inc.
|
||||
* Copyright (C) 2005-2006 Alfresco, Inc.
|
||||
*
|
||||
* Licensed under the Mozilla Public License version 1.1
|
||||
* with a permitted attribution clause. You may obtain a
|
||||
@@ -14,7 +14,6 @@
|
||||
* language governing permissions and limitations under the
|
||||
* License.
|
||||
*/
|
||||
|
||||
package org.alfresco.filesys.smb.server.repo.pseudo;
|
||||
|
||||
import org.alfresco.filesys.server.SrvSession;
|
||||
@@ -136,14 +135,6 @@ public class ContentPseudoFileImpl implements PseudoFileInterface
|
||||
if ( fstate == null)
|
||||
ctx.getStateTable().findFileState( path, true, true);
|
||||
|
||||
// Check if the folder name starts with 'DRAG', if so then enable the drag and drop pseudo file
|
||||
// for this folder
|
||||
|
||||
String[] allPaths = FileName.splitAllPaths( path);
|
||||
String lastPath = allPaths[allPaths.length - 1].toUpperCase();
|
||||
|
||||
if ( lastPath.startsWith("DRAG") && fstate.hasPseudoFiles() == false)
|
||||
{
|
||||
// Enable the drag and drop pseudo file
|
||||
|
||||
fstate.addPseudoFile( ctx.getDragAndDropApp());
|
||||
@@ -157,7 +148,6 @@ public class ContentPseudoFileImpl implements PseudoFileInterface
|
||||
if ( logger.isInfoEnabled())
|
||||
logger.info("Added drag/drop pseudo file for " + path);
|
||||
}
|
||||
}
|
||||
|
||||
// Add the URL link pseudo file, if enabled
|
||||
|
||||
|
Reference in New Issue
Block a user