2ddf810 Adjust hub_edit_post behavior for request made from javascript

Authored and Committed by pingou 8 years ago
1 file changed. 21 lines added. 9 lines removed.
    Adjust hub_edit_post behavior for request made from javascript
    
    If a POST request is made from javascript, we do not want to flash
    messages, as they will appear the next time someone load a page,
    potentially a completely different page.
    So, we will assume request made from JS will declare themselves as such
    using js=true and for them we will make things easier: work (200 OK) or
    does not work (400), no message flashed.
    
        
file modified
+21 -9