From 851a99cb13c6783f2e1f863a9121c555dbf1e8d0 Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Thu, 21 Feb 2013 13:32:29 -0500 Subject: [PATCH] remove commented out code --- cms/static/js/views/settings/advanced_view.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cms/static/js/views/settings/advanced_view.js b/cms/static/js/views/settings/advanced_view.js index e56a8d90d8..f7cadd0b15 100644 --- a/cms/static/js/views/settings/advanced_view.js +++ b/cms/static/js/views/settings/advanced_view.js @@ -10,7 +10,6 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({ 'click .new-button' : "addEntry", // update model on changes 'change .policy-key' : "updateKey", - // keyup fired on tab and other non-altering events 'keypress .policy-key' : "showSaveCancelButtons", 'focus :input' : "focusInput", 'blur :input' : "blurInput" @@ -26,6 +25,7 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({ self.render(); } ); + // because these are outside of this.$el, they can't be in the event hash $('.save-button').on('click', this, this.saveView); $('.cancel-button').on('click', this, this.revertView); this.model.on('error', this.handleValidationError, this); @@ -47,12 +47,6 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({ function(key) { listEle$.append(self.renderTemplate(key, self.model.get(key))); }); - // hilighting labels when fields are focused in -// listEle$.find(":input").focus(function(event) { -// listEle$.find("label[for='" + this.id + "']").addClass("is-focused"); -// }).blur(function() { -// listEle$.find("label[for='" + this.id + "']").removeClass("is-focused"); -// }); var policyValues = listEle$.find('.json'); _.each(policyValues, this.attachJSONEditor, this);