Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki

This commit is contained in:
Jacques Distler 2011-06-01 14:36:53 -05:00
commit 1f98b7dcf9
71 changed files with 1075 additions and 162 deletions

View file

@ -9,7 +9,7 @@ class WebSweeper < ActionController::Caching::Sweeper
def after_save(record)
if record.is_a?(Web)
web = record
web.pages.each { |page| expire_cached_page(web, page.name) }
web.pages.find_each { |page| expire_cached_page(web, page.name) }
expire_cached_summary_pages(web)
elsif record.is_a?(WikiFile)
record.web.pages_that_link_to_file(record.file_name).each do |page|

View file

@ -39,7 +39,7 @@
<script type="text/javascript">
if (!(Prototype.Browser.Gecko || navigator.userAgent.match(/MathPlayer/))) {
var s = document.createElement('script');
s.src = "<%= compute_public_path('MathJax.js', 'MathJax').split('?')[0] %>";
s.src = "<%= compute_public_path('MathJax.js', 'MathJax').split('?')[0] %>?config=instiki";
document.querySelector('head').appendChild(s);
};
</script>

View file

@ -25,7 +25,7 @@
<script type="text/javascript">
if (!(Prototype.Browser.Gecko || navigator.userAgent.match(/MathPlayer/))) {
var s = document.createElement('script');
s.src = "<%= compute_public_path('MathJax.js', 'MathJax').split('?')[0] %>";
s.src = "<%= compute_public_path('MathJax.js', 'MathJax').split('?')[0] %>?config=instiki";
document.querySelector('head').appendChild(s);
};
</script>