FIX: Load order of Javascript files

This commit is contained in:
Robin Ward 2014-08-22 19:27:20 -04:00
parent db376d16d3
commit f67f34d889
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ module PrettyText
"app/assets/javascripts/discourse/lib/markdown.js"
)
Dir["#{Rails.root}/app/assets/javascripts/discourse/dialects/**.js"].each do |dialect|
Dir["#{Rails.root}/app/assets/javascripts/discourse/dialects/**.js"].sort.each do |dialect|
unless dialect =~ /\/dialect\.js$/
ctx.load(dialect)
end