Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
renderjs
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
Klaus Wölfel
renderjs
Commits
cb939431
Commit
cb939431
authored
Jan 31, 2014
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index_gadget: load content
parent
20834ef4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
examples/fwi/index_list.js
examples/fwi/index_list.js
+9
-8
examples/fwi/officejs.js
examples/fwi/officejs.js
+9
-2
No files found.
examples/fwi/index_list.js
View file @
cb939431
/*jslint indent: 2 */
/*global EventEmitter, RSVP, jIO */
(
function
(
window
,
rJS
,
$
)
{
(
function
(
window
,
rJS
,
$
,
RSVP
)
{
/**
* Web site configurations
*/
var
gk
=
rJS
(
window
);
/* Initialize Page List */
gk
.
declareMethod
(
'
setDocumentList
'
,
function
(
document_list
)
{
gk
.
declareMethod
(
'
setDocumentList
'
,
function
(
document_list
,
editor
,
editor_callback
,
property
,
property_callback
)
{
var
i
,
document
,
index_list_panel
=
$
(
'
#index_list
'
);
...
...
@@ -17,11 +17,12 @@
"
<li><a href=#>
"
+
document
.
title
+
"
</a></li>
"
);
//panel_context.find('a').last().click(
// createLoadNewBlogCallback(
// g, blog_definition.path,
// blog_a_context, io_list[0].path, io_blog_a_context)
// );
index_list_panel
.
find
(
'
a
'
).
last
().
click
(
function
(){
RSVP
.
all
([
editor_callback
.
apply
(
editor
,[
document
.
text_content
]),
property_callback
.
apply
(
property
,
[
document
])
])}
);
}
});
}(
window
,
rJS
,
jQuery
));
\ No newline at end of file
}(
window
,
rJS
,
jQuery
,
RSVP
));
\ No newline at end of file
examples/fwi/officejs.js
View file @
cb939431
...
...
@@ -17,7 +17,7 @@
$
(
editor
.
element
).
trigger
(
'
create
'
);
return
io
.
configureIO
(
jio_config
)
.
then
(
function
()
{
return
io
.
configureDataSourceCallback
(
editor
,
editor
.
getContent
,
property
,
property
.
getContent
,
'
48c3ca06-78b9-2f4c-80db-d5cb2417de45
'
)
;
return
;
})
.
then
(
function
()
{
return
io
.
getIOList
().
fail
(
function
(
error
)
{
...
...
@@ -32,7 +32,14 @@
return
RSVP
.
all
([
editor
.
setContent
(
document_list
[
0
].
doc
.
text_content
),
property
.
setContent
(
document_list
[
0
].
doc
),
index
.
setDocumentList
(
document_list
)
index
.
setDocumentList
(
document_list
,
editor
,
editor
.
setContent
,
property
,
property
.
setContent
),
io
.
configureDataSourceCallback
(
editor
,
editor
.
getContent
,
property
,
property
.
getContent
,
document_list
[
0
].
id
)
]);
});
}
...
...
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