From 5e5dea85a8ec1721638e44a47222981b7da39dda Mon Sep 17 00:00:00 2001 From: maxwell Date: Wed, 23 Jun 2010 10:25:49 -0700 Subject: [PATCH] pushing small js fixes --- public/javascripts/view.js | 41 +++++++++++++++++++++++--------------- spec/spec_helper.rb | 2 +- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/public/javascripts/view.js b/public/javascripts/view.js index 3ddcca4a5..f657d5bbe 100644 --- a/public/javascripts/view.js +++ b/public/javascripts/view.js @@ -1,19 +1,28 @@ -$(document).ready(function(){ - - $('a').hover(function(){ - $(this).fadeTo(60, 0.5); - }, function(){ - $(this).fadeTo(80, 1); - }); +$(document).ready(function(){ + $('a').hover(function(){ + $(this).fadeTo(60, 0.5); + }, function(){ + $(this).fadeTo(80, 1); + }); - $('ul.nav li').hover(function(){ - $(this).fadeTo(60, 0.5); - }, function(){ - $(this).fadeTo(80, 1); - }); + $('ul.nav li').hover(function(){ + $(this).fadeTo(60, 0.5); + }, function(){ + $(this).fadeTo(80, 1); + }); -$('#status_message_message').click(function() { - $(this).val("") -}); + $('#status_message_message').click(function() { + $(this).val("") + }); + + + $(".button").click(function() { + $('button[type=submit] .default').click(function() { + $('#status_message_message').delay(2000).val(""); + }) + }); + + + -}); \ No newline at end of file +});//end document ready \ No newline at end of file diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4c24f0752..939873883 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -27,7 +27,7 @@ Rspec.configure do |config| config.before(:each) do DatabaseCleaner.start - WebSocket.stub!(:update_clients) + #WebSocket.stub!(:update_clients) end config.after(:each) do