Moved entity contents outside navigation.

Previously the entities and navigation are entangled inside a common
DOM structure which limits code reuse. Now they have been moved
into separate structures.
This commit is contained in:
Endi S. Dewata
2011-04-28 19:17:58 -05:00
parent 5eb9f088f2
commit dd89c28654
9 changed files with 98 additions and 125 deletions

View File

@@ -128,7 +128,8 @@ $(function() {
}
return factory({
container: $('#navigation')
container: $('#navigation'),
content: $('#content')
});
}
@@ -153,7 +154,7 @@ $(function() {
function init_on_error(xhr, text_status, error_thrown) {
var container = $('#navigation').empty();
var container = $('#content').empty();
container.append('<p>Error: '+error_thrown.name+'</p>');
container.append('<p>'+error_thrown.title+'</p>');
container.append('<p>'+error_thrown.message+'</p>');