Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A044117D92 for ; Thu, 6 Nov 2014 14:43:02 +0000 (UTC) Received: (qmail 43873 invoked by uid 500); 6 Nov 2014 14:43:02 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 43817 invoked by uid 500); 6 Nov 2014 14:43:02 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 43808 invoked by uid 99); 6 Nov 2014 14:43:02 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 14:43:02 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 4B1F98B95BA; Thu, 6 Nov 2014 14:43:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: robertkowalski@apache.org To: commits@couchdb.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: fauxton commit: updated refs/heads/master to e43fa47 Date: Thu, 6 Nov 2014 14:43:02 +0000 (UTC) Repository: couchdb-fauxton Updated Branches: refs/heads/master aff2283d8 -> e43fa4790 Whitespace and style fixes Updated styles for the Active Tasks add-on. - ‘ not “ - underscore comments - whitespace fixes - removed a couple of unused vars Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/e43fa479 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/e43fa479 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/e43fa479 Branch: refs/heads/master Commit: e43fa4790b6896ce3a012768acdffb5a0d2aac3d Parents: aff2283 Author: Benjamin Keen Authored: Wed Nov 5 16:10:04 2014 -0800 Committer: Benjamin Keen Committed: Wed Nov 5 16:10:04 2014 -0800 ---------------------------------------------------------------------- app/addons/activetasks/base.js | 10 +- app/addons/activetasks/resources.js | 21 ++-- app/addons/activetasks/routes.js | 30 ++--- .../activetasks/templates/tab_header.html | 6 +- app/addons/activetasks/templates/table.html | 12 +- .../activetasks/templates/tabledetail.html | 4 +- app/addons/activetasks/templates/tabs.html | 4 +- app/addons/activetasks/views.js | 120 +++++++++---------- 8 files changed, 99 insertions(+), 108 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e43fa479/app/addons/activetasks/base.js ---------------------------------------------------------------------- diff --git a/app/addons/activetasks/base.js b/app/addons/activetasks/base.js index c01fd55..4aabcbc 100644 --- a/app/addons/activetasks/base.js +++ b/app/addons/activetasks/base.js @@ -11,15 +11,15 @@ // the License. define([ - "app", - "api", - "addons/activetasks/routes" + 'app', + 'api', + 'addons/activetasks/routes' ], function (app, FauxtonAPI, Activetasks) { - Activetasks.initialize = function() { - FauxtonAPI.addHeaderLink({title: "Active Tasks", icon: "fonticon-activetasks", href: "#/activetasks"}); + Activetasks.initialize = function () { + FauxtonAPI.addHeaderLink({title: 'Active Tasks', icon: 'fonticon-activetasks', href: '#/activetasks'}); }; return Activetasks; http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e43fa479/app/addons/activetasks/resources.js ---------------------------------------------------------------------- diff --git a/app/addons/activetasks/resources.js b/app/addons/activetasks/resources.js index 0872d41..b8c59c6 100644 --- a/app/addons/activetasks/resources.js +++ b/app/addons/activetasks/resources.js @@ -11,15 +11,13 @@ // the License. define([ - "app", - "addons/fauxton/base", + 'app' ], -function (app, Fauxton) { - var Active = {}, - apiv = app.versionAPI; - app.taskSortBy = 'type'; +function (app) { + app.taskSortBy = 'type'; + var Active = {}; Active.events = {}; _.extend(Active.events, Backbone.Events); @@ -48,24 +46,23 @@ function (app, Fauxton) { } }); } - return item.get(value); }, - documentation: "_active_tasks", + documentation: '_active_tasks', url: function (context) { - if (context === "apiurl") { - return window.location.origin + "/_active_tasks"; + if (context === 'apiurl') { + return window.location.origin + '/_active_tasks'; } else { - return app.host + "/_active_tasks"; + return app.host + '/_active_tasks'; } } }); Active.Search = Backbone.Model.extend({ filterDatabase: null, - filterType: "all" + filterType: 'all' }); return Active; http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e43fa479/app/addons/activetasks/routes.js ---------------------------------------------------------------------- diff --git a/app/addons/activetasks/routes.js b/app/addons/activetasks/routes.js index 1805d3f..5044091 100644 --- a/app/addons/activetasks/routes.js +++ b/app/addons/activetasks/routes.js @@ -11,37 +11,37 @@ // the License. define([ - "app", - "api", - "addons/activetasks/resources", - "addons/activetasks/views" + 'app', + 'api', + 'addons/activetasks/resources', + 'addons/activetasks/views' ], function (app, FauxtonAPI, Activetasks, Views) { var ActiveTasksRouteObject = FauxtonAPI.RouteObject.extend({ - layout: "with_tabs_sidebar", + layout: 'with_tabs_sidebar', routes: { - "activetasks/:id": "defaultView", - "activetasks": "defaultView" + 'activetasks/:id': 'defaultView', + 'activetasks': 'defaultView' }, events: { - "route:changeFilter": "changeFilter", + 'route:changeFilter': 'changeFilter' }, selectedHeader: 'Active Tasks', crumbs: [ - {"name": "Active tasks", "link": "activetasks"} + {'name': 'Active tasks', 'link': 'activetasks'} ], apiUrl: function () { - return [this.allTasks.url("apiurl"), this.allTasks.documentation]; + return [this.allTasks.url('apiurl'), this.allTasks.documentation]; }, - roles: ["_admin"], + roles: ['_admin'], initialize: function () { this.allTasks = new Activetasks.AllTasks(); @@ -49,15 +49,15 @@ function (app, FauxtonAPI, Activetasks, Views) { }, defaultView: function () { - this.setView("#dashboard-lower-content", new Views.View({ + this.setView('#dashboard-lower-content', new Views.View({ collection: this.allTasks, - currentView: "all", + currentView: 'all', searchModel: this.search })); - this.setView("#sidebar-content", new Views.TabMenu({})); + this.setView('#sidebar-content', new Views.TabMenu({})); - this.headerView = this.setView("#dashboard-upper-content", new Views.TabHeader({ + this.headerView = this.setView('#dashboard-upper-content', new Views.TabHeader({ searchModel: this.search })); }, http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e43fa479/app/addons/activetasks/templates/tab_header.html ---------------------------------------------------------------------- diff --git a/app/addons/activetasks/templates/tab_header.html b/app/addons/activetasks/templates/tab_header.html index d613c7d..9ebc28a 100644 --- a/app/addons/activetasks/templates/tab_header.html +++ b/app/addons/activetasks/templates/tab_header.html @@ -1,4 +1,4 @@ - +*/%>