Changeset 5784


Ignore:
Timestamp:
12/13/09 11:13:29 (2 years ago)
Author:
PaulHarvey
Message:

Item2476: Rework the solution so it doesn't use ADDTOHEAD (IE8's compat tag isn't useful unless in a specific place in the HEAD).

Location:
branches/Release01x00
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x00/PatternSkin/templates/foswiki.pattern.tmpl

    r5617 r5784  
    2727%TMPL:DEF{"head"}%<head> 
    2828%TMPL:P{"windowtitle"}% 
     29%TMPL:P{context="edit" then="ie8compatibilitymode"}% 
    2930<meta http-equiv="Content-Type" content="text/html; charset=%CHARSET%" /> 
    3031<link rel="icon" href="%FAVICON%" type="image/x-icon" /> 
  • branches/Release01x00/core/templates/edit.tmpl

    r5782 r5784  
    1313 
    1414%{ if an editor plugin sets EDITOR_MESSAGE, then use it }% 
    15 %TMPL:DEF{"textarea"}%%TMPL:P{"forceie8compatibilitymode"}%%IF{"defined 'EDITOR_MESSAGE'" then="<div class='foswikiAlert'>%EDITOR_MESSAGE%</div>"}%<div class="foswikiEditTextarea"><textarea class="foswikiTextarea foswikiEditboxStyleProportional foswikiWysiwygEdit" id="topic" name="text" rows="%EDITBOXHEIGHT%" cols="%EDITBOXWIDTH%" style='%EDITBOXSTYLE%'>%TEXT%</textarea></div><!--/foswikiEditTextarea-->%TMPL:END% 
     15%TMPL:DEF{"textarea"}%%IF{"defined 'EDITOR_MESSAGE'" then="<div class='foswikiAlert'>%EDITOR_MESSAGE%</div>"}%<div class="foswikiEditTextarea"><textarea class="foswikiTextarea foswikiEditboxStyleProportional foswikiWysiwygEdit" id="topic" name="text" rows="%EDITBOXHEIGHT%" cols="%EDITBOXWIDTH%" style='%EDITBOXSTYLE%'>%TEXT%</textarea></div><!--/foswikiEditTextarea-->%TMPL:END% 
    1616 
    17 %{ Item2476: Put IE8 into compatibility mode to work around slow, erratic textarea }% 
    18 %TMPL:DEF{"forceie8compatibilitymode"}%%ADDTOHEAD{"EDIT_FORCE_IE8_COMPATIBILITYMODE" text="%IF{"$EDIT_FORCE_IE8_COMPATIBILITYMODE='on'" then="<!--[if IE 8]><meta http-equiv='X-UA-Compatible' content='IE=EmulateIE7'/><![endif]-->"}%"}%%TMPL:END% 
    1917 
    2018 
  • branches/Release01x00/core/templates/foswiki.tmpl

    r5685 r5784  
    2525%TMPL:DEF{"windowtitle"}%<title>%TMPL:P{"titleaction"}% <nop>%BASETOPIC%%TMPL:P{"titlesep"}%%BASEWEB%%TMPL:P{"titlesep"}%<nop>%WIKITOOLNAME%</title>%TMPL:END% 
    2626 
     27%{ Item2476: Put IE8 into compatibility mode to work around slow, erratic textarea }% 
     28%TMPL:DEF{"ie8compatibilitymode"}%%IF{"$EDIT_FORCE_IE8_COMPATIBILITYMODE='on'" then="<meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\"/>"}%%TMPL:END% 
     29 
    2730%TMPL:DEF{"head"}%<head> 
    2831        %TMPL:P{"windowtitle"}% 
     32        %TMPL:P{context="edit" then="ie8compatibilitymode"}% 
    2933        <meta http-equiv="Content-Type" content="text/html; charset=%CHARSET%" /> <meta name="robots" content="noindex" /> %HTTP_EQUIV_ON_VIEW% 
    3034    <meta name="scripturl" content="%SCRIPTURL%" /> 
Note: See TracChangeset for help on using the changeset viewer.