Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updates to menu to enable delete confirmation by adding cls:delete to…

… menu items
  • Loading branch information...
commit c407234deae1eb87cf1eae76521c7a5075e94c27 1 parent a6f6b5a
@cliftonc authored
Showing with 3 additions and 1 deletion.
  1. +1 −0  config.json
  2. +1 −1  lib/Menu.js
  3. +1 −0  lib/calipso.js
View
1  config.json
@@ -0,0 +1 @@
+{}
View
2  lib/Menu.js
@@ -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>";
View
1  lib/calipso.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.