garrensmith commented on a change in pull request #948: Fix sidebar
expand/collapse when design doc name has special chars
URL: https://github.com/apache/couchdb-fauxton/pull/948#discussion_r131637208
##########
File path: app/helpers.js
##########
@@ -57,4 +57,13 @@ Helpers.getDateFromNow = function (timestamp) {
return moment(timestamp, 'X').fromNow();
};
+/**
+ * Escapes any characters that have special meaning in JQuery selectors.
+ * @param {string} selector
+ * @return {string}
+ */
+Helpers.escapeJQuerySelector = function (selector) {
Review comment:
What is the advantage of using this versus `decodeURIComponent`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services