From 8062ddd9cb3206399b4f88916bccd9e3fa2104c5 Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Mon, 3 Apr 2017 14:55:21 -0400 Subject: [PATCH] Prefixed dropzone button classname with DZ- Signed-off-by: Laurence Maultsby --- .../composer/src/src/components/filemanager/FileManager.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx b/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx index d1e5c9370..913f71ac6 100644 --- a/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx +++ b/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx @@ -132,7 +132,8 @@ function buildList(self, data) { function contentFolder(context, folder, path, key, inputState, updateFn, sendDownloadFileRequst, deleteFn) { let type = context.props.type; let id = context.props.item.id; - const onboardDropZone = createDropZone.bind(this, FileManagerUploadDropZone.ACTIONS.onboard, '.ComposerAppAddFile.' + path.replace(/\//g, '-'), type, id, path); + let classId = `DZ-${path.replace(/\//g, '-')}`; + const onboardDropZone = createDropZone.bind(this, FileManagerUploadDropZone.ACTIONS.onboard, '.ComposerAppAddFile.' + classId, type, id, path); return (
@@ -170,11 +171,12 @@ class ItemUpload extends React.Component { } render() { let {type, id, path, key, ...props} = this.props; + let classId = `DZ-${path.replace(/\//g, '-')}`; return (
) -- 2.25.1