couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowalski <...@git.apache.org>
Subject [GitHub] couchdb-fauxton pull request: Clicking on Copy in API Url style fi...
Date Thu, 13 Nov 2014 10:54:23 GMT
Github user robertkowalski commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/142#discussion_r20283476
  
    --- Diff: app/addons/fauxton/components.js ---
    @@ -183,14 +183,12 @@ function(app, FauxtonAPI, ace, spin, ZeroClipboard) {
           });
     
           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("mouseup", function() {
    +          FauxtonAPI.addNotification({
    +            msg: "The API URL has been copied to the clipboard.",
    +            type: "success",
    +            clear: true
    +          });
    --- End diff --
    
    would just change it according to the styleguide


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message