From 6d4b5f70c07dadbc284b0c4b82fd2efe02e14968 Mon Sep 17 00:00:00 2001 From: bsag Date: Wed, 22 Mar 2006 19:13:41 +0000 Subject: [PATCH] Committed Luke's spinner patch: ajax actions show a spinner while they are working, next to the date at the top of the page. One issue is that adding successive actions without refreshing on the home page only triggers the spinner the first time, but deleting actions on the same page without refreshing triggers it each time. I don't have a clue why. Fixes #192. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@208 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/layouts/standard.rhtml | 3 ++- tracks/public/images/spinner.gif | Bin 0 -> 2306 bytes tracks/public/javascripts/application.js | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tracks/public/images/spinner.gif create mode 100644 tracks/public/javascripts/application.js diff --git a/tracks/app/views/layouts/standard.rhtml b/tracks/app/views/layouts/standard.rhtml index 52169707..002f4976 100644 --- a/tracks/app/views/layouts/standard.rhtml +++ b/tracks/app/views/layouts/standard.rhtml @@ -23,7 +23,8 @@ <% if @count %> <%= @count %> <% end %> - <%= Time.now.strftime("%A, %d %B %Y") %> + <%= Time.now.strftime("%A, %d %B %Y") %> <%= image_tag("spinner.gif", :size => "16X16", :border => 0, :id => 'busy', :style => 'display:none' ) %> +