Skip to content

Commit

Permalink
adding javascript FTW
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Sep 30, 2011
1 parent 3bf9854 commit ae14a14
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions javascripts/theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
document.observe("dom:loaded", function() {

var notices = $$('.flash');
var pageTitle = $('content').down('h2');

notices.each(function(notice){
pageTitle.insert({ after: notice });
pageTitle.show();
});

});

0 comments on commit ae14a14

Please sign in to comment.