</div>
<div class=lecture id=PROTO_lecture>
<div class=name>
- <a href="javascript:goPage('/note/___id__')">__name__</a><br>
+ <a href="javascript:goPage('/lecture/___id__')">__name__</a><br>
Created: __date__<br>
</div>
</div>
<h1>Notepads </h1>
<div class=note id=PROTO_note>
<div class=name>
- <a href="">__name__</a>
+ <a href="/note/___id__">__name__</a>
</div>
</div>
</div>
$.get("/lecture/"+lectureId, {}, function(response) {
- var notes = []
if(typeof response == 'object') {
- notes = course.notes
+
+ var course = response.course
+ //if(course)
+ // ProtoDiv.replicate("PROTO_lectures_head", [course])
+
+ var instructor = response.instructor
+ //if(instructor)
+ // ProtoDiv.replicate("PROTO_lectures_instructor", [instructor])
+
+ var lecture = response.lecture
+ //if(lecture)
+ // ProtoDiv.replicate("PROTO_lecture", lectures);
+
+ var notes = response.notes
+ if(notes)
+ ProtoDiv.replicate("PROTO_note", notes);
+
}
- ProtoDiv.replicate("PROTO_note", lectures);
+
cb("notes")
});
}