couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michellephung <...@git.apache.org>
Subject [GitHub] couchdb-fauxton pull request: Fix Views toggle with dot symbol in ...
Date Mon, 30 Mar 2015 23:51:16 GMT
Github user michellephung commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/319#issuecomment-87879108
  
    This is kind of a strange one. 
    
    So we are using data-target = "namewithspecialcharacters" with bootstrap and toggling
the views.
    Additionally, we are using the name of the view (with special characters) as the id /
classes for that element in the view. 
    
    Jquery, (used with bootstrap), doesn't recognize a " " (space) or (slash) / or . (dot),
so but you can escape them when using jquery to target the selector you want.  
    
    In this fix, I've escaped the special characters when it's used by jquery, and replaced
them with "_nameofspecialcharacter_" in the elements where we need the id to be specifically
not escaped (elements that are using data-target).


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