couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject couchdb commit: updated refs/heads/Update-Sidebar-Ui to b4cfaf2
Date Wed, 16 Apr 2014 20:45:24 GMT
Repository: couchdb
Updated Branches:
  refs/heads/Update-Sidebar-Ui 91e04da4c -> b4cfaf241


Cleanup of view so that it uses html helper functions


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

Branch: refs/heads/Update-Sidebar-Ui
Commit: b4cfaf241f7a6ea99f0204721e11002e0971e55c
Parents: 91e04da
Author: suelockwood <deathbear@apache.org>
Authored: Wed Apr 16 16:44:48 2014 -0400
Committer: suelockwood <deathbear@apache.org>
Committed: Wed Apr 16 16:44:48 2014 -0400

----------------------------------------------------------------------
 .../app/addons/documents/templates/index_menu_item.html   |  2 +-
 src/fauxton/app/addons/documents/views.js                 | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/b4cfaf24/src/fauxton/app/addons/documents/templates/index_menu_item.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/templates/index_menu_item.html b/src/fauxton/app/addons/documents/templates/index_menu_item.html
index 77b51d0..455f491 100644
--- a/src/fauxton/app/addons/documents/templates/index_menu_item.html
+++ b/src/fauxton/app/addons/documents/templates/index_menu_item.html
@@ -12,6 +12,6 @@ License for the specific language governing permissions and limitations
under
 the License.
 -->
 
-<a id="<%= ddoc_clean %>_<%= index_clean %>" href="#database/<%= database_encoded
%>/_design/<%= ddoc_encoded %>/_<%=type%>/<%= index_encoded %>" class="toggle-view">
+<a id="<%= removeSpecialCharacters(ddoc) %>_<%= removeSpecialCharacters(index)
%>" href="#database/<%= safeURL(database) %>/_design/<%= safeURL(ddoc)%>/_<%=type%>/<%=
safeURL(index) %>" class="toggle-view">
   <%= index %>
 </a>

http://git-wip-us.apache.org/repos/asf/couchdb/blob/b4cfaf24/src/fauxton/app/addons/documents/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/views.js b/src/fauxton/app/addons/documents/views.js
index 1ee5a21..209faff 100644
--- a/src/fauxton/app/addons/documents/views.js
+++ b/src/fauxton/app/addons/documents/views.js
@@ -370,11 +370,11 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
         index: this.index,
         ddoc: this.ddoc,
         database: this.database,
-        index_clean: app.utils.removeSpecialCharacters(this.index),
-        ddoc_clean: app.utils.removeSpecialCharacters(this.ddoc),
-        index_encoded: app.utils.safeURLName(this.index),
-        ddoc_encoded: app.utils.safeURLName(this.ddoc),
-        database_encoded: app.utils.safeURLName(this.database),
+        // index_clean: app.utils.removeSpecialCharacters(this.index),
+        // ddoc_clean: app.utils.removeSpecialCharacters(this.ddoc),
+        // index_encoded: app.utils.safeURLName(this.index),
+        // ddoc_encoded: app.utils.safeURLName(this.ddoc),
+        // database_encoded: app.utils.safeURLName(this.database),
         selected: this.selected
       };
     },


Mime
View raw message