You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2013/09/05 18:12:33 UTC

git commit: updated refs/heads/master to 7069970

Updated Branches:
  refs/heads/master 063e39927 -> 706997049


Cleaning up resize collumns to use a class selector instead of an ID. Also added cleanup method to remove callback.


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

Branch: refs/heads/master
Commit: 7069970495cfed91ca3eaa80946988864008df9d
Parents: 063e399
Author: suelockwood <de...@gmail.com>
Authored: Thu Sep 5 12:12:16 2013 -0400
Committer: suelockwood <de...@gmail.com>
Committed: Thu Sep 5 12:12:16 2013 -0400

----------------------------------------------------------------------
 src/fauxton/app/resizeColumns.js                          | 6 +++++-
 src/fauxton/app/templates/layouts/one_pane.html           | 2 +-
 src/fauxton/app/templates/layouts/with_right_sidebar.html | 2 +-
 src/fauxton/app/templates/layouts/with_sidebar.html       | 2 +-
 src/fauxton/app/templates/layouts/with_tabs.html          | 2 +-
 src/fauxton/app/templates/layouts/with_tabs_sidebar.html  | 2 +-
 6 files changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/70699704/src/fauxton/app/resizeColumns.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/resizeColumns.js b/src/fauxton/app/resizeColumns.js
index 0073690..687b9d3 100644
--- a/src/fauxton/app/resizeColumns.js
+++ b/src/fauxton/app/resizeColumns.js
@@ -25,7 +25,7 @@ function(mixins) {
 
   var Resize = function(options){
     this.options = options;
-    this.options.selectorElements = options.selectorElements || "#dashboard-content";
+    this.options.selectorElements = options.selectorElements || ".window-resizeable";
   };
 
   Resize.prototype = {
@@ -49,10 +49,14 @@ function(mixins) {
     updateOptions:function(options){
       this.options = {};
       this.options = options;
+      this.options.selectorElements = options.selectorElements || ".window-resizeable";
     },
     turnOff:function(){
       mixins.removeWindowResize("animation");
     },
+    cleanupCallback: function(){
+      this.callback = null;
+    },
     onResizeHandler: function (){
       //if there is an override, do that instead
       if (this.options.onResizeHandler){

http://git-wip-us.apache.org/repos/asf/couchdb/blob/70699704/src/fauxton/app/templates/layouts/one_pane.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/templates/layouts/one_pane.html b/src/fauxton/app/templates/layouts/one_pane.html
index baafbf8..c7adf1f 100644
--- a/src/fauxton/app/templates/layouts/one_pane.html
+++ b/src/fauxton/app/templates/layouts/one_pane.html
@@ -22,7 +22,7 @@ the License.
 
   <div class="row-fluid content-area">
   	<div id="tabs" class="row"></div>
-    <div id="dashboard-content"></div>
+    <div id="dashboard-content" class="window-resizeable"></div>
   </div>
 </div>
 

http://git-wip-us.apache.org/repos/asf/couchdb/blob/70699704/src/fauxton/app/templates/layouts/with_right_sidebar.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/templates/layouts/with_right_sidebar.html b/src/fauxton/app/templates/layouts/with_right_sidebar.html
index 1923ced..ade5b82 100644
--- a/src/fauxton/app/templates/layouts/with_right_sidebar.html
+++ b/src/fauxton/app/templates/layouts/with_right_sidebar.html
@@ -20,7 +20,7 @@ the License.
   </div>
   <div class="with-sidebar-right content-area">
     <div id="dashboard-content" class="list"></div>
-    <div id="sidebar-content" class="sidebar pull-right"></div>
+    <div id="sidebar-content" class="sidebar pull-right window-resizeable"></div>
   </div>
 </div>
 

http://git-wip-us.apache.org/repos/asf/couchdb/blob/70699704/src/fauxton/app/templates/layouts/with_sidebar.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/templates/layouts/with_sidebar.html b/src/fauxton/app/templates/layouts/with_sidebar.html
index bd26e5b..0bba4a1 100644
--- a/src/fauxton/app/templates/layouts/with_sidebar.html
+++ b/src/fauxton/app/templates/layouts/with_sidebar.html
@@ -21,7 +21,7 @@ the License.
 </header>
   <div class="with-sidebar content-area">
     <div id="sidebar-content" class="sidebar"></div>
-    <div id="dashboard-content" class="list"></div>
+    <div id="dashboard-content" class="list window-resizeable"></div>
   </div>
 </div>
 

http://git-wip-us.apache.org/repos/asf/couchdb/blob/70699704/src/fauxton/app/templates/layouts/with_tabs.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/templates/layouts/with_tabs.html b/src/fauxton/app/templates/layouts/with_tabs.html
index bf63517..8bfc7e0 100644
--- a/src/fauxton/app/templates/layouts/with_tabs.html
+++ b/src/fauxton/app/templates/layouts/with_tabs.html
@@ -22,7 +22,7 @@ the License.
 
   <div class="row-fluid content-area">
   	<div id="tabs" class="row-fluid"></div>
-    <div id="dashboard-content" class="list span12"></div>
+    <div id="dashboard-content" class="list span12 window-resizeable"></div>
   </div>
 
 

http://git-wip-us.apache.org/repos/asf/couchdb/blob/70699704/src/fauxton/app/templates/layouts/with_tabs_sidebar.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/templates/layouts/with_tabs_sidebar.html b/src/fauxton/app/templates/layouts/with_tabs_sidebar.html
index e7a524f..69d723b 100644
--- a/src/fauxton/app/templates/layouts/with_tabs_sidebar.html
+++ b/src/fauxton/app/templates/layouts/with_tabs_sidebar.html
@@ -27,7 +27,7 @@ the License.
 
     <aside id="sidebar-content" class="sidebar"></aside>
 
-    <section id="dashboard-content" class="list pull-right">
+    <section id="dashboard-content" class="list pull-right window-resizeable">
       <div class="inner">
         <div id="dashboard-upper-menu"></div>
         <div id="dashboard-upper-content"></div>