From 87e8cf3b5860509c0344cb34ee939ae73ea99c00 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Sat, 29 Sep 2012 14:19:48 -0700 Subject: [PATCH] Require index-only JS in index.js --- app/assets/javascripts/application.js | 3 --- app/assets/javascripts/index.js | 4 ++++ app/assets/javascripts/{ => index}/browse.js | 0 app/assets/javascripts/{ => index}/export.js | 0 app/assets/javascripts/{ => index}/key.js | 0 5 files changed, 4 insertions(+), 3 deletions(-) rename app/assets/javascripts/{ => index}/browse.js (100%) rename app/assets/javascripts/{ => index}/export.js (100%) rename app/assets/javascripts/{ => index}/key.js (100%) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index e345f3074..913540730 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -9,10 +9,7 @@ //= require globals //= require params //= require piwik -//= require browse -//= require export //= require map -//= require key //= require menu //= require sidebar //= require richtext diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 7d47057b8..5f057b234 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -1,3 +1,7 @@ +//= require index/browse +//= require index/export +//= require index/key + $(document).ready(function () { var marker; var params = OSM.mapParams(); diff --git a/app/assets/javascripts/browse.js b/app/assets/javascripts/index/browse.js similarity index 100% rename from app/assets/javascripts/browse.js rename to app/assets/javascripts/index/browse.js diff --git a/app/assets/javascripts/export.js b/app/assets/javascripts/index/export.js similarity index 100% rename from app/assets/javascripts/export.js rename to app/assets/javascripts/index/export.js diff --git a/app/assets/javascripts/key.js b/app/assets/javascripts/index/key.js similarity index 100% rename from app/assets/javascripts/key.js rename to app/assets/javascripts/index/key.js -- 2.39.5