couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benk...@apache.org
Subject fauxton commit: updated refs/heads/master to 6d93fe4
Date Fri, 14 Nov 2014 18:09:46 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 4a944816a -> 6d93fe479


Clicking on Copy in API Url style fix

This fixes a bug where when you click the Copy button in the API Url
tray and the input field goes white and the text is unreadable.

Closes COUCHDB-2441


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/6d93fe47
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/6d93fe47
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/6d93fe47

Branch: refs/heads/master
Commit: 6d93fe479915f90d249e223c20b16098aade9fe9
Parents: 4a94481
Author: Benjamin Keen <ben.keen@gmail.com>
Authored: Fri Nov 7 15:40:28 2014 -0800
Committer: Benjamin Keen <ben.keen@gmail.com>
Committed: Fri Nov 14 10:09:11 2014 -0800

----------------------------------------------------------------------
 app/addons/fauxton/components.js | 18 ++++++++----------
 assets/less/fauxton.less         |  9 ++-------
 2 files changed, 10 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/6d93fe47/app/addons/fauxton/components.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/components.js b/app/addons/fauxton/components.js
index 6621604..4e2c00b 100644
--- a/app/addons/fauxton/components.js
+++ b/app/addons/fauxton/components.js
@@ -295,20 +295,18 @@ function(app, FauxtonAPI, ace, spin, ZeroClipboard) {
       this.render();
     },
 
-    afterRender: function() {
+    afterRender: function () {
       var client = new Components.Clipboard({
         $el: this.$('.copy-url')
       });
 
-      client.on("load", function(e){
-        var $apiInput = $('#api-navbar input');
-        var copyURLTimer;
-        client.on("mouseup", function(e){
-          $apiInput.css("background-color","#aaa");
-          window.clearTimeout(copyURLTimer);
-          copyURLTimer = setInterval(function () {
-            $apiInput.css("background-color","#fff");
-          }, 200);
+      client.on('load', function () {
+        client.on('mouseup', function () {
+          FauxtonAPI.addNotification({
+            msg: 'The API URL has been copied to the clipboard.',
+            type: 'success',
+            clear: true
+          });
         });
       });
     }

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/6d93fe47/assets/less/fauxton.less
----------------------------------------------------------------------
diff --git a/assets/less/fauxton.less b/assets/less/fauxton.less
index ff22dc6..3317e28 100644
--- a/assets/less/fauxton.less
+++ b/assets/less/fauxton.less
@@ -365,10 +365,7 @@ header .header-icon {
   padding: 16px 20px;
   .input-append.input-prepend {
     margin-bottom: 0px;
-    .copying {
-      background-color: #999;
-      transition: background-color 5ms linear;
-    }
+
     .input-xxlarge {
       .border-radius(5px 0 0 5px);
 
@@ -388,9 +385,7 @@ header .header-icon {
     .copy-url {
       .border-radius(0 5px 5px 0);
     }
-    .copying {
-      background-color: #999;
-    }
+
     .zeroclipboard-is-hover {
       background-color: #cbcbcb;
     }


Mime
View raw message