Skip to content

Commit

Permalink
Fix generic page no resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
cubehouse committed Jan 12, 2013
1 parent 68d3787 commit 842a176
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/frame.js
Expand Up @@ -77,6 +77,10 @@ define(["config", "nav", "lists"], function(_config, nav, lists){
for(var ii=0; ii<pages.length; ii++) {
var m = pages[ii].match.exec(href);
if (m) {
// clear the generic page
$t.page.html("");

// call page function for rendering
pages[ii].func(m);
return;
}
Expand All @@ -90,7 +94,7 @@ define(["config", "nav", "lists"], function(_config, nav, lists){
$t.nav = nav.create(nav_hook);
$t.list = lists.create(null, null);
$t.crumb = $("<ul>").addClass("breadcrumb");
$t.page = $("<div>"); // generic page element
$t.page = $("<div>").addClass("page"); // generic page element

var setup_breadcrumb = function(data) {
// when category has been loaded, we should update the breadcrumb
Expand Down

0 comments on commit 842a176

Please sign in to comment.