Make WordPress Core

Ticket #17136: 17136.alt.diff

File 17136.alt.diff, 1.1 KB (added by scribu, 14 years ago)

adminpage

  • wp-includes/js/quicktags.dev.js

     
    259259        }
    260260        document.write('<input type="button" id="ed_spell" class="ed_button" onclick="edSpell(edCanvas);" title="' + quicktagsL10n.dictionaryLookup + '" value="' + quicktagsL10n.lookup + '" />');
    261261        document.write('<input type="button" id="ed_close" class="ed_button" onclick="edCloseAllTags();" title="' + quicktagsL10n.closeAllOpenTags + '" value="' + quicktagsL10n.closeTags + '" />');
    262         document.write('<input type="button" id="ed_fullscreen" class="ed_button" onclick="fullscreen.on();" title="' + quicktagsL10n.toggleFullscreen + '" value="' + quicktagsL10n.fullscreen + '" />');
     262        if( 'post-php' == adminpage || 'post-new-php' == adminpage )
     263                document.write('<input type="button" id="ed_fullscreen" class="ed_button" onclick="fullscreen.on();" title="' + quicktagsL10n.toggleFullscreen + '" value="' + quicktagsL10n.fullscreen + '" />');
    263264//      edShowLinks(); // disabled by default
    264265        document.write('</div>');
    265266}