From 4318b265deb8cad8d92f37e9d195ba6545db0340 Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Tue, 21 Feb 2012 08:57:50 -0800 Subject: [PATCH] clean up application.js --- app/assets/javascripts/application.js.erb | 25 ++--------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/app/assets/javascripts/application.js.erb b/app/assets/javascripts/application.js.erb index 8292ef2..f41e648 100644 --- a/app/assets/javascripts/application.js.erb +++ b/app/assets/javascripts/application.js.erb @@ -5,6 +5,7 @@ //= require_self //= require_tree . +// Use TinyMCE editor for textareas $(document).ready(function(){ $('textarea').tinymce({ content_css: '<%= stylesheet_path("application.css") %>', @@ -16,27 +17,5 @@ $(document).ready(function(){ theme_advanced_toolbar_align: 'left', valid_elements: 'a[href|target=_blank],strong/b,em/i,p,br', plugins: 'inlinepopups' - }); - -/* - var original = $('#projects').offset(); - - if ( $('#projects').length ) { - $(document).scroll(function(){ - var scroll = $(window).scrollTop(), - nav = $('#projects'), - top = nav.offset().top; - - if ( scroll > original.top - 15 ) { - nav.addClass('fixed'); - nav.css('left', original.left); - } - - else if ( scroll = original.top ) { - nav.removeClass('fixed'); - nav.css('left', 0); - } - }); - } -*/ + }); }); \ No newline at end of file