Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
793e25a7
Commit
793e25a7
authored
Jul 04, 2012
by
Lingnan Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if the name of the new doc is the same as the old one .it will replace the old doc
parent
bcdcc215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
OfficeJS-Mobile/js/officejs-mobile.js
OfficeJS-Mobile/js/officejs-mobile.js
+14
-5
No files found.
OfficeJS-Mobile/js/officejs-mobile.js
View file @
793e25a7
...
...
@@ -513,11 +513,20 @@
that.getList();
}
});*/
var
newlist
=
new
Object
();
//new object
newlist
.
title
=
basename
;
//object title and text
newlist
.
text
=
content
;
newlist
.
number
=
that
.
list
.
length
;
that
.
list
.
push
(
newlist
);
//save in the list
var
newone
=
true
;
for
(
var
i
=
0
;
i
<
that
.
list
.
length
;
i
++
){
if
(
basename
==
that
.
list
[
i
].
title
){
newone
=
false
;
that
.
list
[
i
].
text
=
content
;
}
}
if
(
newone
){
var
newlist
=
new
Object
();
//new object
newlist
.
title
=
basename
;
//object title and text
newlist
.
text
=
content
;
newlist
.
number
=
that
.
list
.
length
;
that
.
list
.
push
(
newlist
);
//save in the list
}
};
/**
...
...
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