[IMP] future reminders

bzr revid: ddm@openerp.com-20131105152747-5l8fko6qjz17w9qs
This commit is contained in:
ddm
2013-11-05 16:27:47 +01:00
parent 841fca62f8
commit be8ec21441
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -160,6 +160,7 @@ class WebsiteBlog(http.Controller):
return request.website.render("website_blog.index", values)
# TODO: Refactor (used in website_blog.js for archive links)
# => the archive links should be generated server side
@website.route(['/blog/nav'], type='http', auth="public", multilang=True)
def nav(self, **post):
cr, uid, context = request.cr, request.uid, request.context
@@ -8,7 +8,7 @@ $(document).ready(function () {
e.preventDefault();
var $ul = $(this).next("ul");
if (!$ul.find('li').length) {
// TODO: Why POST? A GET would be more appropriate...
// TODO: Why POST? (to pass the domain) A GET would be more appropriate...
// This should be done server side anyway...
$.post('/blog/nav', {'domain': $(this).data("domain")}, function (result) {
var blog_id = +window.location.pathname.split("/").pop();