Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zimbra-admin-api-js
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Public
zimbra-admin-api-js
Commits
ca8d52fd
Commit
ca8d52fd
authored
May 31, 2016
by
Juorder Antonio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the way on how split the items when upload a file that contains multiple accounts for adding
parent
1478ab0e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
action_set_name
.vagrant/machines/default/virtualbox/action_set_name
+1
-1
path.json
path.json
+1
-1
import_massive_modal.jsx
src/components/import_massive_modal.jsx
+2
-1
No files found.
.vagrant/machines/default/virtualbox/action_set_name
View file @
ca8d52fd
1465307111
1465787195
\ No newline at end of file
\ No newline at end of file
path.json
View file @
ca8d52fd
module.exports
=
{
"main"
:{
"js"
:
"/749887bundle.js"
}}
module.exports
=
{
"main"
:{
"js"
:
"/430297bundle.js"
}}
\ No newline at end of file
\ No newline at end of file
src/components/import_massive_modal.jsx
View file @
ca8d52fd
...
@@ -144,8 +144,9 @@ export default class ImportMassiveModal extends React.Component {
...
@@ -144,8 +144,9 @@ export default class ImportMassiveModal extends React.Component {
}
}
extractCols
(
data
,
flagDefault
)
{
extractCols
(
data
,
flagDefault
)
{
let
splitConditio
=
/
\r\n
|
\r
|
\n
/g
;
let
hasError
=
false
;
let
hasError
=
false
;
const
dataArray
=
data
.
split
(
'
\
r
\
n'
);
const
dataArray
=
data
.
split
(
splitConditio
);
const
isEmpty
=
dataArray
.
some
((
pos
)
=>
{
const
isEmpty
=
dataArray
.
some
((
pos
)
=>
{
if
(
pos
===
''
)
{
if
(
pos
===
''
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment