
pull-request: addtional patch related to commit b8f5c1e
@9e118fce050726dd9ce1105034ff28d78f708703
--- app/views/git/list.scala.html
+++ app/views/git/list.scala.html
... | ... | @@ -33,6 +33,14 @@ |
33 | 33 |
|
34 | 34 |
<script type="text/javascript"> |
35 | 35 |
$(document).ready(function(){ |
36 |
+ var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; |
|
37 |
+ var isSafari = navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1; |
|
38 |
+ // Workaround for pjax bug result from bfcache |
|
39 |
+ // https://developer.mozilla.org/en-US/docs/Using_Firefox_1.5_caching |
|
40 |
+ if(isFirefox || isSafari){ |
|
41 |
+ return; |
|
42 |
+ } |
|
43 |
+ |
|
36 | 44 |
var htPjaxOptions = { |
37 | 45 |
"fragment": "div[pjax-container]", |
38 | 46 |
"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?