nnmware / devoops

DevOOPS Bootstrap 3 Admin theme
GNU General Public License v3.0
852 stars 416 forks source link

Browser back not working #16

Closed tdamsma closed 10 years ago

tdamsma commented 10 years ago

First of all, thank you for the wonderful devoops theme!

I noticed an issue that the browser back button doesn't work as expected when navigating the devoops dashboard. After pressing back, the url is updated as expected e.g.:http://devoops.me/themes/devoops/#ajax/ui_grid.html ==> http://devoops.me/themes/devoops/#ajax/dashboard.html but the page contents is not updated.

Tested on latest ie, chrome and firefox

devoopsme commented 10 years ago

And what? Please learn Ajax technology and understand why 'back' not work in Ajax.

jblossomweb commented 10 years ago

I have a fix for this. It's not difficult.

On Tuesday, August 12, 2014, devoopsme notifications@github.com wrote:

And what? Please learn Ajax technology and understand why 'back' not work in Ajax.

— Reply to this email directly or view it on GitHub https://github.com/devoopsme/devoops/issues/16#issuecomment-51909425.

Sent from my iDroidberry

tdamsma commented 10 years ago

No need to be so blunt. This is something that can be fixed.

http://en.wikipedia.org/wiki/Single-page_application#Browser_history

jblossomweb commented 10 years ago

Just trying to help. I'll submit a pull request later

On Tuesday, August 12, 2014, Thijs Damsma notifications@github.com wrote:

No need to be so blunt. This is something that can be fixed.

— Reply to this email directly or view it on GitHub https://github.com/devoopsme/devoops/issues/16#issuecomment-51914348.

Sent from my iDroidberry

jwjcmw commented 9 years ago

jblossomweb, any success providing your fix?

g0dzill3r commented 9 years ago

Here's a very simply way to fix it. A more robust solution would keep an actual history in memory and navigate that...

$(window).on ("hashchange", function (e) { var url = window.location.hash.substring (1); LoadAjaxContent (url); });