Merge pull request #2654 from torrancew/fix_firefox_3x
Addresses deficiencies with Firefox 3.x (and hopefully some other older browsers). Should fix #2606 [ci skip]
This commit is contained in:
commit
52df1f3e84
2 changed files with 11 additions and 4 deletions
|
|
@ -65,6 +65,17 @@
|
|||
- if rtl?
|
||||
= include_stylesheets :rtl, :media => 'all'
|
||||
|
||||
:javascript
|
||||
// Support for older browsers
|
||||
if(Array.isArray === undefined) {
|
||||
Array.isArray = function (arg) {
|
||||
return Object.prototype.toString.call(arg) == '[object Array]';
|
||||
};
|
||||
}
|
||||
if ((window.history) && (window.history.pushState === undefined)) {
|
||||
window.history.pushState = function() { };
|
||||
}
|
||||
|
||||
= csrf_meta_tag
|
||||
<!--[if IE]>
|
||||
= javascript_include_tag "/javascripts/ie.js"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
document.createElement('header');
|
||||
document.createElement('footer');
|
||||
|
||||
// IE 9 work-around for vendor/backbone.js
|
||||
if ((window.history) && (document.documentMode == 9)) {
|
||||
window.history.pushState = function() { };
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue