couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject fauxton commit: updated refs/heads/master to 26adff3
Date Wed, 14 Sep 2016 15:12:14 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master a3605ee84 -> 26adff3b0


backbone: delete dead code

PR: #773
PR-URL: https://github.com/apache/couchdb-fauxton/pull/773
Reviewed-By: garren smith <garren.smith@gmail.com>


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

Branch: refs/heads/master
Commit: 26adff3b033513177121918a25747699bc694e3c
Parents: a3605ee
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Wed Sep 14 11:47:19 2016 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Wed Sep 14 17:12:07 2016 +0200

----------------------------------------------------------------------
 app/addons/fauxton/components.js | 49 -----------------------------------
 app/constants.js                 |  3 +--
 2 files changed, 1 insertion(+), 51 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/26adff3b/app/addons/fauxton/components.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/components.js b/app/addons/fauxton/components.js
index 540f508..37845cb 100644
--- a/app/addons/fauxton/components.js
+++ b/app/addons/fauxton/components.js
@@ -228,55 +228,6 @@ Components.Tray = FauxtonAPI.View.extend({
 });
 
 
-Components.ModalView = FauxtonAPI.View.extend({
-  disableLoader: true,
-
-  initialize: function (options) {
-    _.bindAll(this);
-  },
-
-  afterRender: function () {
-    var that = this;
-    this.$('.modal').on('shown', function () {
-      that.$('input:text:visible:first').focus();
-    });
-  },
-
-  showModal: function () {
-    if (this._showModal) { this._showModal();}
-    this.clear_error_msg();
-    this.$('.modal').modal();
-
-    // hack to get modal visible
-    $('.modal-backdrop').css('z-index', FauxtonAPI.constants.MISC.MODAL_BACKDROP_Z_INDEX);
-  },
-
-  hideModal: function () {
-    this.$('.modal').modal('hide');
-  },
-
-  set_error_msg: function (msg) {
-    var text;
-    if (typeof(msg) == 'string') {
-      text = msg;
-    } else {
-      text = JSON.parse(msg.responseText).reason;
-    }
-    this.$('#modal-error').text(text).removeClass('hide');
-  },
-
-  clear_error_msg: function () {
-    this.$('#modal-error').text(' ').addClass('hide');
-  },
-
-  serialize: function () {
-    if (this.model) {
-      return this.model.toJSON();
-    }
-    return {};
-  }
-});
-
 Components.Typeahead = FauxtonAPI.View.extend({
 
   initialize: function (options) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/26adff3b/app/constants.js
----------------------------------------------------------------------
diff --git a/app/constants.js b/app/constants.js
index cbda246..a967db4 100644
--- a/app/constants.js
+++ b/app/constants.js
@@ -14,8 +14,7 @@ export default {
 
   MISC: {
     TRAY_TOGGLE_SPEED: 250,
-    DEFAULT_PAGE_SIZE: 20,
-    MODAL_BACKDROP_Z_INDEX: 1025
+    DEFAULT_PAGE_SIZE: 20
   },
 
   DATABASES: {


Mime
View raw message