From eaad981def90fe2a472f4b3e66fd23c4f52d7ef9 Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Mon, 10 Jun 2013 12:55:28 -0400 Subject: [PATCH] Remove font size menu. This, in effect, reverts ff0c27ccb177ddc69a31bf8997d31e7cfb5b78b5. The rationale here is that actually we look pretty good with the browser's own zoom/font-size-resize in Chrome and Firefox, and it's better to let the browser handle these kinds of changes than us. (imported from commit 5949b57bdaf20d4fdf2bbd7ed89d1285a8b8e453) --- templates/zephyr/navbar.html | 8 -------- zephyr/static/js/ui.js | 35 ----------------------------------- 2 files changed, 43 deletions(-) diff --git a/templates/zephyr/navbar.html b/templates/zephyr/navbar.html index 33f8eca0c3..78ca7a6d8d 100644 --- a/templates/zephyr/navbar.html +++ b/templates/zephyr/navbar.html @@ -66,14 +66,6 @@ Message formatting -
  • ') - .text(name) - .css(style) - .click(function (e) { - $('body').css(style); - scroll_to_selected(); - e.preventDefault(); - })); - - $('#font_size_menu').append(entry); -} - -$(function () { - // Create font size menu entries - add_font_size(-1, 'Small' ); - add_font_size( 0, 'Medium' ); - add_font_size( 1, 'Large' ); - add_font_size( 3, 'Larger' ); - add_font_size( 5, 'Largest'); - - // The entry that produces the submenu has a href - // for style, but we don't want to navigate on click. - $('#font_size_menu_link').click(function (e) { - e.preventDefault(); - }); -}); - - // Save the compose content cursor position and restore when we // shift-tab back in (see hotkey.js). var saved_compose_cursor = 0;