[Notice] Announcing the End of Demo Server [Read me]

fix: Workaround for pjax bug result from bfcache
This patch prevents using pjax when a user use firefox or safari see more https://developer.mozilla.org/en-US/docs/Using_Firefox_1.5_caching
@b8f5c1e75c0814ee240f388ee11fd4290ee3d65b
--- public/javascripts/service/yobi.issue.List.js
+++ public/javascripts/service/yobi.issue.List.js
... | ... | @@ -193,6 +193,13 @@ |
193 | 193 |
* @private |
194 | 194 |
*/ |
195 | 195 |
function _initPjax(){ |
196 |
+ var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; |
|
197 |
+ var isSafari = navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1; |
|
198 |
+ // Workaround for pjax bug result from bfcache |
|
199 |
+ // https://developer.mozilla.org/en-US/docs/Using_Firefox_1.5_caching |
|
200 |
+ if(isFirefox || isSafari){ |
|
201 |
+ return; |
|
202 |
+ } |
|
196 | 203 |
var htPjaxOptions = { |
197 | 204 |
"fragment": "div[pjax-container]", |
198 | 205 |
"timeout" : 3000 |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?