Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
jio-main
Commits
246f00e1
Commit
246f00e1
authored
Feb 05, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove console.logs from revision storage
parent
42c5bf5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
src/jio.storage/revisionstorage.js
src/jio.storage/revisionstorage.js
+0
-12
No files found.
src/jio.storage/revisionstorage.js
View file @
246f00e1
...
...
@@ -691,10 +691,8 @@ jIO.addStorageType('revision', function (spec, my) {
function
(
response
)
{
var
attachment_list
=
[],
i
;
prev_doc
=
response
;
console
.
log
(
0
);
for
(
i
in
response
.
_attachments
)
{
if
(
response
.
_attachments
.
hasOwnProperty
(
i
))
{
console
.
log
(
2
);
attachment_list
.
push
({
"
id
"
:
i
,
"
attachment
"
:
{
"
_id
"
:
command
.
getDocId
()
+
"
.
"
+
revs_info
[
0
].
rev
+
"
/
"
+
i
,
"
_mimetype
"
:
response
.
_attachments
[
i
].
content_type
,
...
...
@@ -712,7 +710,6 @@ jIO.addStorageType('revision', function (spec, my) {
}
};
functions
.
postDocument
=
function
(
attachment_list
)
{
console
.
log
(
3
);
that
.
addJob
(
"
post
"
,
priv
.
substorage
,
...
...
@@ -720,15 +717,11 @@ jIO.addStorageType('revision', function (spec, my) {
command
.
getOption
(),
function
(
response
)
{
var
i
;
console
.
log
(
4
);
if
(
attachment_list
.
length
===
0
)
{
console
.
log
(
5
);
functions
.
postAttachment
();
}
else
{
console
.
log
(
6
);
functions
.
post_attachment_count
=
attachment_list
.
length
;
for
(
i
=
0
;
i
<
attachment_list
.
length
;
i
+=
1
)
{
console
.
log
(
7
);
functions
.
copyAttachment
(
attachment_list
[
i
].
id
,
attachment_list
[
i
].
attachment
);
}
...
...
@@ -741,14 +734,12 @@ jIO.addStorageType('revision', function (spec, my) {
);
};
functions
.
copyAttachment
=
function
(
attachmentid
,
attachment
)
{
console
.
log
(
8
);
that
.
addJob
(
"
get
"
,
priv
.
substorage
,
prev_doc
.
_id
+
"
/
"
+
attachmentid
,
command
.
cloneOption
(),
function
(
response
)
{
console
.
log
(
7
);
attachment
.
_data
=
response
;
that
.
addJob
(
"
putAttachment
"
,
...
...
@@ -756,18 +747,15 @@ jIO.addStorageType('revision', function (spec, my) {
attachment
,
command
.
cloneOption
(),
function
(
response
)
{
console
.
log
(
9
);
functions
.
postAttachment
();
},
function
(
err
)
{
console
.
log
(
10
);
err
.
message
=
"
Cannot copy previous attachment
"
;
functions
.
error
(
err
);
}
);
},
function
(
err
)
{
console
.
log
(
11
);
err
.
message
=
"
Cannot copy previous attachment
"
;
functions
.
error
(
err
);
}
...
...
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