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
d80ad68f
Commit
d80ad68f
authored
Jun 19, 2012
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug: show activity application now works on Chrome
parent
5aebc8b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
19 deletions
+12
-19
OfficeJS/component/workinprogress.html
OfficeJS/component/workinprogress.html
+9
-16
OfficeJS/js/officejs.js
OfficeJS/js/officejs.js
+3
-3
No files found.
OfficeJS/component/workinprogress.html
View file @
d80ad68f
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h2>
Activities
</h2>
<div
id=
"workinprogress"
></div>
<script
type=
"text/javascript"
>
<h2>
Activities
</h2>
<div
id=
"activities"
></div>
<script
type=
"text/javascript"
>
<!--
(
function
()
{
var
id
;
if
(
!
window
.
workinprogress
)
{
if
(
typeof
work_in_progress
!==
'
object
'
)
{
id
=
null
;
w
indow
.
workin
progress
=
{
w
ork_in_
progress
=
{
start
:
function
(){
if
(
id
===
null
)
{
var
update
=
function
()
{
...
...
@@ -20,9 +15,9 @@
str
+=
act
[
i
]
+
'
<br />
'
;
}
if
(
str
===
''
)
{
str
=
'
There is no on going tasks.
'
;
str
=
'
There is no on going tasks.
<br />
'
;
}
document
.
querySelector
(
'
#workinprogress
'
).
innerHTML
=
str
;
document
.
getElementById
(
'
activities
'
).
innerHTML
=
str
;
};
update
();
id
=
setInterval
(
update
,
200
);
...
...
@@ -38,6 +33,4 @@
}
}());
//-->
</script>
</body>
</html>
</script>
OfficeJS/js/officejs.js
View file @
d80ad68f
...
...
@@ -183,15 +183,15 @@
onload
:
function
()
{
var
i
=
null
,
wait
=
function
()
{
// wait for workinprogress initialization end.
if
(
window
.
work
in
progress
)
{
window
.
work
in
progress
.
start
();
if
(
window
.
work
_in_
progress
)
{
window
.
work
_in_
progress
.
start
();
clearInterval
(
i
);
}
}
i
=
setInterval
(
wait
,
100
);
},
onunload
:
function
()
{
window
.
work
in
progress
.
stop
();
window
.
work
_in_
progress
.
stop
();
return
true
;
}
}
...
...
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