Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
ConceptXBlock
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ConceptXBlock
Commits
2602b476
Commit
2602b476
authored
Mar 20, 2014
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Page loads with proper information
parent
5cdd9e44
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
xoncept/static/html/xoncept.html
+1
-1
xoncept/static/js/xoncept.js
+9
-3
xoncept/xoncept.py
+1
-1
No files found.
xoncept/static/html/xoncept.html
View file @
2602b476
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<
div
class
=
"lo_drag"
style
=
"border:1px solid #DDDDDD; width:200px; height:55px; display:inline-block; background-color: #FCFCFC; border-radius: 3px; padding:0px"
>
<
div
class
=
"lo_drag"
style
=
"border:1px solid #DDDDDD; width:200px; height:55px; display:inline-block; background-color: #FCFCFC; border-radius: 3px; padding:0px"
>
<
div
style
=
"block;background-color: #F0F0F0; height:20px; padding:3px;"
>
<
div
style
=
"block;background-color: #F0F0F0; height:20px; padding:3px;"
>
<
div
class
=
"obj_title"
>
{{
title
}}
<
/div
>
<
div
class
=
"obj_title"
>
{{
title
}}
<
/div
>
<
div
class
=
"obj_icons"
>
<
a
href
=
"
/wiki/
{{title}}"
><
span
style
=
"display:inline-block;"
class
=
"ui-icon ui-icon-pencil"
><
/span></
a
>
<
span
style
=
"display:inline-block;"
class
=
"ui-icon ui-icon-close lo_close"
><
/span> </
div
>
<
div
class
=
"obj_icons"
>
<
a
href
=
"
SERVER
{{title}}"
><
span
style
=
"display:inline-block;"
class
=
"ui-icon ui-icon-pencil"
><
/span></
a
>
<
span
style
=
"display:inline-block;"
class
=
"ui-icon ui-icon-close lo_close"
><
/span> </
div
>
<
/div
>
<
/div
>
<
div
class
=
"objective_desc"
>
<
div
class
=
"objective_desc"
>
{{{
render
}}}
{{{
render
}}}
...
...
xoncept/static/js/xoncept.js
View file @
2602b476
...
@@ -53,8 +53,7 @@ function dump_state()
...
@@ -53,8 +53,7 @@ function dump_state()
console
.
log
(
state
);
console
.
log
(
state
);
url
=
xblock_runtime
.
handlerUrl
(
xblock_element
,
'update_concept_map'
);
url
=
xblock_runtime
.
handlerUrl
(
xblock_element
,
'update_concept_map'
);
$
.
post
(
url
,
state
,
function
(
data
)
{
$
.
post
(
url
,
state
,
function
(
data
)
{}).
done
(
function
(
data
){
}).
done
(
function
(
data
){
}
).
fail
(
function
(
data
){
}
).
fail
(
function
(
data
){
console
.
log
(
"Could not save"
);
console
.
log
(
"Could not save"
);
console
.
log
(
state
);
console
.
log
(
state
);
...
@@ -79,7 +78,14 @@ function refresh_search(search_string)
...
@@ -79,7 +78,14 @@ function refresh_search(search_string)
function
populate
(
column
,
array
)
{
function
populate
(
column
,
array
)
{
for
(
i
=
0
;
i
<
array
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
array
.
length
;
i
++
)
{
}
var
slug
=
array
[
i
];
url
=
xblock_runtime
.
handlerUrl
(
xblock_element
,
'relay_handler'
)
render
=
"Hello"
;
$
.
post
(
url
,
JSON
.
stringify
({
'suffix'
:
'get_concept/'
+
slug
}),
function
(
render
)
{
item
=
create_item
(
slug
,
render
.
article
);
$
(
"#"
+
column
).
append
(
item
);
});
}
}
}
function
init
()
{
function
init
()
{
...
...
xoncept/xoncept.py
View file @
2602b476
...
@@ -58,7 +58,7 @@ class XonceptXBlock(XBlock):
...
@@ -58,7 +58,7 @@ class XonceptXBlock(XBlock):
#print html.format
#print html.format
cm
=
self
.
concept_map
cm
=
self
.
concept_map
print
"Read"
,
cm
print
"Read"
,
cm
frag
=
Fragment
(
html
.
replace
(
"PLACEHOLDER_FOR_CONCEPT_MAP"
,
cm
))
#)#format(server = self.server, concept_map = cm))
frag
=
Fragment
(
html
.
replace
(
"PLACEHOLDER_FOR_CONCEPT_MAP"
,
cm
)
.
replace
(
"SERVER"
,
self
.
server
)
)
#)#format(server = self.server, concept_map = cm))
frag
.
add_css_url
(
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css"
)
frag
.
add_css_url
(
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css"
)
frag
.
add_css
(
self
.
resource_string
(
"static/css/xoncept.css"
))
frag
.
add_css
(
self
.
resource_string
(
"static/css/xoncept.css"
))
...
...
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