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
00206fb6
Commit
00206fb6
authored
Dec 28, 2012
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error messages, localstorage.js
parent
52012503
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/jio.storage/localstorage.js
src/jio.storage/localstorage.js
+6
-6
No files found.
src/jio.storage/localstorage.js
View file @
00206fb6
...
@@ -110,7 +110,7 @@ var newLocalStorage = function (spec, my) {
...
@@ -110,7 +110,7 @@ var newLocalStorage = function (spec, my) {
doc
=
localstorage
.
getItem
(
doc
=
localstorage
.
getItem
(
priv
.
localpath
+
"
/
"
+
doc
);
priv
.
localpath
+
"
/
"
+
doc
);
if
(
doc
===
null
)
{
if
(
doc
===
null
)
{
// the document does not exist
s
// the document does not exist
localstorage
.
setItem
(
localstorage
.
setItem
(
priv
.
localpath
+
"
/
"
+
command
.
getDocId
(),
priv
.
localpath
+
"
/
"
+
command
.
getDocId
(),
command
.
cloneDoc
());
command
.
cloneDoc
());
...
@@ -139,7 +139,7 @@ var newLocalStorage = function (spec, my) {
...
@@ -139,7 +139,7 @@ var newLocalStorage = function (spec, my) {
doc
=
localstorage
.
getItem
(
doc
=
localstorage
.
getItem
(
priv
.
localpath
+
"
/
"
+
command
.
getDocId
());
priv
.
localpath
+
"
/
"
+
command
.
getDocId
());
if
(
doc
===
null
)
{
if
(
doc
===
null
)
{
// the document does not exist
s
// the document does not exist
doc
=
command
.
cloneDoc
();
doc
=
command
.
cloneDoc
();
}
else
{
}
else
{
// the document already exists
// the document already exists
...
@@ -164,7 +164,7 @@ var newLocalStorage = function (spec, my) {
...
@@ -164,7 +164,7 @@ var newLocalStorage = function (spec, my) {
doc
=
localstorage
.
getItem
(
doc
=
localstorage
.
getItem
(
priv
.
localpath
+
"
/
"
+
command
.
getDocId
());
priv
.
localpath
+
"
/
"
+
command
.
getDocId
());
if
(
doc
===
null
)
{
if
(
doc
===
null
)
{
// the document does not exist
s
// the document does not exist
that
.
error
({
that
.
error
({
"
status
"
:
404
,
"
status
"
:
404
,
"
statusText
"
:
"
Not Found
"
,
"
statusText
"
:
"
Not Found
"
,
...
@@ -219,8 +219,8 @@ var newLocalStorage = function (spec, my) {
...
@@ -219,8 +219,8 @@ var newLocalStorage = function (spec, my) {
"
status
"
:
404
,
"
status
"
:
404
,
"
statusText
"
:
"
Not Found
"
,
"
statusText
"
:
"
Not Found
"
,
"
error
"
:
"
not_found
"
,
"
error
"
:
"
not_found
"
,
"
message
"
:
"
Cannot find the attachment
"
,
"
message
"
:
"
Cannot find the attachment
"
,
"
reason
"
:
"
attachment does not exists
"
"
reason
"
:
"
Attachment does not exist
"
});
});
}
}
}
else
{
}
else
{
...
@@ -235,7 +235,7 @@ var newLocalStorage = function (spec, my) {
...
@@ -235,7 +235,7 @@ var newLocalStorage = function (spec, my) {
"
statusText
"
:
"
Not Found
"
,
"
statusText
"
:
"
Not Found
"
,
"
error
"
:
"
not_found
"
,
"
error
"
:
"
not_found
"
,
"
message
"
:
"
Cannot find the document
"
,
"
message
"
:
"
Cannot find the document
"
,
"
reason
"
:
"
Document does not exist
s
"
"
reason
"
:
"
Document does not exist
"
});
});
}
}
}
}
...
...
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