diff --git a/core/modules/edit/js/backbone.drupalform.js b/core/modules/edit/js/backbone.drupalform.js index 9bd2c89..4499599 100644 --- a/core/modules/edit/js/backbone.drupalform.js +++ b/core/modules/edit/js/backbone.drupalform.js @@ -93,7 +93,7 @@ Backbone.syncDirect = function(method, model, options) { // Fill in the value in any that isn't hidden or a submit button. $form.find(':input[type!="hidden"][type!="submit"]:not(select)') // Don't mess with the node summary. - .not('[name$="\[summary\]"]').val(value); + .not('[name$="[summary]"]').val(value); // Submit the form. $form.find('.edit-form-submit').trigger('click.edit'); }; diff --git a/core/modules/edit/js/views/toolbar-view.js b/core/modules/edit/js/views/toolbar-view.js index 2075352..cf3783b 100644 --- a/core/modules/edit/js/views/toolbar-view.js +++ b/core/modules/edit/js/views/toolbar-view.js @@ -221,7 +221,7 @@ Drupal.edit.views.ToolbarView = Backbone.View.extend({ */ onMouseLeave: function(event) { var el = this.editor.element[0]; - if (event.relatedTarget != el && !$.contains(el, event.relatedTarget)) { + if (event.relatedTarget !== el && !$.contains(el, event.relatedTarget)) { this.editor.element.trigger('mouseleave.edit'); } event.stopPropagation();