Fauxton: Code cleanup Remove old linted config Add resizeColumns to app
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/e528c0cb Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/e528c0cb Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/e528c0cb Branch: refs/heads/Query-UI-Cleanup Commit: e528c0cbbb26f684fdff6147c2edf0806318ef42 Parents: 0088f6c Author: Garren Smith <[email protected]> Authored: Mon Apr 14 15:37:21 2014 +0200 Committer: Garren Smith <[email protected]> Committed: Mon Apr 14 15:37:21 2014 +0200 ---------------------------------------------------------------------- src/fauxton/Gruntfile.js | 10 ---------- src/fauxton/app/addons/fauxton/base.js | 2 +- src/fauxton/app/addons/fauxton/resizeColumns.js | 1 + 3 files changed, 2 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/e528c0cb/src/fauxton/Gruntfile.js ---------------------------------------------------------------------- diff --git a/src/fauxton/Gruntfile.js b/src/fauxton/Gruntfile.js index 29111eb..c650b9f 100644 --- a/src/fauxton/Gruntfile.js +++ b/src/fauxton/Gruntfile.js @@ -147,16 +147,6 @@ module.exports = function(grunt) { watch: cleanableAddons }, - // The lint task will run the build configuration and the application - // JavaScript through JSHint and report any errors. You can change the - // options for this task, by reading this: - // https://github.com/cowboy/grunt/blob/master/docs/task_lint.md - lint: { - files: [ - "build/config.js", "app/**/*.js" - ] - }, - less: { compile: { options: { http://git-wip-us.apache.org/repos/asf/couchdb/blob/e528c0cb/src/fauxton/app/addons/fauxton/base.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/fauxton/base.js b/src/fauxton/app/addons/fauxton/base.js index 7c50211..29925e8 100644 --- a/src/fauxton/app/addons/fauxton/base.js +++ b/src/fauxton/app/addons/fauxton/base.js @@ -145,7 +145,7 @@ function(app, FauxtonAPI, resizeColumns) { initialize: function () { _.bindAll(this); //resizeAnimation - this.resizeColumns = new resizeColumns({}); + app.resizeColumns = this.resizeColumns = new resizeColumns({}); this.resizeColumns.onResizeHandler(); FauxtonAPI.extensions.on('add:navbar:addHeaderLink', this.addLink); http://git-wip-us.apache.org/repos/asf/couchdb/blob/e528c0cb/src/fauxton/app/addons/fauxton/resizeColumns.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/fauxton/resizeColumns.js b/src/fauxton/app/addons/fauxton/resizeColumns.js index abfcd2f..b081580 100644 --- a/src/fauxton/app/addons/fauxton/resizeColumns.js +++ b/src/fauxton/app/addons/fauxton/resizeColumns.js @@ -75,6 +75,7 @@ function(FauxtonAPI) { } $(this.options.selectorElements).innerWidth(panelWidth); + } //if there is a callback, run that if(this.options.callback) {
