whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [3/5] Commit 519b5a8: switch from wait clock to busy cursor
Date Wed, 06 Jan 2016 20:17:44 GMT
Commit 519b5a8feb64fbb91646deb7a7037100d901242c:
    switch from wait clock to busy cursor


Branch: refs/heads/secmail
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/secmail/public/rotatingclock-slow2.gif                   |  
www/secmail/public/secmail.css                               | ++++ 
www/secmail/views/parts.js.rb                                | ++++++++ --
------------------------------------------------------------
14 changes: 12 additions, 2 deletions.
------------------------------------------------------------


diff --git a/www/secmail/public/rotatingclock-slow2.gif b/www/secmail/public/rotatingclock-slow2.gif
deleted file mode 100644
index 6911e37..0000000
Binary files a/www/secmail/public/rotatingclock-slow2.gif and /dev/null differ
diff --git a/www/secmail/public/secmail.css b/www/secmail/public/secmail.css
index aa2d719..3470fc1 100644
--- a/www/secmail/public/secmail.css
+++ b/www/secmail/public/secmail.css
@@ -98,6 +98,10 @@ ul.contextMenu {
   cursor: pointer;
 }
 
+.busy, .busy input, .busy .contextMenu li:hover {
+  cursor: wait;
+}
+
 .contextMenu a {
   color: #333;
   text-decoration: none;
diff --git a/www/secmail/views/parts.js.rb b/www/secmail/views/parts.js.rb
index 86eac31..416a507 100644
--- a/www/secmail/views/parts.js.rb
+++ b/www/secmail/views/parts.js.rb
@@ -108,8 +108,6 @@ def render
         React.createElement @form, headers: @@headers, submit: self.submit
       end
     end
-
-    _img.spinner src: '../../rotatingclock-slow2.gif' if @busy
   end
 
   ########################################################################
@@ -136,6 +134,14 @@ def componentDidMount()
     self.hideMenu()
   end
 
+  def componentDidUpdate()
+    if @busy
+      document.body.classList.add 'busy'
+    else
+      document.body.classList.remove 'busy'
+    end
+  end
+
   ########################################################################
   #                             Context menu                             #
   ########################################################################

Mime
View raw message