News for hackers. Stuff that matters.
Re:Show HN: File Permissions Ninja by AnkhMorporkian on Friday October 31, 2014 @11:50AM (#8539394)
I love it, but it would be nice if it didn't break the back button every time you click on a checkbox.
Re:Show HN: File Permissions Ninja by arnel on Friday October 31, 2014 @12:10PM (#8539518)
It's the permalink.

Every time you click on a checkbox the permalink is change according to the permission, so its easier to copy the permalink. Therefore when you click the back button you're going to the previous state.

Do you think its not a good behavior?

Re:Show HN: File Permissions Ninja by bvanslyke on Friday October 31, 2014 @12:59PM (#8539782)
When I click "back" I expect to return to a previous webpage. I don't expect to uncheck a checkbox.

edit: Actually it doesn't uncheck, it just changes the permalink as if I unchecked. Definitely not the expected behavior. (this is on FF31 Linux)

Re:Show HN: File Permissions Ninja by ajanuary on Friday October 31, 2014 @12:22PM (#8539583)
You can use replaceState to modify the url without adding a new history entries.
Re:Show HN: File Permissions Ninja by arnel on Friday October 31, 2014 @01:45PM (#8540052)
Thanks for the comments.

I fixed it - and now its work with replaceState.

It's won't update until you load it without cache: ctrl+shift+R