You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by benkeen <gi...@git.apache.org> on 2014/10/12 03:17:20 UTC

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

GitHub user benkeen opened a pull request:

    https://github.com/apache/couchdb-fauxton/pull/92

    2370-small-style-fixes

    This PR contains fixes for a few minor CSS/style/text problems described here: 
    https://issues.apache.org/jira/browse/COUCHDB-2370
    
    Closes COUCHDB-2370

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/benkeen/couchdb-fauxton 2370-small-style-fixes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-fauxton/pull/92.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #92
    
----
commit fa2cbb8bdb557b025875b9cb2d79ce0e7ceaa3a7
Author: Benjamin Keen <be...@gmail.com>
Date:   2014-10-12T01:13:22Z

    2370-small-style-fixes

----


---
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.
---

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/92#discussion_r18779264
  
    --- Diff: app/addons/config/views.js ---
    @@ -166,6 +166,12 @@ function(app, FauxtonAPI, Config, Components) {
           this.sourceArray = _.map(this.collection.toJSON(), function (item, key) {
             return item.section;
           });
    +
    +      // focus on the first field when it's shown
    +      var self = this;
    +      this.$el.on('shown', function () {
    +        self.$('form :input:enabled:visible:first').focus();
    --- End diff --
    
    Ooh, very nice! Will that trigger every time the modal opens? 


---
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.
---

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/92#issuecomment-59977049
  
    awesome, really nice!


---
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.
---

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/92#discussion_r18779291
  
    --- Diff: app/addons/config/templates/modal.html ---
    @@ -19,14 +19,13 @@
     <div class="modal-body">
       <div class="js-form-error-config"></div>
       <form id="js-add-section-form" class="form well">
    -    <label>Section</label>
    -    <input type="text" name="section" placeholder="Section" autocomplete="off">
    -    <input type="text" name="name" placeholder="Name">
    +    <input type="text" name="section" placeholder="Section" autocomplete="off" />
    +    <input type="text" name="name" placeholder="Name" />
         <br/>
    -    <input type="text" name="value" placeholder="Value">
    +    <input type="text" name="value" placeholder="Value" />
    --- End diff --
    
    Good to know, too. Thanks!


---
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.
---

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen closed the pull request at:

    https://github.com/apache/couchdb-fauxton/pull/92


---
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.
---

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/92#issuecomment-59979736
  
    Merged. Closing.


---
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.
---

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

Posted by benkeen <gi...@git.apache.org>.
Github user benkeen commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/92#issuecomment-58922218
  
    Hey @robertkowalski - those fixes are added and squashed. Thanks!


---
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.
---

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/92#issuecomment-59983604
  
    merged as 0c551d37ed40e1171009695e33ed5ed1c6c1132b


---
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.
---

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/92#discussion_r18774258
  
    --- Diff: app/addons/config/views.js ---
    @@ -166,6 +166,12 @@ function(app, FauxtonAPI, Config, Components) {
           this.sourceArray = _.map(this.collection.toJSON(), function (item, key) {
             return item.section;
           });
    +
    +      // focus on the first field when it's shown
    +      var self = this;
    +      this.$el.on('shown', function () {
    +        self.$('form :input:enabled:visible:first').focus();
    --- End diff --
    
    you can just add the HTML5 `autofocus` attribute to the input field, example:
    
    ```
    <input type="text" name="section" placeholder="Section" autofocus autocomplete="off">
    ```


---
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.
---

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

Posted by garrensmith <gi...@git.apache.org>.
Github user garrensmith commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/92#discussion_r18779396
  
    --- Diff: app/addons/config/views.js ---
    @@ -166,6 +166,12 @@ function(app, FauxtonAPI, Config, Components) {
           this.sourceArray = _.map(this.collection.toJSON(), function (item, key) {
             return item.section;
           });
    +
    +      // focus on the first field when it's shown
    +      var self = this;
    --- End diff --
    
    Our convention is to use `that` instead of `self`


---
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.
---

[GitHub] couchdb-fauxton pull request: 2370-small-style-fixes

Posted by robertkowalski <gi...@git.apache.org>.
Github user robertkowalski commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/92#discussion_r18774664
  
    --- Diff: app/addons/config/templates/modal.html ---
    @@ -19,14 +19,13 @@
     <div class="modal-body">
       <div class="js-form-error-config"></div>
       <form id="js-add-section-form" class="form well">
    -    <label>Section</label>
    -    <input type="text" name="section" placeholder="Section" autocomplete="off">
    -    <input type="text" name="name" placeholder="Name">
    +    <input type="text" name="section" placeholder="Section" autocomplete="off" />
    +    <input type="text" name="name" placeholder="Name" />
         <br/>
    -    <input type="text" name="value" placeholder="Value">
    +    <input type="text" name="value" placeholder="Value" />
    --- End diff --
    
    input types in both http://www.w3.org/TR/html401/interact/forms.html#h-17.4 html5 http://www.w3.org/TR/html5/forms.html#the-input-element do not need closing `/>` a `>` is ok - but I am okay with both


---
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.
---