amazing the amount of damage a missing .js extension can cause

This commit is contained in:
Sam Saffron 2013-02-20 17:17:05 +11:00
parent 15c5f5b840
commit a02414410f
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@
// TODO: automate this to grab from the manifest, Rails voodoo should be able to get it
var map = {
'defer/html-sanitizer-bundle': <%= asset_path('defer/html-sanitizer-bundle.js').inspect.html_safe %>
};
var assetPath = function(asset){

View file

@ -30,7 +30,7 @@ module Discourse
config.assets.paths += %W(#{config.root}/config/locales)
config.assets.precompile += [
'admin.js', 'admin.css', 'shiny/shiny.css', 'preload_store.js', 'jquery.js' #, 'defer/html-sanitizer-bundle.js'
'admin.js', 'admin.css', 'shiny/shiny.css', 'preload_store.js', 'jquery.js', 'defer/html-sanitizer-bundle.js'
]
# Activate observers that should always be running.