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