Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Milan
diaspora
Commits
8f0c74f7
Unverified
Commit
8f0c74f7
authored
Aug 19, 2017
by
Benjamin Neff
Committed by
Steffen van Bergerem
Aug 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old_browser_js_support
This was needed for IE8 and IE9
parent
b8149a1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
17 deletions
+0
-17
app/helpers/layout_helper.rb
app/helpers/layout_helper.rb
+0
-15
app/views/layouts/application.html.haml
app/views/layouts/application.html.haml
+0
-2
No files found.
app/helpers/layout_helper.rb
View file @
8f0c74f7
...
...
@@ -50,21 +50,6 @@ module LayoutHelper
stylesheet_link_tag
"
#{
current_color_theme
}
/
#{
view
}
"
,
media:
"all"
end
def
old_browser_js_support
nonced_javascript_tag
do
<<-
JS
.
html_safe
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() { };
}
JS
end
end
def
flash_messages
flash
.
map
do
|
name
,
msg
|
klass
=
flash_class
name
...
...
app/views/layouts/application.html.haml
View file @
8f0c74f7
...
...
@@ -8,8 +8,6 @@
%meta
{
name:
"viewport"
,
content:
"width=device-width, initial-scale=1"
}
/
-
content_for
:javascript
do
=
old_browser_js_support
=
javascript_include_tag
:main
,
:templates
=
load_javascript_locales
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment