Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Merge branch 'fix/bfcache-bug' of dlab/hive
Browse files Browse the repository at this point in the history
from pull-request 1491

* refs/heads/fix/bfcache-bug:
  fix: Workaround for pjax bug result from bfcache

Reviewed-by: null <keesun.baik@navercorp.com>
Reviewed-by: null <eungjun.yi@navercorp.com>
  • Loading branch information
doortts committed Mar 2, 2015
2 parents 91b3cba + b8f5c1e commit cb43871
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/javascripts/service/yobi.issue.List.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@
* @private
*/
function _initPjax(){
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
var isSafari = navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1;
// Workaround for pjax bug result from bfcache
// https://developer.mozilla.org/en-US/docs/Using_Firefox_1.5_caching
if(isFirefox || isSafari){
return;
}
var htPjaxOptions = {
"fragment": "div[pjax-container]",
"timeout" : 3000
Expand Down

0 comments on commit cb43871

Please sign in to comment.