[IMP] future reminders
authorddm <ddm@openerp.com>
Tue, 5 Nov 2013 15:27:47 +0000 (16:27 +0100)
committerddm <ddm@openerp.com>
Tue, 5 Nov 2013 15:27:47 +0000 (16:27 +0100)
bzr revid: ddm@openerp.com-20131105152747-5l8fko6qjz17w9qs

addons/website_blog/controllers/main.py
addons/website_blog/static/src/js/website_blog.js

index 320a92a..9895659 100644 (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
index 5d9a831..79ccd08 100644 (file)
@@ -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();