Omit a (seemingly superfluous)
javascript hack which causes
Gecko-based browsers to request
   /my_wiki/s5/null
when they load an s5 slideshow.

Also a stylistic cleanup in
the wiki_controller.
This commit is contained in:
Jacques Distler 2009-12-07 15:27:40 -06:00
parent 171c12d2c1
commit 2c5c6dc78a
2 changed files with 2 additions and 3 deletions

View file

@ -358,7 +358,7 @@ class WikiController < ApplicationController
end end
def tex def tex
if @web.markup == :markdownMML or @web.markup == :markdownPNG or @web.markup == :markdown if [:markdownMML, :markdownPNG, :markdown].include?(@web.markup)
@tex_content = Maruku.new(@page.content).to_latex @tex_content = Maruku.new(@page.content).to_latex
else else
@tex_content = 'TeX export only supported with the Markdown text filters.' @tex_content = 'TeX export only supported with the Markdown text filters.'
@ -366,7 +366,7 @@ class WikiController < ApplicationController
end end
def s5 def s5
if @web.markup == :markdownMML || @web.markup == :markdownPNG || @web.markup == :markdown if [:markdownMML, :markdownPNG, :markdown].include?(@web.markup)
my_rendered = PageRenderer.new(@page.revisions.last) my_rendered = PageRenderer.new(@page.revisions.last)
@s5_content = my_rendered.display_s5 @s5_content = my_rendered.display_s5
@s5_theme = my_rendered.s5_theme @s5_theme = my_rendered.s5_theme

View file

@ -535,7 +535,6 @@ function notOperaFix() {
slides.setAttribute('media','screen'); slides.setAttribute('media','screen');
outline.disabled = true; outline.disabled = true;
if (isGe) { if (isGe) {
slides.setAttribute('href','null'); // Gecko fix
slides.setAttribute('href',slideCSS); // Gecko fix slides.setAttribute('href',slideCSS); // Gecko fix
} }
if (isIE && document.styleSheets && document.styleSheets[0]) { if (isIE && document.styleSheets && document.styleSheets[0]) {