Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
clean up application.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Wright committed Feb 21, 2012
1 parent 572f403 commit 4318b26
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions app/assets/javascripts/application.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 5,7 @@
//= require_self
//= require_tree .

// Use TinyMCE editor for textareas
$(document).ready(function(){
$('textarea').tinymce({
content_css: '<%= stylesheet_path("application.css") %>',
Expand All @@ -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);
}
});
}
*/
});
});

0 comments on commit 4318b26

Please sign in to comment.