Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2016-09-29 03:56:30 +0300
committerJacob Schatz <jschatz@gitlab.com>2016-09-29 03:56:30 +0300
commitd754b2ce763818c397eef852fd5641f8ba8f1c13 (patch)
tree1ccbc2d38d75e68172cf04fbc3621721e5a79797 /app/assets/javascripts/blob_edit
parent2cae81ff284befc6a1fa6ad277f42ad1a5452e46 (diff)
Revert "Merge branch '18297-i-would-like-text-to-wrap-when-in-edit-mode-on-web-app' into 'master'"
This reverts merge request !6188
Diffstat (limited to 'app/assets/javascripts/blob_edit')
-rw-r--r--app/assets/javascripts/blob_edit/edit_blob.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/assets/javascripts/blob_edit/edit_blob.js b/app/assets/javascripts/blob_edit/edit_blob.js
index de6cdd851be..b846bab0424 100644
--- a/app/assets/javascripts/blob_edit/edit_blob.js
+++ b/app/assets/javascripts/blob_edit/edit_blob.js
@@ -22,7 +22,6 @@
// submitted textarea
})(this));
this.initModePanesAndLinks();
- this.initSoftWrap();
new BlobLicenseSelectors({
editor: this.editor
});
@@ -51,7 +50,6 @@
this.$editModePanes.hide();
currentPane.fadeIn(200);
if (paneId === "#preview") {
- this.$toggleButton.hide();
return $.post(currentLink.data("preview-url"), {
content: this.editor.getValue()
}, function(response) {
@@ -59,23 +57,10 @@
return currentPane.syntaxHighlight();
});
} else {
- this.$toggleButton.show();
return this.editor.focus();
}
};
- EditBlob.prototype.initSoftWrap = function() {
- this.isSoftWrapped = false;
- this.$toggleButton = $('.soft-wrap-toggle');
- this.$toggleButton.on('click', this.toggleSoftWrap.bind(this));
- };
-
- EditBlob.prototype.toggleSoftWrap = function(e) {
- this.isSoftWrapped = !this.isSoftWrapped;
- this.$toggleButton.toggleClass('soft-wrap-active', this.isSoftWrapped);
- this.editor.getSession().setUseWrapMode(this.isSoftWrapped);
- };
-
return EditBlob;
})();