Skip to content

Commit

Permalink
Updates to menu to enable delete confirmation by adding cls:delete to…
Browse files Browse the repository at this point in the history
… menu items
  • Loading branch information
cliftonc committed Aug 15, 2011
1 parent a6f6b5a commit c407234
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.json
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion lib/Menu.js
Expand Up @@ -214,7 +214,7 @@ CalipsoMenu.prototype.menuStartTag = function(menu,selected) {
}

CalipsoMenu.prototype.menuLinkTag = function(req,menu,selected) {
return "<a href='" + menu.url + "' title='" + req.t(menu.description) + "' class='" + this.name + "-menu-item" + selected + "'>" + req.t(menu.name) + "</a>";
return "<a href='" + menu.url + "' title='" + req.t(menu.description) + "' class='" + this.name + "-menu-item" + selected + (menu.cls ? " " + menu.cls : "") + "'>" + req.t(menu.name) + "</a>";
}
CalipsoMenu.prototype.menuEndTag = function(menu) {
return "</li>";
Expand Down
1 change: 1 addition & 0 deletions lib/calipso.js
Expand Up @@ -370,6 +370,7 @@ function doResponse(req,res,next) {
}

// Render statuscodes dealt with by themeing engine
// TODO - this is not very clean
if(res.statusCode === 404 || res.statusCode === 500 || res.statusCode === 200) {

calipso.theme.render(req, res, function(err, content) {
Expand Down

0 comments on commit c407234

Please sign in to comment.