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
656f1f96
Commit
656f1f96
authored
Jul 23, 2012
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add method doc, rename vars to make them more explicit
parent
3c3d98e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
OfficeJS/component/slickgrid_document_lister.html
OfficeJS/component/slickgrid_document_lister.html
+1
-1
OfficeJS/js/officejs.js
OfficeJS/js/officejs.js
+18
-6
No files found.
OfficeJS/component/slickgrid_document_lister.html
View file @
656f1f96
...
...
@@ -76,7 +76,7 @@
array
[
i
].
app
=
'
text_editor
'
;
}
else
{
array
[
i
].
icon
=
mime
.
icon
;
array
[
i
].
app
=
mime
.
pref
||
mime
.
app
;
array
[
i
].
app
=
mime
.
pref
erred_application
||
mime
.
application
;
}
// dates
// FIXME : we can have 2012/1/1 12:5
...
...
OfficeJS/js/officejs.js
View file @
656f1f96
...
...
@@ -188,15 +188,17 @@
}
};
priv
.
mime_object
=
{
// <pref> if the name of the app set in preferences.
// If pref does not exist it means that the extension is very
// specific, so <app> is called instead of the default editor.
// <preferred_application> if the name of the app set in
// preferences.
// If <preferred_application> does not exist it means that the
// extension is very specific, so <application> is called instead of
// the default editor.
// NOTE : the icon may be set in the app in app_object.
html
:{
pref
:
'
text_editor
'
,
app
:
'
elrte
'
,
html
:{
pref
erred_application
:
'
text_editor
'
,
application
:
'
elrte
'
,
icon
:
'
<i class="icon-font"></i>
'
},
svg
:{
pref
:
'
img_editor
'
,
app
:
'
svg-edit
'
,
svg
:{
pref
erred_application
:
'
img_editor
'
,
application
:
'
svg-edit
'
,
icon
:
'
<i class="icon-pencil"></i>
'
},
jqs
:{
app
:
'
jquery-sheet
'
,
jqs
:{
app
lication
:
'
jquery-sheet
'
,
icon
:
'
<i class="icon-signal"></i>
'
}
};
priv
.
data_object
=
{
...
...
@@ -559,6 +561,11 @@
}
};
/**
* Get current activity.
* @method getActivity
* @return {array} A list of current states for each current activities.
*/
that
.
getActivity
=
function
()
{
var
activity
=
priv
.
jio
.
getJobArray
();
var
lastfailure
=
that
.
getLastFailure
();
...
...
@@ -613,6 +620,11 @@
return
res
;
};
/**
* Returns the last job failure.
* @method getLastFailure
* @return {object} The last failure.
*/
that
.
getLastFailure
=
function
()
{
return
priv
.
lastfailure
;
};
...
...
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