Commit 2602b476 by Piotr Mitros

Page loads with proper information

parent 5cdd9e44
......@@ -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 style="block;background-color: #F0F0F0; height:20px; padding:3px;">
<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 class="objective_desc">
{{{render}}}
......
......@@ -53,8 +53,7 @@ function dump_state()
console.log(state);
url = xblock_runtime.handlerUrl(xblock_element, 'update_concept_map');
$.post(url, state, function(data) {
}).done( function(data){
$.post(url, state, function(data) {}).done( function(data){
} ).fail( function(data){
console.log("Could not save");
console.log(state);
......@@ -79,7 +78,14 @@ function refresh_search(search_string)
function populate(column, array) {
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() {
......
......@@ -58,7 +58,7 @@ class XonceptXBlock(XBlock):
#print html.format
cm = self.concept_map
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(self.resource_string("static/css/xoncept.css"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment