Init js namespace one time
This commit is contained in:
parent
373d9999fc
commit
bc07082d17
3 changed files with 3 additions and 2 deletions
|
@ -10,6 +10,7 @@
|
|||
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
||||
// about supported directives.
|
||||
//
|
||||
//= require ./init
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require turbolinks
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
window.TPS = window.TPS || {};
|
||||
|
||||
$(document).on("click", "body", function () {
|
||||
$(".header-menu").removeClass("open fade-in-down");
|
||||
});
|
||||
|
|
2
app/assets/javascripts/new_design/init.js
Normal file
2
app/assets/javascripts/new_design/init.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
// namespace
|
||||
window.TPS = window.TPS || {};
|
Loading…
Reference in a new issue