app/assets/javascripts/edifice/framework.js in edifice-0.10.2 vs app/assets/javascripts/edifice/framework.js in edifice-0.10.3
- old
+ new
@@ -117,10 +117,10 @@
$('meta[name=edifice-view_name]').attr('content', page_details.view_name);
$('meta[name=edifice-layout]').attr('content', page_details.layout);
$('body').attr('class', function(i, classes) {
// remove any other classes beginning with c_, v_ or l_
- classes = classes.replace(/[cvl]_.*/g, '')
+ classes = classes.replace(/[cvl]_\w*/g, '')
return classes + ' c_' + ucc(page_details.view_path) +
' v_' + ucc(page_details.view_name) + ' l_' + ucc(page_details.layout);
});
}