yiisoft / jquery-pjax

pushState + ajax = pjax
http://pjax.herokuapp.com
MIT License
144 stars 40 forks source link

add "history" option + bug fix #8

Closed macklay closed 10 years ago

macklay commented 10 years ago

add option for forced disable all window.history.<.*> calls. Needed for using third part hisory lib(Backbone.Router or others)

tonydspaniard commented 10 years ago

@qiangxue Looks good to me.

qiangxue commented 10 years ago

Thanks!

tonydspaniard commented 10 years ago

@pjacquemin nope... The included option history is set to true by default

pjacquemin commented 10 years ago

Yes, I know that history is set to true by default If I remove the line 389 of this commit the $.pjax.reload(); method works again. Seems to be the option history is not set to true in locationReplace(url) when using $.pjax.reload();

My code is working with an other Yii2 project (beta stability) but not with a project with dev stability. Maybe I have missing something but dont know what ... I have replaced $.pjax.reload(); by window.location.reload(); for the moment on my project but we are going to move to the beta stability to get $.pjax.reload(); working again.

qiangxue commented 10 years ago

@pjacquemin Could you create a new issue about this? This needs further investigation.