couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [08/52] [abbrv] fauxton commit: updated refs/heads/import-master to d11b90b
Date Wed, 12 Feb 2014 06:20:02 GMT
Fauxton fix build


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

Branch: refs/heads/import-master
Commit: c601fdc92cd5885b341b31a2fc8f105b677e4b95
Parents: 13ef5d1
Author: Garren Smith <garren.smith@gmail.com>
Authored: Mon Jan 13 14:42:40 2014 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Mon Jan 13 14:42:40 2014 +0200

----------------------------------------------------------------------
 app/addons/documents/assets/less/documents.less  | 11 +++++++++++
 app/addons/documents/views.js                    |  7 +++++--
 app/addons/pouchdb/base.js                       | 11 +++++++++++
 app/templates/documents/duplicate_doc_modal.html |  2 +-
 test/core/layoutSpec.js                          |  2 +-
 test/core/navbarSpec.js                          |  2 +-
 test/core/paginateSpec.js                        |  4 ++--
 7 files changed, 32 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/c601fdc9/app/addons/documents/assets/less/documents.less
----------------------------------------------------------------------
diff --git a/app/addons/documents/assets/less/documents.less b/app/addons/documents/assets/less/documents.less
index ff9e88c..38fd792 100644
--- a/app/addons/documents/assets/less/documents.less
+++ b/app/addons/documents/assets/less/documents.less
@@ -1,3 +1,14 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
 /*ALL DOCS TABLE*/
 tr.all-docs-item{
   border: none;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/c601fdc9/app/addons/documents/views.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/views.js b/app/addons/documents/views.js
index 80c0d87..94332a2 100644
--- a/app/addons/documents/views.js
+++ b/app/addons/documents/views.js
@@ -234,7 +234,8 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
     },
 
     events: {
-      "click #duplicate-btn":"duplicate"
+      "click #duplicate-btn":"duplicate",
+      "submit #doc-duplicate": "duplicate"
 
     },
 
@@ -1481,6 +1482,7 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
resizeColum
       promise.then(function () {
         params.docs = that.database.allDocs.map(function (model) { return model.get('doc');});

 
+        console.log('p', params, paramsInfo);
         var queryPromise = pouchdb.runViewQuery({map: mapVal, reduce: reduceVal}, params);
         queryPromise.then(function (results) {
           FauxtonAPI.triggerRouteEvent('updatePreviewDocs', {rows: results.rows, ddoc: that.getCurrentDesignDoc().id,
view: that.viewName});
@@ -1507,8 +1509,9 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
resizeColum
     reduceVal: function() {
       var reduceOption = this.$('#reduce-function-selector :selected').val(),
       reduceVal = "";
-
+      
       if (reduceOption === 'CUSTOM') {
+        if (!this.reduceEditor) { this.createReduceEditor(); }
         reduceVal = this.reduceEditor.getValue();
       } else if ( reduceOption !== 'NONE') {
         reduceVal = reduceOption;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/c601fdc9/app/addons/pouchdb/base.js
----------------------------------------------------------------------
diff --git a/app/addons/pouchdb/base.js b/app/addons/pouchdb/base.js
index df6c726..69962bb 100644
--- a/app/addons/pouchdb/base.js
+++ b/app/addons/pouchdb/base.js
@@ -1,3 +1,14 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
 /*
  * NOTE:
  * This temporarily uses the PouchDB map reduce implementation

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/c601fdc9/app/templates/documents/duplicate_doc_modal.html
----------------------------------------------------------------------
diff --git a/app/templates/documents/duplicate_doc_modal.html b/app/templates/documents/duplicate_doc_modal.html
index 3f374b6..dbb25bc 100644
--- a/app/templates/documents/duplicate_doc_modal.html
+++ b/app/templates/documents/duplicate_doc_modal.html
@@ -19,7 +19,7 @@ the License.
   </div>
   <div class="modal-body">
     <div id="modal-error" class="hide alert alert-error"/>
-    <form id="file-upload" class="form" method="post">
+    <form id="doc-duplicate" class="form" method="post">
       <p class="help-block">
       Set new documents ID:
       </p>

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/c601fdc9/test/core/layoutSpec.js
----------------------------------------------------------------------
diff --git a/test/core/layoutSpec.js b/test/core/layoutSpec.js
index 3876b70..4167100 100644
--- a/test/core/layoutSpec.js
+++ b/test/core/layoutSpec.js
@@ -10,7 +10,7 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 define([
-       'modules/fauxton/layout',
+       'addons/fauxton/layout',
       'testUtils'
 ], function (Layout, testUtils) {
   var assert = testUtils.assert;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/c601fdc9/test/core/navbarSpec.js
----------------------------------------------------------------------
diff --git a/test/core/navbarSpec.js b/test/core/navbarSpec.js
index ec3e71f..3eca6f6 100644
--- a/test/core/navbarSpec.js
+++ b/test/core/navbarSpec.js
@@ -10,7 +10,7 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 define([
-       'modules/fauxton/base',
+       'addons/fauxton/base',
       'testUtils'
 ], function (Fauxton, testUtils) {
   var assert = testUtils.assert,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/c601fdc9/test/core/paginateSpec.js
----------------------------------------------------------------------
diff --git a/test/core/paginateSpec.js b/test/core/paginateSpec.js
index 114c434..d05b322 100644
--- a/test/core/paginateSpec.js
+++ b/test/core/paginateSpec.js
@@ -11,8 +11,8 @@
 // the License.
 define([
        'api',
-       'modules/fauxton/components',
-       'modules/documents/resources',
+       'addons/fauxton/components',
+       'addons/documents/resources',
        'testUtils',
        'app'
 ], function (FauxtonAPI, Views, Models, testUtils, app) {


Mime
View raw message