summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2013-11-13 15:24:27 (GMT)
committerwebchick2013-11-13 15:24:27 (GMT)
commitb810cf1dbd0c5b67ea12815195e846bba1984392 (patch)
tree7424307ba60ac8b22e577d1f78f3e99898536334
parentcf59aaf8fbc650b04ecf8caeddf0e850cbda4f13 (diff)
Issue #2133871 by Wim Leers: Remove dead code from Edit: Drupal.edit.AppView.enableEditor.
-rw-r--r--core/modules/edit/js/views/AppView.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/core/modules/edit/js/views/AppView.js b/core/modules/edit/js/views/AppView.js
index d38f502..3bce3ed 100644
--- a/core/modules/edit/js/views/AppView.js
+++ b/core/modules/edit/js/views/AppView.js
@@ -413,36 +413,6 @@ Drupal.edit.AppView = Backbone.View.extend({
},
/**
- *
- */
- enableEditor: function (fieldModel) {
- // check if there's an active editor.
- var activeEditor = this.model.get('activeEditor');
-
- // Do nothing if the fieldModel is already the active editor.
- if (fieldModel === activeEditor) {
- return;
- }
- if (activeEditor) {
- // If there is, check if the model is changed.
- if (activeEditor.get('state') === 'changed') {
- // Attempt to save the field.
- activeEditor.set('state', 'saving');
- }
- // else, set it to a candidate.
- else {
- activeEditor.set('state', 'candidate');
- // Set the new fieldModel to activating.
- fieldModel.set('state', 'activating');
- }
- }
- else {
- // Set the new fieldModel to activating.
- fieldModel.set('state', 'activating');
- }
- },
-
- /**
* Render an updated field (a field whose 'html' attribute changed).
*
* @param Drupal.edit.FieldModel fieldModel