couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject git commit: updated refs/heads/master to d3d1966
Date Wed, 11 Sep 2013 15:39:10 GMT
Updated Branches:
  refs/heads/master 26f6a00b8 -> d3d19660c


CodeMirror and Pretty Print issues with error dots in the editor and tooltips getting cut
off


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

Branch: refs/heads/master
Commit: d3d19660cd6e0ce662192c036da9b3771e8794b5
Parents: 26f6a00
Author: suelockwood <deathbearbrown@gmail.com>
Authored: Wed Sep 11 11:39:01 2013 -0400
Committer: suelockwood <deathbearbrown@gmail.com>
Committed: Wed Sep 11 11:39:01 2013 -0400

----------------------------------------------------------------------
 src/fauxton/app/modules/documents/views.js |  3 ++-
 src/fauxton/assets/less/prettyprint.less   | 10 +++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/d3d19660/src/fauxton/app/modules/documents/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js
index 5bc6a7a..14fa546 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -710,7 +710,8 @@ function(app, FauxtonAPI, Paginate, Documents, pouchdb, Codemirror, JSHint,
resi
 
           setTimeout(function() {
             $(".CodeMirror ."+className).tooltip({
-              title: "ERROR: " + error.reason
+              title: "ERROR: " + error.reason,
+              container: 'body'
             });
           }, 0);
         }, this);

http://git-wip-us.apache.org/repos/asf/couchdb/blob/d3d19660/src/fauxton/assets/less/prettyprint.less
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/less/prettyprint.less b/src/fauxton/assets/less/prettyprint.less
index 8ed512c..7925fa7 100644
--- a/src/fauxton/assets/less/prettyprint.less
+++ b/src/fauxton/assets/less/prettyprint.less
@@ -35,4 +35,12 @@ pre.prettyprint {
   .com {
     color: #666;
   }
-}
\ No newline at end of file
+}
+.CodeMirror-wrap pre{
+  &.view-code-error{
+    color: @darkRed;
+  }
+  .tooltip{
+    z-index: 100000000;
+  }
+}


Mime
View raw message